]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/gauge.h
3 // Purpose: wxGauge class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
18 class WXDLLIMPEXP_CORE wxGauge
: public wxGaugeBase
23 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 long style
= wxGA_HORIZONTAL
,
28 const wxValidator
& validator
= wxDefaultValidator
,
29 const wxString
& name
= wxGaugeNameStr
)
31 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
34 bool Create(wxWindow
*parent
, wxWindowID id
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
38 long style
= wxGA_HORIZONTAL
,
39 const wxValidator
& validator
= wxDefaultValidator
,
40 const wxString
& name
= wxGaugeNameStr
);
42 // set gauge range/value
43 virtual void SetRange(int range
);
44 virtual void SetValue(int pos
);
45 virtual int GetValue() const ;
50 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge
)