summaryrefslogtreecommitdiff
path: root/FL/Fl_Tree_Item.H
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2012-04-27 02:03:48 +0000
committerGreg Ercolano <erco@seriss.com>2012-04-27 02:03:48 +0000
commit474feee1db323f45fb121b02d76e776cb5c7c2f1 (patch)
tree9782a4a5eec8b676e75cf34a83342f6d9a2a1f6d /FL/Fl_Tree_Item.H
parentfa60da1ca74c8ed9c037ba41dca82f59c31f50a5 (diff)
o Added FL_TREE_ITEM_HEIGHT_FROM_WIDGET option to item_draw_mode()
to allow widgets to control the size of items in the tree (instead of vice versa). o Added item_draw_mode(int) to allow for easier bitflag maintenance, since enums don't seem to be typesafe yet. o Tree demo modified to demonstrate this feature. An important feature for adding large widgets to tree items. Will probably add an example, 'tree-of-tables' to demo this usage. o Small doc fixes. o Had to rename FL_TREE_ITEM_DRAW_WIDGET_ONLY to FL_TREE_ITEM_DRAW_DEFAULT. Its meaning for the bit fields changed when new bit fields were added. (The prev name just didn't make sense in the new context. Since it was just a few svn commits old and an unreleased ABI feature, it shouldn't affect anyone not in R&D) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Tree_Item.H')
-rw-r--r--FL/Fl_Tree_Item.H8
1 files changed, 4 insertions, 4 deletions
diff --git a/FL/Fl_Tree_Item.H b/FL/Fl_Tree_Item.H
index ff6e5c50a..83d6a4b42 100644
--- a/FL/Fl_Tree_Item.H
+++ b/FL/Fl_Tree_Item.H
@@ -232,7 +232,7 @@ public:
select(); // select if deselected
}
}
- /// Select self and all children
+ /// Select item and all its children.
/// Returns count of how many items were in the 'deselected' state,
/// ie. how many items were "changed".
///
@@ -251,7 +251,7 @@ public:
void deselect() {
_selected = 0;
}
- /// Deselect self and all children
+ /// Deselect item and all its children.
/// Returns count of how many items were in the 'selected' state,
/// ie. how many items were "changed".
///
@@ -310,11 +310,11 @@ public:
}
int visible_r() const;
- /// Set the user icon's image. '0' will disable.
+ /// Set the item's user icon to an Fl_Image. '0' will disable.
void usericon(Fl_Image *val) {
_usericon = val;
}
- /// Get the user icon. Returns '0' if disabled.
+ /// Get the item's user icon as an Fl_Image. Returns '0' if disabled.
Fl_Image *usericon() const {
return(_usericon);
}