]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
17 WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr
;
19 class WXDLLEXPORT wxGauge
: public wxControl
21 DECLARE_DYNAMIC_CLASS(wxGauge
)
23 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
25 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxGA_HORIZONTAL
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxGaugeNameStr
)
33 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
36 bool Create(wxWindow
*parent
, wxWindowID id
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
40 long style
= wxGA_HORIZONTAL
,
41 const wxValidator
& validator
= wxDefaultValidator
,
42 const wxString
& name
= wxGaugeNameStr
);
44 void SetShadowWidth(int w
);
45 void SetBezelFace(int w
);
47 void SetValue(int pos
);
49 int GetShadowWidth() const ;
50 int GetBezelFace() const ;
51 int GetRange() const ;
52 int GetValue() const ;
54 bool SetForegroundColour(const wxColour
& col
);
55 bool SetBackgroundColour(const wxColour
& col
);
57 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;