]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/spinbutt.h
Reset sorting column in generic wxDataViewCtrl properly.
[wxWidgets.git] / include / wx / gtk / spinbutt.h
CommitLineData
8e189077 1/////////////////////////////////////////////////////////////////////////////
1e6feb95 2// Name: wx/gtk/spinbutt.h
8e189077
RR
3// Purpose: wxSpinButton class
4// Author: Robert Roebling
5// Modified by:
6// RCS-ID: $Id$
7// Copyright: (c) Robert Roebling
65571936 8// Licence: wxWindows licence
8e189077
RR
9/////////////////////////////////////////////////////////////////////////////
10
1e6feb95
VZ
11#ifndef _WX_GTK_SPINBUTT_H_
12#define _WX_GTK_SPINBUTT_H_
8e189077 13
8e189077
RR
14//-----------------------------------------------------------------------------
15// wxSpinButton
16//-----------------------------------------------------------------------------
17
20123d49 18class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase
8e189077 19{
8e189077 20public:
a01ed326 21 wxSpinButton();
1e6feb95
VZ
22 wxSpinButton(wxWindow *parent,
23 wxWindowID id = -1,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = wxSP_VERTICAL,
27 const wxString& name = wxSPIN_BUTTON_NAME)
31528cd3
VZ
28 {
29 Create(parent, id, pos, size, style, name);
30 }
31528cd3 31
1e6feb95
VZ
32 bool Create(wxWindow *parent,
33 wxWindowID id = -1,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = wxSP_VERTICAL,
37 const wxString& name = wxSPIN_BUTTON_NAME);
31528cd3
VZ
38
39 virtual int GetValue() const;
40 virtual void SetValue( int value );
41 virtual void SetRange( int minVal, int maxVal );
42 virtual int GetMin() const;
43 virtual int GetMax() const;
44
9d522606
RD
45 static wxVisualAttributes
46 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
03647350 47
ad60f9e7
JS
48 virtual bool Enable( bool enable = true );
49
31528cd3
VZ
50 // implementation
51 void OnSize( wxSizeEvent &event );
52
a01ed326 53 int m_pos;
31528cd3 54
9d9b7755 55protected:
a596eeb9
RR
56 void GtkDisableEvents() const;
57 void GtkEnableEvents() const;
03647350 58
9d9b7755 59 virtual wxSize DoGetBestSize() const;
ef5c70f9 60 virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
9d9b7755 61
31528cd3 62private:
b545684e
PC
63 typedef wxSpinButtonBase base_type;
64
31528cd3 65 DECLARE_EVENT_TABLE()
738f9e5a 66 DECLARE_DYNAMIC_CLASS(wxSpinButton)
8e189077
RR
67};
68
a075e27b 69#endif
1e6feb95 70 // _WX_GTK_SPINBUTT_H_