]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/gauge.h
implemented toggling of wxCAL_MONDAY_FIRST in the native MSW version of wxCalendarCtrl
[wxWidgets.git] / include / wx / motif / gauge.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/gauge.h
3 // Purpose: wxGauge class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GAUGE_H_
13 #define _WX_GAUGE_H_
14
15 // Group box
16 class WXDLLIMPEXP_CORE wxGauge : public wxGaugeBase
17 {
18 DECLARE_DYNAMIC_CLASS(wxGauge)
19
20 public:
21 inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
22
23 inline wxGauge(wxWindow *parent, wxWindowID id,
24 int range,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
27 long style = wxGA_HORIZONTAL,
28 const wxValidator& validator = wxDefaultValidator,
29 const wxString& name = wxGaugeNameStr)
30 {
31 Create(parent, id, range, pos, size, style, validator, name);
32 }
33
34 bool Create(wxWindow *parent, wxWindowID id,
35 int range,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = wxGA_HORIZONTAL,
39 const wxValidator& validator = wxDefaultValidator,
40 const wxString& name = wxGaugeNameStr);
41
42 void SetShadowWidth(int w);
43 void SetRange(int r);
44 void SetValue(int pos);
45
46 int GetShadowWidth() const ;
47 int GetRange() const ;
48 int GetValue() const ;
49
50 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
51
52 private:
53 virtual wxSize DoGetBestSize() const;
54 virtual void DoMoveWindow(int x, int y, int width, int height);
55 };
56
57 #endif
58 // _WX_GAUGE_H_