class
MTileView
- Module
- Miri
- Header
#include "Miri/Widgets/MTileView.h"- Namespace
Miri- Template
template<typename ItemType>
Type aliases
| Alias | Description |
|---|---|
using COnGenerateTile = std::function<TSharedPtr<MWidget>(const ItemType&, uint32_t )> | |
using COnRefreshTile = std::function<void(const TSharedPtr<MWidget>& , const ItemType&, uint32_t )> |
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void(const ItemType&, uint32_t)> | OnSelectionChanged | |
MiriDelegate<void(const ItemType&, uint32_t)> | OnItemActivated |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | Construct | |
void | SetItems | |
const std::vector<ItemType>& | GetItems | |
void | SetOnGenerateTile | |
void | SetOnRefreshTile | |
int32_t | GetColumnCount | |
int32_t | GetAnchorIndex | |
bool | IsSelected | |
int32_t | GetSelectionCount | |
float | GetScrollOffset | |
uint64_t | GetGeneratedTileCount | |
uint64_t | GetRefreshedTileCount | |
int32_t | GetLiveTileCount | |
void | SetSelectedIndex | |
MiriRect | GetTileRect | Absolute rect of tile index as the last arrange placed it. |
int32_t | IndexAt | |
MiriVec2 | ComputeDesiredSize | |
bool | CanCacheDesiredSize | |
bool | DesiredSizeDependsOnChildren | |
bool | CanSkipArrange | |
bool | CanRetainPaint | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnMouseWheel | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonDoubleClick | |
CReply | OnKeyDown | |
void | ScrollIntoView | |
bool | IsFocusable | |
int32_t | GetNumChildren | |
TSharedPtr<MWidget> | GetChildAt | |
const char* | GetTypeName |
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.0fConstruct
C++
void Construct(const CArguments& args)SetItems
C++
void SetItems(const std::vector<ItemType>& items)GetItems
C++
const std::vector<ItemType>& GetItems() constSetOnGenerateTile
C++
void SetOnGenerateTile(COnGenerateTile func)SetOnRefreshTile
C++
void SetOnRefreshTile(COnRefreshTile func)GetColumnCount
C++
int32_t GetColumnCount() constGetAnchorIndex
C++
int32_t GetAnchorIndex() constIsSelected
C++
bool IsSelected(int32_t index) constGetSelectionCount
C++
int32_t GetSelectionCount() constGetScrollOffset
C++
float GetScrollOffset() constGetGeneratedTileCount
C++
uint64_t GetGeneratedTileCount() constGetRefreshedTileCount
C++
uint64_t GetRefreshedTileCount() constGetLiveTileCount
C++
int32_t GetLiveTileCount() constSetSelectedIndex
C++
void SetSelectedIndex(int32_t index)GetTileRect
C++
MiriRect GetTileRect(int32_t index) constAbsolute rect of tile index as the last arrange placed it.
IndexAt
C++
int32_t IndexAt(const MiriVec2& absolutePosition) constComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideDesiredSizeDependsOnChildren
C++
bool DesiredSizeDependsOnChildren() const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideCanRetainPaint
C++
bool CanRetainPaint() 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 overrideOnMouseWheel
C++
CReply OnMouseWheel(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonDoubleClick
C++
CReply OnMouseButtonDoubleClick(const CGeometry& geo, const CPointerEvent& event) overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideScrollIntoView
C++
void ScrollIntoView(const CGeometry& geo, int32_t index)IsFocusable
C++
bool IsFocusable() const overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MTileView.h via miri.json · Dec 5, 2026Version 1.1.0