]> git.saurik.com Git - wxWidgets.git/commitdiff
Add a couple missing methods
authorRobin Dunn <robin@alldunn.com>
Mon, 18 Sep 2006 19:14:02 +0000 (19:14 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 18 Sep 2006 19:14:02 +0000 (19:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/carbon/listctrl.h
src/mac/carbon/listctrl_mac.cpp

index cd02fd737fff2165766a391af6d176389b17f986..f9b166f2ae6fb9ece58ceab881546de07641ef5e 100644 (file)
@@ -137,6 +137,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl
   // Gets the number of columns in the list control
   int GetColumnCount() const;
 
+  void SetItemSpacing( int spacing, bool isSmall = false );
   wxSize GetItemSpacing() const;
 
   // Gets the number of selected items in the list control
@@ -154,6 +155,9 @@ class WXDLLEXPORT wxListCtrl: public wxControl
   // list or report view
   long GetTopItem() const ;
 
+  // are we in report mode?
+  bool InReportView() const { return HasFlag(wxLC_REPORT); }
+
   bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
 
   // Add or remove a single window style
index 6e58c2c2d1c0ec8fed9ec88931d993209887fddd..faa0a9c771ad0a026c2662ee48802877b3e49750 100644 (file)
@@ -626,6 +626,12 @@ int wxListCtrl::GetItemCount() const
     return m_count;
 }
 
+void wxListCtrl::SetItemSpacing( int spacing, bool isSmall )
+{
+    if (m_genericImpl)
+        m_genericImpl->SetItemSpacing(spacing, isSmall);
+}
+
 wxSize wxListCtrl::GetItemSpacing() const
 {
     if (m_genericImpl)