class
AAcceptBar
- Module
- Arc
- Header
#include "Arc/Widgets/AAcceptBar.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
ArcDelegate<void()> | OnAccept | |
ArcDelegate<void()> | OnCancel |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetIcon | |
void | SetTitle | |
void | SetMeta | |
void | Accept | |
void | Cancel | |
ArcRect | Place | Where the bar sits in a viewport rect: centred, its spec bottom offset above the viewport's bottom edge, at its desired size. |
int32_t | PaintAt | Lays the bar out at rect and paints it, for hosts that draw it from an overlay paint rather than from a widget slot. |
EArcAcceptBarHit | HitTest | What an absolute point lands on, after PaintAt or a normal arrange. |
void | HoverAt | Hover feedback for overlay hosts that route the pointer themselves. |
bool | PressAt | A click at an absolute point: Accept or Cancel when it lands on one; true whenever it lands on the bar at all, so the host swallows it. |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnKeyDown | |
int32_t | GetNumChildren | |
TSharedPtr<AWidget> | GetChildAt | |
bool | IsFocusable | |
EFocusVisual | GetFocusVisual | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(AAcceptBar) ARC_ARG(std::string, Icon) ARC_ARG(std::string, Title) ARC_ARG(std::string, Meta) ARC_ARG(std::string, AcceptLabel) ARC_ARG(std::string, CancelLabel) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)SetIcon
C++
void SetIcon(const std::string& lucideId)SetTitle
C++
void SetTitle(const std::string& title)SetMeta
C++
void SetMeta(const std::string& meta)Accept
C++
void Accept()Cancel
C++
void Cancel()Place
C++
ArcRect Place(const ArcRect& viewport)Where the bar sits in a viewport rect: centred, its spec bottom offset above the viewport's bottom edge, at its desired size.
PaintAt
C++
int32_t PaintAt(const CArcPaintArgs& args, const ArcRect& rect, CArcUIRenderer& renderer, int32_t layerId)Lays the bar out at rect and paints it, for hosts that draw it from an overlay paint rather than from a widget slot.
HitTest
C++
EArcAcceptBarHit HitTest(const ArcVec2& absolute) constWhat an absolute point lands on, after PaintAt or a normal arrange.
HoverAt
C++
void HoverAt(const ArcVec2& absolute)Hover feedback for overlay hosts that route the pointer themselves.
PressAt
C++
bool PressAt(const ArcVec2& absolute)A click at an absolute point: Accept or Cancel when it lands on one; true whenever it lands on the bar at all, so the host swallows it.
ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const overrideIsFocusable
C++
bool IsFocusable() const overrideGetFocusVisual
C++
EFocusVisual GetFocusVisual() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AAcceptBar.h via arc.json · Nov 5, 2026Version 1.0.0