class

MAcceptBar

Module
Miri
Header
#include "Miri/Widgets/MAcceptBar.h"
Namespace
Miri

Properties

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

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetIcon
voidSetTitle
voidSetMeta
voidAccept
voidCancel
MiriRectPlaceWhere 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.
EMiriAcceptBarHitHitTestWhat 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.
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
CReplyOnKeyDown
int32_tGetNumChildren
TSharedPtr<MWidget>GetChildAt
boolIsFocusable
EFocusVisualGetFocusVisual
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MAcceptBar) MIRI_ARG(std::string, Icon) MIRI_ARG(std::string, Title) MIRI_ARG(std::string, Meta) MIRI_ARG(std::string, AcceptLabel) MIRI_ARG(std::string, CancelLabel) MIRI_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++
MiriRect Place(const MiriRect& 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 CMiriPaintArgs& args, const MiriRect& rect, CMiriRenderer& 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++
EMiriAcceptBarHit HitTest(const MiriVec2& absolute) const

What an absolute point lands on, after PaintAt or a normal arrange.

HoverAt

C++
void HoverAt(const MiriVec2& absolute)

Hover feedback for overlay hosts that route the pointer themselves.

PressAt

C++
bool PressAt(const MiriVec2& 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++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

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

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& 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<MWidget> 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 Miri/Widgets/MAcceptBar.h via miri.json · Dec 5, 2026Version 1.1.0