]>
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 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "gauge.h"
20 class WXDLLEXPORT wxGauge
: public wxGaugeBase
22 DECLARE_DYNAMIC_CLASS(wxGauge
)
25 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; }
27 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
31 long style
= wxGA_HORIZONTAL
,
32 const wxValidator
& validator
= wxDefaultValidator
,
33 const wxString
& name
= wxGaugeNameStr
)
35 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID id
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxGA_HORIZONTAL
,
43 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxGaugeNameStr
);
46 void SetShadowWidth(int w
);
48 void SetValue(int pos
);
50 int GetShadowWidth() const ;
51 int GetRange() const ;
52 int GetValue() const ;
54 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;
57 virtual wxSize
DoGetBestSize() const;
58 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);