]>
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
;
20 class WXDLLEXPORT wxGauge
: public wxControl
22 DECLARE_DYNAMIC_CLASS(wxGauge
)
24 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
26 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
30 long style
= wxGA_HORIZONTAL
,
31 const wxValidator
& validator
= wxDefaultValidator
,
32 const wxString
& name
= wxGaugeNameStr
)
34 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
37 bool Create(wxWindow
*parent
, wxWindowID id
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxGA_HORIZONTAL
,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxGaugeNameStr
);
45 void SetShadowWidth(int w
);
46 void SetBezelFace(int w
);
48 void SetValue(int pos
);
50 int GetShadowWidth() const ;
51 int GetBezelFace() const ;
52 int GetRange() const ;
53 int GetValue() const ;
55 bool SetForegroundColour(const wxColour
& col
);
56 bool SetBackgroundColour(const wxColour
& col
);
58 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;