]>
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 # if defined(__VISAGECPP__)
32 const wxValidator
* validator
= wxDefaultValidator
,
34 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxGaugeNameStr
)
39 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
42 bool Create(wxWindow
*parent
, wxWindowID id
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 long style
= wxGA_HORIZONTAL
,
48 # if defined(__VISAGECPP__)
49 const wxValidator
* validator
= wxDefaultValidator
,
51 const wxValidator
& validator
= wxDefaultValidator
,
54 const wxString
& name
= wxGaugeNameStr
);
56 void SetShadowWidth(int w
);
57 void SetBezelFace(int w
);
59 void SetValue(int pos
);
61 int GetShadowWidth() const ;
62 int GetBezelFace() const ;
63 int GetRange() const ;
64 int GetValue() const ;
66 bool SetForegroundColour(const wxColour
& col
);
67 bool SetBackgroundColour(const wxColour
& col
);
69 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;