You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
744 B
C++
32 lines
744 B
C++
#ifndef MWGUI_WINDOW_PINNABLE_BASE_H
|
|
#define MWGUI_WINDOW_PINNABLE_BASE_H
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
class WindowManager;
|
|
|
|
class WindowPinnableBase: public WindowBase
|
|
{
|
|
public:
|
|
WindowPinnableBase(const std::string& parLayout);
|
|
bool pinned() { return mPinned; }
|
|
void setPinned (bool pinned);
|
|
void setPinButtonVisible(bool visible);
|
|
|
|
private:
|
|
void onPinButtonPressed(MyGUI::Widget* _sender, int left, int top, MyGUI::MouseButton id);
|
|
void onDoubleClick(MyGUI::Widget* _sender);
|
|
|
|
protected:
|
|
virtual void onPinToggled() = 0;
|
|
virtual void onTitleDoubleClicked() = 0;
|
|
|
|
MyGUI::Widget* mPinButton;
|
|
bool mPinned;
|
|
};
|
|
}
|
|
|
|
#endif
|