]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
19 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 extern const char* wxGaugeNameStr
;
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxGauge
: public wxControl
41 DECLARE_DYNAMIC_CLASS(wxGauge
)
44 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; m_useProgressBar
= TRUE
; }
46 inline wxGauge( wxWindow
*parent
, wxWindowID id
, int range
,
47 const wxPoint
& pos
= wxDefaultPosition
,
48 const wxSize
& size
= wxDefaultSize
,
49 long style
= wxGA_HORIZONTAL
,
50 const wxValidator
& validator
= wxDefaultValidator
,
51 const wxString
& name
= wxGaugeNameStr
)
53 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
55 bool Create( wxWindow
*parent
, wxWindowID id
, int range
,
56 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxSize
& size
= wxDefaultSize
,
58 long style
= wxGA_HORIZONTAL
,
59 const wxValidator
& validator
= wxDefaultValidator
,
60 const wxString
& name
= wxGaugeNameStr
);
61 void SetShadowWidth( int WXUNUSED(w
) ) {};
62 void SetBezelFace( int WXUNUSED(w
) ) {};
63 void SetRange( int r
);
64 void SetValue( int pos
);
65 int GetShadowWidth() const { return 0; };
66 int GetBezelFace() const { return 0; };
70 // Are we a Win95/GTK progress bar, or a normal gauge?
71 inline bool GetProgressBar() const { return m_useProgressBar
; }
75 void ApplyWidgetStyle();
79 bool m_useProgressBar
;
82 #endif // __GTKGAUGEH__