summaryrefslogtreecommitdiff
path: root/FL/Fl_Tree_Item.H
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2013-11-10 04:33:44 +0000
committerGreg Ercolano <erco@seriss.com>2013-11-10 04:33:44 +0000
commit88cea3c82dd821e652608fcccce229fea0249d08 (patch)
treeaf8f5c8c8d3336522a98959b717c4855eb2114c2 /FL/Fl_Tree_Item.H
parent39a8ef3c4cb3fb61c7aec9717423490aad6604ff (diff)
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
Diffstat (limited to 'FL/Fl_Tree_Item.H')
-rw-r--r--FL/Fl_Tree_Item.H4
1 files changed, 4 insertions, 0 deletions
diff --git a/FL/Fl_Tree_Item.H b/FL/Fl_Tree_Item.H
index 5a3a8d6db..81c73fd64 100644
--- a/FL/Fl_Tree_Item.H
+++ b/FL/Fl_Tree_Item.H
@@ -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;