class

AAcceptBar

Module
Arc
Header
#include "Arc/Widgets/AAcceptBar.h"
Namespace
Arcf

Properties

TypeNameDescription
ArcDelegate<void()>OnAccept
ArcDelegate<void()>OnCancel

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetIcon
voidSetTitle
voidSetMeta
voidAccept
voidCancel
ArcRectPlaceWhere the bar sits in a viewport rect: centred, its spec bottom offset above the viewport's bottom edge, at its desired size.
int32_tPaintAtLays the bar out at rect and paints it, for hosts that draw it from an overlay paint rather than from a widget slot.
EArcAcceptBarHitHitTestWhat an absolute point lands on, after PaintAt or a normal arrange.
voidHoverAtHover feedback for overlay hosts that route the pointer themselves.
boolPressAtA 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.
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
CReplyOnKeyDown
int32_tGetNumChildren
TSharedPtr<AWidget>GetChildAt
boolIsFocusable
EFocusVisualGetFocusVisual
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) const

What 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 override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

OnKeyDown

C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const override

IsFocusable

C++
bool IsFocusable() const override

GetFocusVisual

C++
EFocusVisual GetFocusVisual() const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/AAcceptBar.h via arc.json · Nov 5, 2026Version 1.0.0