class
MKeyMapping
- Module
- Miri
- Header
#include "Miri/Widgets/MKeyMapping.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void(int32_t, const CInputChord&)> | OnBindingCaptured | A keyboard capture (or a clear) on a row. |
MiriDelegate<void(int32_t, const CKeyCaptureResult&)> | OnBindingCaptureResult | Every capture on a row, typed: hosts that store mouse buttons and wheel notches read this, since those have no chord. |
MiriDelegate<void(int32_t)> | OnBindingAdded | |
MiriDelegate<void(int32_t)> | OnBindingRemoved |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetBindings | |
const std::vector<FMiriKeyBinding>& | GetBindings | |
void | AddBinding | What + does: appends an empty row and starts its capture. |
void | RemoveBinding | |
TSharedPtr<MKeyCaptureField> | GetCaptureField | The capture field of a row, for hosts and tests. |
void | SetCollapsed | Folds the card to its header (the header chevron does the same). |
bool | IsCollapsed | |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MKeyMapping) MIRI_ARG(std::string, Action) MIRI_ARG(std::string, ValueType) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)SetBindings
C++
void SetBindings(std::vector<FMiriKeyBinding> bindings)GetBindings
C++
const std::vector<FMiriKeyBinding>& GetBindings() constAddBinding
C++
void AddBinding()What + does: appends an empty row and starts its capture.
RemoveBinding
C++
void RemoveBinding(int32_t index)GetCaptureField
C++
TSharedPtr<MKeyCaptureField> GetCaptureField(int32_t index) constThe capture field of a row, for hosts and tests.
SetCollapsed
C++
void SetCollapsed(bool collapsed)Folds the card to its header (the header chevron does the same).
IsCollapsed
C++
bool IsCollapsed() constComputeDesiredSize
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 overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MKeyMapping.h via miri.json · Dec 5, 2026Version 1.1.0