STileView

A TileView widget is a list which arranges its items horizontally until there is no more space then creates a new row.

Windows
MacOS
Linux

Inheritance Hierarchy

STableViewBase

TListTypeTraits< ItemType >::SerializerType

ITypedTableView

SListView

STileView

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Views/STileView.h

Include

#include "Widgets/Views/STileView.h"

Syntax

template<typename ItemType>
class STileView : public SListView< ItemType >

Remarks

A TileView widget is a list which arranges its items horizontally until there is no more space then creates a new row. Items are spaced evenly horizontally.

Variables

Name Description

Protected variable

bool

 

bWrapHorizontalNavigation

Should the left and right navigations be handled as a wrap when hitting the bounds.

Constructors

Name Description

Public function

STileView

(
    ETableViewMode::Type InListMode
)

Functions

Name Description

Public function

void

 

Construct

(
    const typename STileView< ItemType ...
)

Construct this widget

Protected function Const

FTableViewDi...

 

GetTileDimensions()

Overridden from STableViewBase

Name Description

Public function Virtual Const

int32

 

GetNumItemsBeingObserved()

Protected function Virtual Const

int32

 

GetNumItemsPerLine()

Get the number of items that can fit in the view along the line axis (orthogonal to the scroll axis) before creating a new line.

Public function Virtual

STableViewBa...

 

ReGenerateItems

(
    const FGeometry& MyGeometry
)

Update generate Widgets for Items as needed and clean up any Widgets that are no longer needed.

Protected function Virtual

float

 

ScrollBy

(
    const FGeometry& MyGeometry,
    float ScrollByAmount,
    EAllowOverscroll InAllowOverscroll
)

Scroll the list view by some number of screen units.

Protected function Virtual

SListView< I...

 

ScrollIntoView

(
    const FGeometry& ListViewGeometry
)

If there is a pending request to scroll an item into view, do so.

Overridden from SWidget

Name Description

Public function Virtual

FNavigationR...

 

OnNavigation

(
    const FGeometry& MyGeometry,
    const FNavigationEvent& InNavigati...
)

Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events.

Classes

Name

Description

Public struct

FArguments

Typedefs

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss