]>
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
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/control.h"
17 class WXDLLIMPEXP_CORE wxGauge
: public wxGaugeBase
22 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
26 long style
= wxGA_HORIZONTAL
,
27 const wxValidator
& validator
= wxDefaultValidator
,
28 const wxString
& name
= wxGaugeNameStr
)
30 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
, wxWindowID id
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
37 long style
= wxGA_HORIZONTAL
,
38 const wxValidator
& validator
= wxDefaultValidator
,
39 const wxString
& name
= wxGaugeNameStr
);
41 // set gauge range/value
42 virtual void SetRange(int range
);
43 virtual void SetValue(int pos
);
44 virtual int GetValue() const ;
49 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge
)