]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/gauge.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxGauge
: public wxGaugeBase
22 wxGauge( wxWindow
*parent
,
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
)
33 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
36 bool Create( wxWindow
*parent
,
37 wxWindowID id
, int range
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
40 long style
= wxGA_HORIZONTAL
,
41 const wxValidator
& validator
= wxDefaultValidator
,
42 const wxString
& name
= wxGaugeNameStr
);
44 void SetShadowWidth( int WXUNUSED(w
) ) { }
45 void SetBezelFace( int WXUNUSED(w
) ) { }
46 void SetRange( int r
);
47 void SetValue( int pos
);
48 int GetShadowWidth() const { return 0; }
49 int GetBezelFace() const { return 0; }
53 bool IsVertical() const { return HasFlag(wxGA_VERTICAL
); }
55 static wxVisualAttributes
56 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
61 // the max and current gauge values
66 // common part of all ctors
67 void Init() { m_rangeMax
= m_gaugePos
= 0; }
69 // set the gauge value to the value of m_gaugePos
72 virtual wxSize
DoGetBestSize() const;
74 virtual wxVisualAttributes
GetDefaultAttributes() const;
77 DECLARE_DYNAMIC_CLASS(wxGauge
)