39 void setVisible(
bool _visible)
override;
42 void setVisibleSmooth(
bool _visible);
47 void setAutoAlpha(
bool _auto);
49 bool getAutoAlpha()
const;
52 void setCaption(
const UString& _caption)
override;
54 const UString& getCaption()
const override;
57 TextBox* getCaptionWidget()
const;
60 void setMinSize(
const IntSize& _value);
62 void setMinSize(
int _width,
int _height);
67 void setMaxSize(
const IntSize& _value);
69 void setMaxSize(
int _width,
int _height);
74 void setPosition(
const IntPoint& _point)
override;
76 void setSize(
const IntSize& _size)
override;
78 void setCoord(
const IntCoord& _coord)
override;
80 using Widget::setPosition;
81 using Widget::setSize;
82 using Widget::setCoord;
85 void setSnap(
bool _value);
90 const IntCoord& getActionScale()
const;
93 void setMovable(
bool _value);
95 bool getMovable()
const;
112 void initialiseOverride()
override;
113 void shutdownOverride()
override;
115 void onMouseChangeRootFocus(
bool _focus)
override;
116 void onKeyChangeRootFocus(
bool _focus)
override;
117 void onMouseDrag(
int _left,
int _top, MouseButton _id)
override;
118 void onMouseButtonPressed(
int _left,
int _top, MouseButton _id)
override;
119 void onMouseButtonReleased(
int _left,
int _top, MouseButton _id)
override;
121 void notifyMousePressed(MyGUI::Widget* _sender,
int _left,
int _top, MouseButton _id);
122 void notifyMouseReleased(MyGUI::Widget* _sender,
int _left,
int _top, MouseButton _id);
123 void notifyPressedButtonEvent(MyGUI::Widget* _sender);
124 void notifyMouseDrag(MyGUI::Widget* _sender,
int _left,
int _top, MouseButton _id);
125 void notifyMouseWheel(MyGUI::Widget* _sender,
int _rel);
130 void animateStop(Widget* _widget, ControllerItem* _controller);
132 void setPropertyOverride(std::string_view _key, std::string_view _value)
override;
135 float getAlphaVisible()
const;
141 void getSnappedCoord(
IntCoord& _coord, Snap snapMode)
const;
142 IntCoord _getActionScale(Widget* _widget)
const;
144 void restoreResizeAnchor();
146 ControllerFadeAlpha* createControllerFadeAlpha(
float _alpha,
float _coef,
bool _enable);
149 TextBox* mWidgetCaption{
nullptr};
156 bool mMouseRootFocus{
false};
157 bool mKeyRootFocus{
false};
160 bool mIsAutoAlpha{
false};
168 bool mAnimateSmooth{
false};
#define MYGUI_RTTI_DERIVED(DerivedType)
types::TRect< int > IntRect
EventPairConvertStringView< delegates::MultiDelegate< Widget *, const std::string & >, delegates::MultiDelegate< Widget *, std::string_view > > EventHandle_WidgetString
types::TPoint< int > IntPoint
types::TPoint< float > FloatPoint
EventPairConvertStringView< delegates::MultiDelegate< Window *, const std::string & >, delegates::MultiDelegate< Window *, std::string_view > > EventHandle_WindowPtrCStringRef
types::TCoord< int > IntCoord
types::TSize< int > IntSize
delegates::MultiDelegate< Window * > EventHandle_WindowPtr