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