]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton class
4 // Author: Robert Roebling
7 // Copyright: (c) Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKSPINPUTTH__
12 #define __GTKSPINBUTTH__
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class wxSpinButton
: public wxSpinButtonBase
24 DECLARE_DYNAMIC_CLASS(wxSpinButton
)
28 wxSpinButton( wxWindow
*parent
, wxWindowID id
= -1,
29 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
30 long style
= wxSP_VERTICAL
, const wxString
& name
= "wxSpinButton")
32 Create(parent
, id
, pos
, size
, style
, name
);
36 bool Create( wxWindow
*parent
, wxWindowID id
= -1,
37 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
38 long style
= wxSP_VERTICAL
, const wxString
& name
= "wxSpinButton" );
40 virtual int GetValue() const;
41 virtual void SetValue( int value
);
42 virtual void SetRange( int minVal
, int maxVal
);
43 virtual int GetMin() const;
44 virtual int GetMax() const;
47 void OnSize( wxSizeEvent
&event
);
49 bool IsOwnGtkWindow( GdkWindow
*window
);
50 void ApplyWidgetStyle();
52 GtkAdjustment
*m_adjust
;