]>
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 __GTKSPINBUTTH__
12 #define __GTKSPINBUTTH__
22 #include "wx/control.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class wxSpinButton
: public wxSpinButtonBase
32 wxSpinButton( wxWindow
*parent
, wxWindowID id
= -1,
33 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
34 long style
= wxSP_VERTICAL
, const wxString
& name
= "wxSpinButton")
36 Create(parent
, id
, pos
, size
, style
, name
);
39 bool Create( wxWindow
*parent
, wxWindowID id
= -1,
40 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
41 long style
= wxSP_VERTICAL
, const wxString
& name
= "wxSpinButton" );
43 virtual int GetValue() const;
44 virtual void SetValue( int value
);
45 virtual void SetRange( int minVal
, int maxVal
);
46 virtual int GetMin() const;
47 virtual int GetMax() const;
50 void OnSize( wxSizeEvent
&event
);
52 bool IsOwnGtkWindow( GdkWindow
*window
);
53 void ApplyWidgetStyle();
55 GtkAdjustment
*m_adjust
;
59 virtual wxSize
DoGetBestSize() const;
63 DECLARE_DYNAMIC_CLASS(wxSpinButton
)