]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "gauge.h"
19 #include "wx/control.h"
21 WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr
;
24 class WXDLLEXPORT wxGauge
: public wxControl
26 DECLARE_DYNAMIC_CLASS(wxGauge
)
29 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
31 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
35 long style
= wxGA_HORIZONTAL
,
36 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxGaugeNameStr
)
39 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
42 bool Create(wxWindow
*parent
, wxWindowID id
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 long style
= wxGA_HORIZONTAL
,
47 const wxValidator
& validator
= wxDefaultValidator
,
48 const wxString
& name
= wxGaugeNameStr
);
50 void SetShadowWidth(int w
);
51 void SetBezelFace(int w
);
53 void SetValue(int pos
);
55 int GetShadowWidth() const ;
56 int GetBezelFace() const ;
57 int GetRange() const ;
58 int GetValue() const ;
60 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;
63 virtual void ChangeFont(bool keepOriginalSize
= TRUE
);
64 virtual void ChangeBackgroundColour();
65 virtual void ChangeForegroundColour();