3#include "IListCell.hpp"
10 class IListItem :
public std::enable_shared_from_this<IListItem>
15 using Ptr = std::shared_ptr<IListItem>;
50 template<
class t_CellType>
53 if (Cell() && classof(t_CellType) == Cell()->klass)
54 return reinterpret_cast<t_CellType
>(Cell());
Abstract List Cell component.
void SetCell(IListCell *p_Cell)
Set displayed Cell.
virtual void OnHide()
On hide.
virtual void OnUnselect()
On Unselect.
t_CellType GetCellAsClassOf()
Convert and test Cell to t_CellType.
virtual void OnSelect()
On select.
virtual ~IListItem()
Destructor.
virtual void OnShow()
On show.
< namespace CP_SDK::UI::Components