2015-01-24 18:26:31 +00:00
|
|
|
#ifndef OPENMW_WIDGETS_WINDOWCAPTION_H
|
|
|
|
#define OPENMW_WIDGETS_WINDOWCAPTION_H
|
|
|
|
|
|
|
|
#include <MyGUI_EditBox.h>
|
|
|
|
|
|
|
|
namespace Gui
|
|
|
|
{
|
|
|
|
|
|
|
|
/// Window caption that automatically adjusts "Left" and "Right" widgets in its skin
|
|
|
|
/// based on the text size of the caption in the middle
|
2020-02-13 20:36:56 +00:00
|
|
|
class WindowCaption final : public MyGUI::EditBox
|
2015-01-24 18:26:31 +00:00
|
|
|
{
|
|
|
|
MYGUI_RTTI_DERIVED(WindowCaption)
|
|
|
|
public:
|
|
|
|
WindowCaption();
|
|
|
|
|
2020-10-22 21:57:53 +00:00
|
|
|
void setCaption(const MyGUI::UString &_value) override;
|
|
|
|
void initialiseOverride() override;
|
2015-01-24 18:26:31 +00:00
|
|
|
|
2020-10-22 21:57:53 +00:00
|
|
|
void setSize(const MyGUI::IntSize& _value) override;
|
|
|
|
void setCoord(const MyGUI::IntCoord& _value) override;
|
2015-01-24 18:26:31 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
MyGUI::Widget* mLeft;
|
|
|
|
MyGUI::Widget* mRight;
|
2017-09-06 11:59:54 +00:00
|
|
|
MyGUI::Widget* mClient;
|
2015-01-24 18:26:31 +00:00
|
|
|
|
|
|
|
void align();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|