]>
Commit | Line | Data |
---|---|---|
9b6dbb09 | 1 | ///////////////////////////////////////////////////////////////////////////// |
925f7740 | 2 | // Name: wx/motif/gauge.h |
9b6dbb09 JS |
3 | // Purpose: wxGauge class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
9b6dbb09 | 7 | // Copyright: (c) Julian Smart |
925f7740 | 8 | // Licence: wxWindows licence |
9b6dbb09 JS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_GAUGE_H_ | |
12 | #define _WX_GAUGE_H_ | |
13 | ||
9b6dbb09 | 14 | // Group box |
53a2db12 | 15 | class WXDLLIMPEXP_CORE wxGauge : public wxGaugeBase |
9b6dbb09 | 16 | { |
bfc6fde4 | 17 | DECLARE_DYNAMIC_CLASS(wxGauge) |
925f7740 | 18 | |
bfc6fde4 VZ |
19 | public: |
20 | inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; } | |
925f7740 | 21 | |
bfc6fde4 | 22 | inline wxGauge(wxWindow *parent, wxWindowID id, |
83df96d6 JS |
23 | int range, |
24 | const wxPoint& pos = wxDefaultPosition, | |
25 | const wxSize& size = wxDefaultSize, | |
26 | long style = wxGA_HORIZONTAL, | |
27 | const wxValidator& validator = wxDefaultValidator, | |
28 | const wxString& name = wxGaugeNameStr) | |
bfc6fde4 VZ |
29 | { |
30 | Create(parent, id, range, pos, size, style, validator, name); | |
31 | } | |
925f7740 | 32 | |
bfc6fde4 | 33 | bool Create(wxWindow *parent, wxWindowID id, |
83df96d6 JS |
34 | int range, |
35 | const wxPoint& pos = wxDefaultPosition, | |
36 | const wxSize& size = wxDefaultSize, | |
37 | long style = wxGA_HORIZONTAL, | |
38 | const wxValidator& validator = wxDefaultValidator, | |
39 | const wxString& name = wxGaugeNameStr); | |
925f7740 | 40 | |
bfc6fde4 | 41 | void SetShadowWidth(int w); |
bfc6fde4 VZ |
42 | void SetRange(int r); |
43 | void SetValue(int pos); | |
925f7740 | 44 | |
bfc6fde4 | 45 | int GetShadowWidth() const ; |
bfc6fde4 VZ |
46 | int GetRange() const ; |
47 | int GetValue() const ; | |
925f7740 | 48 | |
bfc6fde4 | 49 | virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ; |
93e73c74 MB |
50 | |
51 | private: | |
52 | virtual wxSize DoGetBestSize() const; | |
53 | virtual void DoMoveWindow(int x, int y, int width, int height); | |
9b6dbb09 JS |
54 | }; |
55 | ||
56 | #endif | |
83df96d6 | 57 | // _WX_GAUGE_H_ |