X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6762286db6cf974817dead5b88bebf0e390dbb7e..032e024c1c6ab6a20226604baab9d00558620e72:/include/wx/osx/listctrl.h?ds=sidebyside diff --git a/include/wx/osx/listctrl.h b/include/wx/osx/listctrl.h index 8d06d24d84..8880515976 100644 --- a/include/wx/osx/listctrl.h +++ b/include/wx/osx/listctrl.h @@ -127,6 +127,9 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl // Gets the item rectangle bool GetItemRect(long item, wxRect& rect, int code = wxLIST_RECT_BOUNDS) const ; + // Gets the item rectangle of a subitem + bool GetSubItemRect( long item, long subItem, wxRect& rect, int code = wxLIST_RECT_BOUNDS ) const; + // Gets the item position bool GetItemPosition(long item, wxPoint& pos) const ; @@ -278,7 +281,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl // or zero if the two items are equivalent. // data is arbitrary data to be passed to the sort function. - bool SortItems(wxListCtrlCompare fn, long data); + bool SortItems(wxListCtrlCompare fn, wxIntPtr data); wxMacDataBrowserListCtrlControl* GetListPeer() const; @@ -314,7 +317,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl void Command(wxCommandEvent& event) { ProcessCommand(event); }; wxListCtrlCompare GetCompareFunc() { return m_compareFunc; }; - long GetCompareFuncData() { return m_compareFuncData; }; + wxIntPtr GetCompareFuncData() { return m_compareFuncData; }; // public overrides needed for pimpl approach @@ -323,6 +326,10 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl virtual bool SetBackgroundColour(const wxColour& colour); virtual wxColour GetBackgroundColour() const; + virtual void Freeze (); + virtual void Thaw (); + virtual void Update (); + // functions for editing/timer void OnRenameTimer(); bool OnRenameAccept(long itemEdit, const wxString& value); @@ -388,7 +395,7 @@ protected: void* m_macListCtrlEventHandler; void* m_cgContext; wxListCtrlCompare m_compareFunc; - long m_compareFuncData; + wxIntPtr m_compareFuncData; wxTextCtrl* m_textCtrl; // The control used for editing a label wxImageList * m_imageListNormal; // The image list for normal icons