class
AWindowFrame
- Module
- Arc
- Header
#include "Arc/Widgets/AWindowFrame.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kTitleBarHeight | Default 30.0f. |
static constexpr float | kBorderWidth | Default 1.0f. |
static constexpr float | kButtonWidth | Default 46.0f. |
static constexpr float | kResizeEdge | Default 5.0f. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | Optional menu/toolbar widget embedded in title bar (after title text) | |
WidgetArgsType& | TitleBarContent | |
ARC_WIDGET_ARGS_END | ||
void | SetPlatformWindow | |
IArcPlatformWindow* | GetPlatformWindow | |
float | GetTitleTextWidth | |
bool | HasTitleBarContent | |
void | SetTitle | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
bool | CanSkipArrange | Refused: the frame lays out against the live platform window state (maximized, borders) that no widget setter announces. |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
void | OnMouseLeave | |
EArcCursorType | OnCursorQuery | |
bool | ClaimsPointerExclusively | |
void | OnMouseCaptureLost | |
int32_t | GetNumChildren | |
TSharedPtr<AWidget> | GetChildAt | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(AWindowFrame) ARC_ARG(std::string, Title) ARC_ARG(ArcColor, TitleBarColor) ARC_ARG(ArcColor, BorderColor) ARC_ARG(float, BorderWidth) ARC_ARG(bool, ShowMinimize) ARC_ARG(bool, ShowMaximize) ARC_CONTENT(AWindowFrame, Content) TSharedPtr<AWidget> _TitleBarContentOptional menu/toolbar widget embedded in title bar (after title text)
TitleBarContent
C++
WidgetArgsType& TitleBarContent(TSharedPtr<AWidget> w)ARC_WIDGET_ARGS_END
C++
ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)SetPlatformWindow
C++
void SetPlatformWindow(IArcPlatformWindow* window)GetPlatformWindow
C++
IArcPlatformWindow* GetPlatformWindow() constGetTitleTextWidth
C++
float GetTitleTextWidth() constHasTitleBarContent
C++
bool HasTitleBarContent() constSetTitle
C++
void SetTitle(const std::string& title)ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideRefused: the frame lays out against the live platform window state (maximized, borders) that no widget setter announces.
OnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideOnCursorQuery
C++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideClaimsPointerExclusively
C++
bool ClaimsPointerExclusively(const CGeometry& geo, const ArcVec2& absolutePosition) const overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AWindowFrame.h via arc.json · Nov 5, 2026Version 1.0.0