]>
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 WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr
;
22 class WXDLLEXPORT wxGauge
: public wxGaugeBase
24 DECLARE_DYNAMIC_CLASS(wxGauge
)
27 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
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 void SetShadowWidth(int w
);
50 void SetValue(int pos
);
52 int GetShadowWidth() const ;
53 int GetRange() const ;
54 int GetValue() const ;
56 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;
59 virtual wxSize
DoGetBestSize() const;
60 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);