TreeViewItem

AppCUI::Controls::TreeViewItem (class)

class TreeViewItem

Public Types

enum class Type : uint16

Values:

enumerator Normal = 0
enumerator Highlighted = 1
enumerator GrayedOut = 2
enumerator ErrorInformation = 3
enumerator WarningInformation = 4
enumerator Emphasized_1 = 5
enumerator Emphasized_2 = 6
enumerator Category = 7
enumerator Colored = 8

Public Functions

inline TreeViewItem()
inline bool IsValid() const
TreeViewItem AddChild(ConstString name, bool isExpandable = false)
bool SetText(ConstString name)
const AppCUI::Graphics::CharacterBuffer &GetText() const
bool SetValues(const std::initializer_list<ConstString> values)
bool SetText(uint32 subItemIndex, const ConstString &text)
const Graphics::CharacterBuffer &GetText(uint32 subItemIndex) const
bool SetData(uint64 value)
uint64 GetData(uint64 errorValue) const
bool SetType(TreeViewItem::Type type)
bool SetColor(const Graphics::ColorPair &color)
bool SetCurrent()
bool IsCurrent() const
bool SetFolding(bool expanded)
bool IsFolded()
bool SetExpandable(bool expandable)
bool IsExpandable() const
uint32 GetChildrenCount() const
TreeViewItem GetChild(uint32 index)
bool DeleteChildren()
ItemHandle GetHandle() const
bool Toggle(bool recursiveCall = false)
bool ToggleRecursively()
bool Fold()
bool Unfold()
bool FoldAll()
bool UnfoldAll()
TreeViewItem GetParent() const
uint32 GetPriority() const
bool SetPriority(uint32 priority) const
template<typename T>
inline constexpr bool SetData(Reference<T> obj)
template<typename T>
inline constexpr Reference<T> GetData() const
inline bool operator==(const TreeViewItem &other) const

Friends

friend class TreeView