]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
17 WXDLLEXPORT_DATA(extern const wxChar
) wxGaugeNameStr
[];
20 class WXDLLEXPORT wxGauge
: public wxGaugeBase
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 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;