]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "gauge.h"
19 #include "wx/control.h"
21 WXDLLEXPORT_DATA(extern const wxChar
*) wxGaugeNameStr
;
24 class WXDLLEXPORT wxGauge
: public wxGaugeBase
29 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxGA_HORIZONTAL
,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxGaugeNameStr
)
37 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
40 bool Create(wxWindow
*parent
, wxWindowID id
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
,
44 long style
= wxGA_HORIZONTAL
,
45 const wxValidator
& validator
= wxDefaultValidator
,
46 const wxString
& name
= wxGaugeNameStr
);
48 // set gauge range/value
49 virtual void SetRange(int range
);
50 virtual void SetValue(int pos
);
51 virtual int GetValue() const ;
53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge
)