]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/treectlg.h
Committing in .
[wxWidgets.git] / include / wx / generic / treectlg.h
index 6b661d238bf5e08bd50a9cceb5c985fca90c0ae7..650d518bc312a815fb6af45bf94878fd382248be 100644 (file)
@@ -210,6 +210,10 @@ public:
         // get the previous visible item: item must be visible itself!
     wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
 
+        // Only for internal use right now, but should probably be public
+    wxTreeItemId GetNext(const wxTreeItemId& item) const;
+    wxTreeItemId GetPrev(const wxTreeItemId& item) const;
+
     // operations
     // ----------
 
@@ -281,6 +285,11 @@ public:
         { int dummy; return HitTest(point, dummy); }
     wxTreeItemId HitTest(const wxPoint& point, int& flags);
 
+        // get the bounding rectangle of the item (or of its label only)
+    bool GetBoundingRect(const wxTreeItemId& item,
+                         wxRect& rect,
+                         bool textOnly = FALSE) const;
+
         // Start editing the item label: this (temporarily) replaces the item
         // with a one line edit control. The item will be selected if it hadn't
         // been before.
@@ -366,7 +375,9 @@ protected:
                               int image, int selectedImage,
                               wxTreeItemData *data);
 
+public:
     void AdjustMyScrollbars();
+protected:
     int  GetLineHeight(wxGenericTreeItem *item) const;
     void PaintLevel( wxGenericTreeItem *item, wxDC& dc, int level, int &y );
     void PaintItem( wxGenericTreeItem *item, wxDC& dc);