mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 04:55:29 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user