]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/gauge.h
build fixes for wxUSE_VALIDATORS==0
[wxWidgets.git] / include / wx / motif / gauge.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
925f7740 2// Name: wx/motif/gauge.h
9b6dbb09
JS
3// Purpose: wxGauge class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
925f7740 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GAUGE_H_
13#define _WX_GAUGE_H_
14
9b6dbb09 15// Group box
53a2db12 16class WXDLLIMPEXP_CORE wxGauge : public wxGaugeBase
9b6dbb09 17{
bfc6fde4 18 DECLARE_DYNAMIC_CLASS(wxGauge)
925f7740 19
bfc6fde4
VZ
20public:
21 inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
925f7740 22
bfc6fde4 23 inline wxGauge(wxWindow *parent, wxWindowID id,
83df96d6
JS
24 int range,
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)
bfc6fde4
VZ
30 {
31 Create(parent, id, range, pos, size, style, validator, name);
32 }
925f7740 33
bfc6fde4 34 bool Create(wxWindow *parent, wxWindowID id,
83df96d6
JS
35 int range,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = wxGA_HORIZONTAL,
39 const wxValidator& validator = wxDefaultValidator,
40 const wxString& name = wxGaugeNameStr);
925f7740 41
bfc6fde4 42 void SetShadowWidth(int w);
bfc6fde4
VZ
43 void SetRange(int r);
44 void SetValue(int pos);
925f7740 45
bfc6fde4 46 int GetShadowWidth() const ;
bfc6fde4
VZ
47 int GetRange() const ;
48 int GetValue() const ;
925f7740 49
bfc6fde4 50 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
93e73c74
MB
51
52private:
53 virtual wxSize DoGetBestSize() const;
54 virtual void DoMoveWindow(int x, int y, int width, int height);
9b6dbb09
JS
55};
56
57#endif
83df96d6 58// _WX_GAUGE_H_