Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
791 B · 33 lines
C++
12345678910111213141516171819202122232425262728293031323334#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 class WindowCaption final : public MyGUI::EditBox { MYGUI_RTTI_DERIVED(WindowCaption) public: WindowCaption();
void setCaption(const MyGUI::UString& value) override; void initialiseOverride() override;
void setSize(const MyGUI::IntSize& value) override; void setCoord(const MyGUI::IntCoord& value) override;
private: MyGUI::Widget* mLeft; MyGUI::Widget* mRight; MyGUI::Widget* mClient;
void align(); };
}
#endif