class
MAcceptBar
- Module
- Miri
- Header
#include "Miri/Widgets/MAcceptBar.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void()> | OnAccept | |
MiriDelegate<void()> | OnCancel |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetIcon | |
void | SetTitle | |
void | SetMeta | |
void | Accept | |
void | Cancel | |
MiriRect | 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. |
EMiriAcceptBarHit | 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. |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnKeyDown | |
int32_t | GetNumChildren | |
TSharedPtr<MWidget> | GetChildAt | |
bool | IsFocusable | |
EFocusVisual | GetFocusVisual | |
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) constWhat 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 overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const overrideIsFocusable
C++
bool IsFocusable() const overrideGetFocusVisual
C++
EFocusVisual GetFocusVisual() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MAcceptBar.h via miri.json · Dec 5, 2026Version 1.1.0