X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64c06a508543d16462ae987de3263072e8320e20..23254b138af4bf224b07a9c577db6208742f1c4c:/wxPython/src/controls.i diff --git a/wxPython/src/controls.i b/wxPython/src/controls.i index aca2ea143b..c3f57ddb65 100644 --- a/wxPython/src/controls.i +++ b/wxPython/src/controls.i @@ -338,6 +338,7 @@ public: %pragma(python) addtomethod = "wxPreCheckBox:val._setOORInfo(val)" bool GetValue(); + bool IsChecked(); void SetValue(const bool state); }; @@ -709,6 +710,11 @@ public: #ifndef __WXMAC__ int GetItemHeight(); #endif + + // return the index of the item at this position or wxNOT_FOUND + int HitTest(const wxPoint& pt) const; + %name(HitTestXY)int HitTest(wxCoord x, wxCoord y) const; + }; //---------------------------------------------------------------------- @@ -998,18 +1004,15 @@ public: int FindString(const wxString& string); wxString GetString(int n); - -#ifdef __WXGTK__ - %name(GetItemLabel)wxString GetLabel( int item ); - %name(SetItemLabel)void SetLabel( int item, const wxString& label ); -#else void SetString(int n, const wxString& label); %pragma(python) addtoclass = " GetItemLabel = GetString SetItemLabel = SetString " +#ifndef __WXGTK__ int GetColumnCount(); int GetRowCount(); + int GetNextItem(int item, wxDirection dir, long style); #endif int GetSelection();