From 72bc14da9d9db1916a5dc51c89fa4ae33857d53b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 18 Sep 2006 19:14:02 +0000 Subject: [PATCH] Add a couple missing methods git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/listctrl.h | 4 ++++ src/mac/carbon/listctrl_mac.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/include/wx/mac/carbon/listctrl.h b/include/wx/mac/carbon/listctrl.h index cd02fd737f..f9b166f2ae 100644 --- a/include/wx/mac/carbon/listctrl.h +++ b/include/wx/mac/carbon/listctrl.h @@ -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 diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index 6e58c2c2d1..faa0a9c771 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -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) -- 2.45.2