o Added Fl_Tree::item_draw_callback(), letting one define a custom draw function for Fl_Tree_Item's.

o Added examples/tree-custom-draw-items.cxx to demonstrate its use.
o Fixed small doc error for recent Fl_Tree::get_selected_items()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano
2013-11-10 04:33:44 +00:00
parent 39a8ef3c4c
commit 88cea3c82d
8 changed files with 235 additions and 38 deletions
+4
View File
@@ -98,6 +98,10 @@ public:
int y() const { return(_xywh[1]); }
int w() const { return(_xywh[2]); }
int h() const { return(_xywh[3]); }
int label_x() const { return(_label_xywh[0]); }
int label_y() const { return(_label_xywh[1]); }
int label_w() const { return(_label_xywh[2]); }
int label_h() const { return(_label_xywh[3]); }
int calc_item_height(const Fl_Tree_Prefs &prefs) const;
void draw(int X, int &Y, int W, Fl_Widget *tree, Fl_Tree_Item *itemfocus, const Fl_Tree_Prefs &prefs, int lastchild=1);
void show_self(const char *indent = "") const;