X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/584ad2a32fec156c6049145d7ece9a33213aea28..ce195ee63259e9a70136adef1ddcec4132647f96:/include/wx/gtk/radiobox.h diff --git a/include/wx/gtk/radiobox.h b/include/wx/gtk/radiobox.h index bba9a528e2..0791f740c3 100644 --- a/include/wx/gtk/radiobox.h +++ b/include/wx/gtk/radiobox.h @@ -94,8 +94,6 @@ public: virtual bool SetStringSelection( const wxString& s ); int GetCount() const; - int GetNumberOfRowsOrCols() const; - void SetNumberOfRowsOrCols( int n ); // for compatibility only, don't use these methods in new code! #if WXWIN_COMPATIBILITY_2_2 @@ -111,6 +109,9 @@ public: virtual bool Show( bool show = TRUE ); virtual bool Enable( bool enable = TRUE ); + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + // implementation // -------------- @@ -118,11 +119,14 @@ public: void GtkDisableEvents(); void GtkEnableEvents(); bool IsOwnGtkWindow( GdkWindow *window ); - void ApplyWidgetStyle(); + void DoApplyWidgetStyle(GtkRcStyle *style); #if wxUSE_TOOLTIPS void ApplyToolTip( GtkTooltips *tips, const wxChar *tip ); #endif // wxUSE_TOOLTIPS - wxSize LayoutItems(); + + // reposition the radio buttons correctly unless justCalc == true and + // return the total size needed to accommodate them + wxSize LayoutItems(bool justCalc) const; virtual void DoSetSize( int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO ); virtual void OnInternalIdle(); @@ -133,6 +137,9 @@ public: wxList m_boxes; protected: + // implement some base class methods + virtual wxSize DoGetBestSize() const; + // common part of all ctors void Init();