]>
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
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
15 class WXDLLIMPEXP_CORE wxGauge
: public wxGaugeBase
17 DECLARE_DYNAMIC_CLASS(wxGauge
)
20 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
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 void SetShadowWidth(int w
);
43 void SetValue(int pos
);
45 int GetShadowWidth() const ;
46 int GetRange() const ;
47 int GetValue() const ;
49 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;
52 virtual wxSize
DoGetBestSize() const;
53 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);