Open 3D Engine LyShine Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
UiDynamicScrollBoxDataInterface Class Reference

Interface class that provides data needed to display a list of elements. More...

#include <UiDynamicScrollBoxBus.h>

Inherits AZ::ComponentBus.

Public Member Functions

virtual int GetNumElements ()
 
virtual float GetElementWidth (int index)
 
virtual float GetElementHeight (int index)
 
virtual int GetNumSections ()
 
virtual int GetNumElementsInSection (int sectionIndex)
 
virtual float GetElementInSectionWidth (int sectionIndex, int elementindex)
 
virtual float GetElementInSectionHeight (int sectionIndex, int elementindex)
 
virtual float GetSectionHeaderWidth (int sectionIndex)
 
virtual float GetSectionHeaderHeight (int sectionIndex)
 

Static Public Attributes

static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single
 Only one component on a entity can implement the events.
 

Detailed Description

Interface class that provides data needed to display a list of elements.

Member Function Documentation

◆ GetElementHeight()

virtual float UiDynamicScrollBoxDataInterface::GetElementHeight ( int  index)
inlinevirtual

Returns the height of an element at the specified index. Called when a vertical list contains elements of varying size, and the element's "auto calculate size" option is disabled. Used with lists that are not divided into sections

◆ GetElementInSectionHeight()

virtual float UiDynamicScrollBoxDataInterface::GetElementInSectionHeight ( int  sectionIndex,
int  elementindex 
)
inlinevirtual

Returns the height of an element at the specified section. Called when a vertical list contains elements of varying size, and the element's "auto calculate size" option is disabled. Used with lists that are divided into sections

◆ GetElementInSectionWidth()

virtual float UiDynamicScrollBoxDataInterface::GetElementInSectionWidth ( int  sectionIndex,
int  elementindex 
)
inlinevirtual

Returns the width of an element at the specified section. Called when a horizontal list contains elements of varying size, and the element's "auto calculate size" option is disabled. Used with lists that are divided into sections

◆ GetElementWidth()

virtual float UiDynamicScrollBoxDataInterface::GetElementWidth ( int  index)
inlinevirtual

Returns the width of an element at the specified index. Called when a horizontal list contains elements of varying size, and the element's "auto calculate size" option is disabled. Used with lists that are not divided into sections

◆ GetNumElements()

virtual int UiDynamicScrollBoxDataInterface::GetNumElements ( )
inlinevirtual

Returns the number of elements in the list. Called when the list is being constructed (in the component's InGamePostActivate or when RefreshContent is being called explicitely). Used with lists that are not divided into sections

◆ GetNumElementsInSection()

virtual int UiDynamicScrollBoxDataInterface::GetNumElementsInSection ( int  sectionIndex)
inlinevirtual

Returns the number of elements in the specified section. Called when the list is being constructed (in the component's InGamePostActivate or when RefreshContent is being called explicitely). Used with lists that are divided into sections

◆ GetNumSections()

virtual int UiDynamicScrollBoxDataInterface::GetNumSections ( )
inlinevirtual

Returns the number of sections in the list. Called when the list is being constructed (in the component's InGamePostActivate or when RefreshContent is being called explicitely). Used with lists that are divided into sections

◆ GetSectionHeaderHeight()

virtual float UiDynamicScrollBoxDataInterface::GetSectionHeaderHeight ( int  sectionIndex)
inlinevirtual

Returns the height of a header at the specified section. Called when a vertical list contains elements of varying size, and the header's "auto calculate size" option is disabled. Used with lists that are divided into sections

◆ GetSectionHeaderWidth()

virtual float UiDynamicScrollBoxDataInterface::GetSectionHeaderWidth ( int  sectionIndex)
inlinevirtual

Returns the width of a header at the specified section. Called when a horizontal list contains headers of varying size, and the header's "auto calculate size" option is disabled. Used with lists that are divided into sections


The documentation for this class was generated from the following file: