]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/spinctrl.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinCtrl class
4 // Author: Robert Roebling
7 // Copyright: (c) Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKSPINCTRLH__
12 #define __GTKSPINCTRLH__
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class wxSpinCtrl
: public wxControl
26 wxSpinCtrl(wxWindow
*parent
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
30 long style
= wxSP_ARROW_KEYS
,
31 int min
= 0, int max
= 100, int initial
= 0,
32 const wxString
& name
= _T("wxSpinCtrl"))
34 Create(parent
, id
, pos
, size
, style
, min
, max
, initial
, name
);
37 bool Create(wxWindow
*parent
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxSP_ARROW_KEYS
,
42 int min
= 0, int max
= 100, int initial
= 0,
43 const wxString
& name
= _T("wxSpinCtrl"));
45 virtual int GetValue() const;
46 virtual void SetValue( int value
);
47 virtual void SetRange( int minVal
, int maxVal
);
48 virtual int GetMin() const;
49 virtual int GetMax() const;
51 bool IsOwnGtkWindow( GdkWindow
*window
);
52 void ApplyWidgetStyle();
54 GtkAdjustment
*m_adjust
;
58 DECLARE_DYNAMIC_CLASS(wxSpinCtrl
)