Implements TreeViewLabel list item.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CListItemTreeViewLabel :public virtual IListItemTreeViewLabel, public CListItem
{
public:
enum class State // Possible states
{
Normal,
Hovered,
Selected,
SelectedHovered,
Active,
ActiveHovered,
ActiveSelected,
ActiveSelectedHovered,
Disabled
};
protected:
virtual Color getCustomColor(const State state); // Return color depending on state if its alpha channel is > 0. Otherwise return control font color. May be used to return custom color for item text
public:
IListItemTreeViewLabel *getSpecificItem(const int index) override;
String getCaption() override;
int getIconIndex() override;
bool setCaption(const String &value) override;
bool setIconIndex(const int value) override;
IListItem *Clone() override;
bool Copy(IListItem *dest) override;
IListItemService *QueryService() override;
bool Add(const String &caption) override;
bool Add(IListItemTreeViewLabel *item) override;
bool Insert(const String &caption, const int before) override;
bool Insert(IListItemTreeViewLabel *item, const int before) override;
CListItemTreeViewLabel();
CListItemTreeViewLabel(const String &caption);
~CListItemTreeViewLabel();
State getState(); // Return current state
// Return layout properties
RectF getBorderWidth(const State state) const;
RectF getBorderRadius(const State state) const;
RectF getPadding(const State state) const;
RectF getIconPadding(const State state) const;
BorderColor getBorderColor(const State state) const;
Color getBackgroundColor(const State state) const;
Gradient *getBackgroundGradient(const State state);
Color getColor(const State state) const;
// Set layout properties
bool setBorderWidth(const State state, const RectF &value);
bool setBorderRadius(const State state, const RectF &value);
bool setPadding(const State state, const RectF &value);
bool setIconPadding(const State state, const RectF &value);
bool setBorderColor(const State state, const BorderColor &value);
bool setBackgroundColor(const State state, const Color &value);
bool setColor(const State state, const Color &value);
};
Namespace: | nitisa::standard |
Include: | Standard/ListItems/TreeViewLabel/ListItemTreeViewLabel.h |