]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/gauge.h
3 // Purpose: wxGauge class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 class WXDLLEXPORT wxGauge
: public wxGaugeBase
18 DECLARE_DYNAMIC_CLASS(wxGauge
)
21 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
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 void SetShadowWidth(int w
);
44 void SetValue(int pos
);
46 int GetShadowWidth() const ;
47 int GetRange() const ;
48 int GetValue() const ;
50 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;
53 virtual wxSize
DoGetBestSize() const;
54 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);