mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 03:54:40 +00:00
29 lines
579 B
C++
29 lines
579 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, MWBase::WindowManager& parWindowManager);
|
||
|
bool pinned() { return mPinned; }
|
||
|
|
||
|
private:
|
||
|
void onPinButtonClicked(MyGUI::Widget* _sender);
|
||
|
|
||
|
protected:
|
||
|
virtual void onPinToggled() = 0;
|
||
|
|
||
|
MyGUI::Widget* mPinButton;
|
||
|
bool mPinned;
|
||
|
bool mVisible;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|