X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5bf3b95098a2f4e62d788596234a5473594329b..40413a5b7072c33464d55fe7d457e7f5791633a3:/include/wx/gtk/listbox.h?ds=sidebyside diff --git a/include/wx/gtk/listbox.h b/include/wx/gtk/listbox.h index 9bbbb0fa42..43012923c1 100644 --- a/include/wx/gtk/listbox.h +++ b/include/wx/gtk/listbox.h @@ -26,6 +26,7 @@ //----------------------------------------------------------------------------- class wxListBox; +class wxArrayInt; //----------------------------------------------------------------------------- // global data @@ -46,36 +47,39 @@ class wxListBox: public wxControl wxListBox(void); wxListBox( wxWindow *parent, wxWindowID id, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - const int n = 0, const wxString choices[] = NULL, - const long style = 0, const wxString &name = wxListBoxNameStr ); - bool Create( wxWindow *parent, wxWindowID id, + int n = 0, const wxString choices[] = NULL, + long style = 0, const wxString &name = wxListBoxNameStr ); + bool Create( wxWindow *parent, wxWindowID id, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - const int n = 0, const wxString choices[] = NULL, - const long style = 0, const wxString &name = wxListBoxNameStr ); + int n = 0, const wxString choices[] = NULL, + long style = 0, const wxString &name = wxListBoxNameStr ); void Append( const wxString &item ); void Append( const wxString &item, char *clientData ); void Clear(void); void Delete( int n ); void Deselect( int n ); int FindString( const wxString &item ) const; - char *GetClientData( const int n ) const; + char *GetClientData( int n ) const; int GetSelection(void) const; int GetSelections( class wxArrayInt &) const; wxString GetString( int n ) const; wxString GetStringSelection(void) const; int Number(void); - bool Selected( const int n ); - void Set( const int n, const wxString *choices ); - void SetClientData( const int n, char *clientData ); + bool Selected( int n ); + void Set( int n, const wxString *choices ); + void SetClientData( int n, char *clientData ); void SetFirstItem( int n ); void SetFirstItem( const wxString &item ); - void SetSelection( const int n, const bool select = TRUE ); - void SetString( const int n, const wxString &string ); - void SetStringSelection( const wxString &string, const bool select = TRUE ); - + void SetSelection( int n, bool select = TRUE ); + void SetString( int n, const wxString &string ); + void SetStringSelection( const wxString &string, bool select = TRUE ); + + virtual GtkWidget *GetConnectWidget(void); + private: GtkList *m_list; + wxList m_clientData; public: