33 FXTreeItemDynamic(
const FXString& text, FXIcon* oi =
nullptr, FXIcon* ci =
nullptr,
void* ptr =
nullptr);
40 void draw(
const FXTreeList* list, FXDC& dc, FXint xx, FXint yy, FXint, FXint hh)
const;
75 FXTreeItem*
prependItem(FXTreeItem* father,
const FXString& text, FXIcon* oi, FXColor tColor = FXRGB(0, 0, 0));
78 FXTreeItem*
appendItem(FXTreeItem* father,
const FXString& text, FXIcon* oi, FXColor tColor = FXRGB(0, 0, 0));
84 FXTreeItem*
getItemAt(FXint x, FXint y)
const;
FXColor myTextColor
set text color
void setTextColor(FXColor clr)
Change text color.
void draw(const FXTreeList *list, FXDC &dc, FXint xx, FXint yy, FXint, FXint hh) const
draw tree item
void show()
Show MFXTreeListDynamic.
std::vector< FXTreeItemDynamic * > myFXTreeItemDynamicItems
list with current FXTreeItemDynamic elements
void clearItems()
clear items
FXint getNumItems()
get num items
FXint mySelectedItem
selected item
long onLeftBtnPress(FXObject *, FXSelector, void *)
void resetSelectedItem()
reset selected item
MFXTreeListDynamic(const MFXTreeListDynamic &)=delete
Invalidated copy constructor.
MFXTreeListDynamic()
default constructor
void hide()
Hide MFXTreeListDynamic.
FXWindow * getFXWindow()
get FXWindows associated with this MFXTreeListDynamic
FXTreeItem * getItemAt(FXint x, FXint y) const
Get item at x,y, if any.
FXTreeItem * appendItem(FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=FXRGB(0, 0, 0))
append item with given text and icon
MFXTreeListDynamic & operator=(const MFXTreeListDynamic &)=delete
Invalidated assignment operator.
FXint getSelectedIndex()
getSelected item index
FXTreeItemDynamic * getItem(FXint index) const
Get item.
FXTreeItem * prependItem(FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=FXRGB(0, 0, 0))
prepend item with given text and icon