]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/gauge.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
20 #include "wx/object.h"
22 #include "wx/control.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 extern const char* wxGaugeNameStr
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxGauge
: public wxControl
42 DECLARE_DYNAMIC_CLASS(wxGauge
)
45 inline wxGauge(void) { m_rangeMax
= 0; m_gaugePos
= 0; m_useProgressBar
= TRUE
; }
47 inline wxGauge(wxWindow
*parent
, wxWindowID id
,
49 const wxPoint
& pos
= wxDefaultPosition
,
50 const wxSize
& size
= wxDefaultSize
,
51 long style
= wxGA_HORIZONTAL
,
52 const wxString
& name
= wxGaugeNameStr
)
54 Create(parent
, id
, range
, pos
, size
, style
, name
);
57 bool Create(wxWindow
*parent
, wxWindowID id
,
59 const wxPoint
& pos
= wxDefaultPosition
,
60 const wxSize
& size
= wxDefaultSize
,
61 long style
= wxGA_HORIZONTAL
,
62 const wxString
& name
= wxGaugeNameStr
);
64 void SetShadowWidth( int WXUNUSED(w
) ) {};
65 void SetBezelFace( int WXUNUSED(w
) ) {};
66 void SetRange( int r
);
67 void SetValue( int pos
);
68 int GetShadowWidth(void) const { return 0; };
69 int GetBezelFace(void) const { return 0; };
70 int GetRange(void) const;
71 int GetValue(void) const;
73 // Are we a Win95/GTK progress bar, or a normal gauge?
74 inline bool GetProgressBar(void) const { return m_useProgressBar
; }
80 bool m_useProgressBar
;
83 #endif // __GTKGAUGEH__