class
WindowFrameWidget
Inherits:
GUIWidget
A GUIWidget specialization that when attached to a window will create a window border, window background and provide resize functionality.
Public
Constructors
WindowFrameWidget
WindowFrameWidget(const HSceneObject &parent, bool allowResize, const HCamera &camera, RenderWindow *ownerWindow)
Constructs a new window frame.
- parent
- Parent SceneObject to attach the Component to.
- allowResize
- Should the widget set up resize handles that can be dragged by the user.
- camera
- Camera to draw the GUI elements in.
- ownerWindow
- Window that the frame widget will act on.
WindowFrameWidget
WindowFrameWidget()
Methods
OnCreated
void OnCreated() override
Called once when the component has been created.
Called regardless of the state the component is in.
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Protected
Methods
OwnerWindowFocusChanged
void OwnerWindowFocusChanged() override
Called when the parent window gained or lost focus.
OwnerTargetResized
void OwnerTargetResized() override
Called when the viewport size changes and widget elements need to be updated.
RefreshNonClientAreas
void RefreshNonClientAreas() const
Updates the non-client areas that notify the OS where the interactable elements used for window resize operations are.
This should be called after any resize operations.
Fields
mAllowResize
bool mAllowResize
mWindowFramePanel
GUIPanel * mWindowFramePanel
mParentWindow
RenderWindow * mParentWindow
mWindowFrame
GUITexture * mWindowFrame