Add a couple missing methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,6 +137,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl
|
|||||||
// Gets the number of columns in the list control
|
// Gets the number of columns in the list control
|
||||||
int GetColumnCount() const;
|
int GetColumnCount() const;
|
||||||
|
|
||||||
|
void SetItemSpacing( int spacing, bool isSmall = false );
|
||||||
wxSize GetItemSpacing() const;
|
wxSize GetItemSpacing() const;
|
||||||
|
|
||||||
// Gets the number of selected items in the list control
|
// Gets the number of selected items in the list control
|
||||||
@@ -154,6 +155,9 @@ class WXDLLEXPORT wxListCtrl: public wxControl
|
|||||||
// list or report view
|
// list or report view
|
||||||
long GetTopItem() const ;
|
long GetTopItem() const ;
|
||||||
|
|
||||||
|
// are we in report mode?
|
||||||
|
bool InReportView() const { return HasFlag(wxLC_REPORT); }
|
||||||
|
|
||||||
bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
|
bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
|
||||||
|
|
||||||
// Add or remove a single window style
|
// Add or remove a single window style
|
||||||
|
|||||||
@@ -626,6 +626,12 @@ int wxListCtrl::GetItemCount() const
|
|||||||
return m_count;
|
return m_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxListCtrl::SetItemSpacing( int spacing, bool isSmall )
|
||||||
|
{
|
||||||
|
if (m_genericImpl)
|
||||||
|
m_genericImpl->SetItemSpacing(spacing, isSmall);
|
||||||
|
}
|
||||||
|
|
||||||
wxSize wxListCtrl::GetItemSpacing() const
|
wxSize wxListCtrl::GetItemSpacing() const
|
||||||
{
|
{
|
||||||
if (m_genericImpl)
|
if (m_genericImpl)
|
||||||
|
|||||||
Reference in New Issue
Block a user