]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/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 WXDLLIMPEXP_DATA_CORE(extern const char) wxGaugeNameStr
[];
20 class WXDLLIMPEXP_CORE wxGauge
: public wxGaugeBase
25 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxGA_HORIZONTAL
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxGaugeNameStr
)
33 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
36 bool Create(wxWindow
*parent
, wxWindowID id
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
40 long style
= wxGA_HORIZONTAL
,
41 const wxValidator
& validator
= wxDefaultValidator
,
42 const wxString
& name
= wxGaugeNameStr
);
44 // set gauge range/value
45 virtual void SetRange(int range
);
46 virtual void SetValue(int pos
);
47 virtual int GetValue() const ;
52 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge
)