]>
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
,
31 const wxValidator
& validator
= wxDefaultValidator
,
33 const wxString
& name
= wxGaugeNameStr
)
35 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID id
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxGA_HORIZONTAL
,
44 const wxValidator
& validator
= wxDefaultValidator
,
46 const wxString
& name
= wxGaugeNameStr
);
48 void SetShadowWidth(int w
);
49 void SetBezelFace(int w
);
51 void SetValue(int pos
);
53 int GetShadowWidth() const ;
54 int GetBezelFace() const ;
55 int GetRange() const ;
56 int GetValue() const ;
58 bool SetForegroundColour(const wxColour
& col
);
59 bool SetBackgroundColour(const wxColour
& col
);
61 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;