engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | Protected 成员函数 | 所有成员列表
ITypedUMGListView< ItemType > 模板类 参考abstract

Mirrored SListView<T> API for easier interaction with a bound UListViewBase widget See declarations on SListView for more info on each function and event 更多...

#include <ListViewBase.h>

类

struct  FListViewConstructArgs
 ListView construction helpers Use these instead of SNew-ing your owned ListView directly to get exposed events for free 更多...
 

Public 成员函数

virtual TSubclassOf< UUserWidget > GetDesiredEntryClassForItem (ItemType Item) const
 Default behavior is to check the delegate, then fall back to the default if that fails. 更多...
 

Protected 成员函数

virtual FMargin GetDesiredEntryPadding (ItemType Item) const
 Gets the desired padding for the entry representing the given item
 
template<template< typename > class ObjectRowT = SObjectTableRow>
TSharedPtr< ObjectRowT< ItemType > > GetObjectRowFromItem (const ItemType &Item) const
 Gets the SObjectTableRow underlying the UMG EntryWidget that represents the given item (if one exists)
 
virtual UUserWidget & OnGenerateEntryWidgetInternal (ItemType Item, TSubclassOf< UUserWidget > DesiredEntryClass, const TSharedRef< STableViewBase > &OwnerTable)=0
 Generates the actual entry widget that represents the given item. 更多...
 
virtual void OnGetChildrenInternal (ItemType Item, TArray< ItemType > &OutChildren) const
 TreeViews only. 更多...
 
virtual void OnItemClickedInternal (ItemType Item)
 ListView events - implement these instead of binding handlers directly to a list
 

详细描述

template<typename ItemType>
class ITypedUMGListView< ItemType >

Mirrored SListView<T> API for easier interaction with a bound UListViewBase widget See declarations on SListView for more info on each function and event

Note that, being a template class, this is not a UClass and therefore cannot be exposed to Blueprint. If you are using UObject* items, just use (or inherit from) UListView directly Otherwise, it is up to the child class to propagate events and/or expose functions to BP as needed

Use the IMPLEMENT_TYPED_UMG_LIST() macro for the implementation boilerplate in your implementing class.

参见
UListView for an implementation example.

成员函数说明

◆ GetDesiredEntryClassForItem()

template<typename ItemType >
virtual TSubclassOf< UUserWidget > ITypedUMGListView< ItemType >::GetDesiredEntryClassForItem ( ItemType  Item) const
inlinevirtual

Default behavior is to check the delegate, then fall back to the default if that fails.

Feel free to override directly in child classes to determine the class yourself.

◆ OnGenerateEntryWidgetInternal()

template<typename ItemType >
virtual UUserWidget & ITypedUMGListView< ItemType >::OnGenerateEntryWidgetInternal ( ItemType  Item,
TSubclassOf< UUserWidget >  DesiredEntryClass,
const TSharedRef< STableViewBase > &  OwnerTable 
)
protectedpure virtual

Generates the actual entry widget that represents the given item.

Expected to be used in concert with UListViewBase::GenerateTypedEntry().

在 UListView 内被实现.

◆ OnGetChildrenInternal()

template<typename ItemType >
virtual void ITypedUMGListView< ItemType >::OnGetChildrenInternal ( ItemType  Item,
TArray< ItemType > &  OutChildren 
) const
inlineprotectedvirtual

TreeViews only.

Gets the items to consider children of the given item when generating child entries.

被 UTreeView 重载.


该类的文档由以下文件生成: