]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "gauge.h"
19 #include "wx/control.h"
21 WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr
;
24 class WXDLLEXPORT wxGauge
: public wxControl
26 DECLARE_DYNAMIC_CLASS(wxGauge
)
28 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
30 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
34 long style
= wxGA_HORIZONTAL
,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxGaugeNameStr
)
38 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
41 bool Create(wxWindow
*parent
, wxWindowID id
,
43 const wxPoint
& pos
= wxDefaultPosition
,
44 const wxSize
& size
= wxDefaultSize
,
45 long style
= wxGA_HORIZONTAL
,
46 const wxValidator
& validator
= wxDefaultValidator
,
47 const wxString
& name
= wxGaugeNameStr
);
49 void SetShadowWidth(int w
);
50 void SetBezelFace(int w
);
52 void SetValue(int pos
);
54 int GetShadowWidth() const ;
55 int GetBezelFace() const ;
56 int GetRange() const ;
57 int GetValue() const ;
59 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;