]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/gauge.h
MS Smartphone has no input other than phone buttons which limits pointing on screen...
[wxWidgets.git] / include / wx / motif / gauge.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.h
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
65571936 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GAUGE_H_
13#define _WX_GAUGE_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
9b6dbb09
JS
16#pragma interface "gauge.h"
17#endif
18
9b6dbb09 19// Group box
93e73c74 20class WXDLLEXPORT wxGauge : public wxGaugeBase
9b6dbb09 21{
bfc6fde4 22 DECLARE_DYNAMIC_CLASS(wxGauge)
83df96d6 23
bfc6fde4
VZ
24public:
25 inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
83df96d6 26
bfc6fde4 27 inline wxGauge(wxWindow *parent, wxWindowID id,
83df96d6
JS
28 int range,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = wxGA_HORIZONTAL,
32 const wxValidator& validator = wxDefaultValidator,
33 const wxString& name = wxGaugeNameStr)
bfc6fde4
VZ
34 {
35 Create(parent, id, range, pos, size, style, validator, name);
36 }
83df96d6 37
bfc6fde4 38 bool Create(wxWindow *parent, wxWindowID id,
83df96d6
JS
39 int range,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = wxGA_HORIZONTAL,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxGaugeNameStr);
45
bfc6fde4 46 void SetShadowWidth(int w);
bfc6fde4
VZ
47 void SetRange(int r);
48 void SetValue(int pos);
83df96d6 49
bfc6fde4 50 int GetShadowWidth() const ;
bfc6fde4
VZ
51 int GetRange() const ;
52 int GetValue() const ;
83df96d6 53
bfc6fde4 54 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
93e73c74
MB
55
56private:
57 virtual wxSize DoGetBestSize() const;
58 virtual void DoMoveWindow(int x, int y, int width, int height);
9b6dbb09
JS
59};
60
61#endif
83df96d6 62// _WX_GAUGE_H_