mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
30 lines
611 B
C++
30 lines
611 B
C++
#ifndef MWGUI_WINDOW_PINNABLE_BASE_H
|
|
#define MWGUI_WINDOW_PINNABLE_BASE_H
|
|
|
|
#include "window_base.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
class WindowManager;
|
|
|
|
class WindowPinnableBase: public WindowBase
|
|
{
|
|
public:
|
|
WindowPinnableBase(const std::string& parLayout, WindowManager& parWindowManager);
|
|
void setVisible(bool b);
|
|
bool pinned() { return mPinned; }
|
|
|
|
private:
|
|
void onWindowButtonPressed(MyGUI::Window* sender, const std::string& eventName);
|
|
|
|
protected:
|
|
virtual void onPinToggled() = 0;
|
|
|
|
bool mPinned;
|
|
bool mVisible;
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|