X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2414cbe8c21931afbb590132232553514da824c..cbb8c1d34c68feaeb5861aa91bdbf715b2d963b0:/include/wx/gtk/listbox.h diff --git a/include/wx/gtk/listbox.h b/include/wx/gtk/listbox.h index ee3332ba2e..028422912d 100644 --- a/include/wx/gtk/listbox.h +++ b/include/wx/gtk/listbox.h @@ -26,6 +26,7 @@ //----------------------------------------------------------------------------- class wxListBox; +class wxArrayInt; //----------------------------------------------------------------------------- // global data @@ -44,14 +45,23 @@ class wxListBox: public wxControl public: wxListBox(void); - wxListBox( wxWindow *parent, wxWindowID id, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - int n = 0, const wxString choices[] = NULL, - long style = 0, const wxString &name = wxListBoxNameStr ); + inline wxListBox( wxWindow *parent, wxWindowID id, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + int n = 0, const wxString choices[] = (const wxString *) NULL, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxListBoxNameStr ) + { + Create(parent, id, pos, size, n, choices, style, validator, name); + } bool Create( wxWindow *parent, wxWindowID id, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - int n = 0, const wxString choices[] = NULL, - long style = 0, const wxString &name = wxListBoxNameStr ); + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + int n = 0, const wxString choices[] = (const wxString *) NULL, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxListBoxNameStr ); void Append( const wxString &item ); void Append( const wxString &item, char *clientData ); void Clear(void); @@ -72,15 +82,22 @@ class wxListBox: public wxControl void SetSelection( int n, bool select = TRUE ); void SetString( int n, const wxString &string ); void SetStringSelection( const wxString &string, bool select = TRUE ); + + void SetFont( const wxFont &font ); + void SetDropTarget( wxDropTarget *dropTarget ); + virtual void SetBackgroundColour(const wxColour &colour); + // implementation + + int GetIndex( GtkWidget *item ) const; + GtkWidget *GetConnectWidget(void); + bool IsOwnGtkWindow( GdkWindow *window ); + private: GtkList *m_list; wxList m_clientData; - public: - - int GetIndex( GtkWidget *item ) const; }; #endif // __GTKLISTBOXH__