class

MTileView

Module
Miri
Header
#include "Miri/Widgets/MTileView.h"
Namespace
Miri
Template
template<typename ItemType>

Type aliases

AliasDescription
using COnGenerateTile = std::function<TSharedPtr<MWidget>(const ItemType&, uint32_t )>
using COnRefreshTile = std::function<void(const TSharedPtr<MWidget>& , const ItemType&, uint32_t )>

Properties

TypeNameDescription
MiriDelegate<void(const ItemType&, uint32_t)>OnSelectionChanged
MiriDelegate<void(const ItemType&, uint32_t)>OnItemActivated

Public functions

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MTileView) MIRI_ARG(float, TileWidth) MIRI_ARG(float, TileHeight) MIRI_ARG(float, Gap) MIRI_WIDGET_ARGS_END() static constexpr float SCROLLBAR_GUTTER = 12.0f

Construct

C++
void Construct(const CArguments& args)

SetItems

C++
void SetItems(const std::vector<ItemType>& items)

GetItems

C++
const std::vector<ItemType>& GetItems() const

SetOnGenerateTile

C++
void SetOnGenerateTile(COnGenerateTile func)

SetOnRefreshTile

C++
void SetOnRefreshTile(COnRefreshTile func)

GetColumnCount

C++
int32_t GetColumnCount() const

GetAnchorIndex

C++
int32_t GetAnchorIndex() const

IsSelected

C++
bool IsSelected(int32_t index) const

GetSelectionCount

C++
int32_t GetSelectionCount() const

GetScrollOffset

C++
float GetScrollOffset() const

GetGeneratedTileCount

C++
uint64_t GetGeneratedTileCount() const

GetRefreshedTileCount

C++
uint64_t GetRefreshedTileCount() const

GetLiveTileCount

C++
int32_t GetLiveTileCount() const

SetSelectedIndex

C++
void SetSelectedIndex(int32_t index)

GetTileRect

C++
MiriRect GetTileRect(int32_t index) const

Absolute rect of tile index as the last arrange placed it.

IndexAt

C++
int32_t IndexAt(const MiriVec2& absolutePosition) const

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float) const override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

DesiredSizeDependsOnChildren

C++
bool DesiredSizeDependsOnChildren() const override

CanSkipArrange

C++
bool CanSkipArrange() const override

CanRetainPaint

C++
bool CanRetainPaint() 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

OnMouseWheel

C++
CReply OnMouseWheel(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonDoubleClick

C++
CReply OnMouseButtonDoubleClick(const CGeometry& geo, const CPointerEvent& event) override

OnKeyDown

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

ScrollIntoView

C++
void ScrollIntoView(const CGeometry& geo, int32_t index)

IsFocusable

C++
bool IsFocusable() const override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

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

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MTileView.h via miri.json · Dec 5, 2026Version 1.1.0