]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/gauge.h
Compilation fix for wxUSE_DRAG_AND_DROP==0.
[wxWidgets.git] / include / wx / mac / gauge.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.h
3// Purpose: wxGauge class
a31a5f85 4// Author: Stefan Csomor
0dbd6262 5// Modified by:
a31a5f85 6// Created: 1998-01-01
0dbd6262 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
e40298d5 9// Licence: wxWindows licence
0dbd6262
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GAUGE_H_
13#define _WX_GAUGE_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
0dbd6262
SC
16#pragma interface "gauge.h"
17#endif
18
19#include "wx/control.h"
20
c4e41ce3 21WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
0dbd6262
SC
22
23// Group box
8bc36177 24class WXDLLEXPORT wxGauge: public wxGaugeBase
0dbd6262
SC
25{
26 DECLARE_DYNAMIC_CLASS(wxGauge)
27 public:
28 inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; }
29
30 inline wxGauge(wxWindow *parent, wxWindowID id,
31 int range,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = wxGA_HORIZONTAL,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxGaugeNameStr)
37 {
38 Create(parent, id, range, pos, size, style, validator, name);
39 }
40
41 bool Create(wxWindow *parent, wxWindowID id,
42 int range,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = wxGA_HORIZONTAL,
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxGaugeNameStr);
48
49 void SetShadowWidth(int w);
50 void SetBezelFace(int w);
51 void SetRange(int r);
52 void SetValue(int pos);
53
54 int GetShadowWidth() const ;
55 int GetBezelFace() const ;
56 int GetRange() const ;
57 int GetValue() const ;
58
0dbd6262
SC
59 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
60
61 protected:
62 int m_rangeMax;
63 int m_gaugePos;
64};
65
66#endif
67 // _WX_GAUGE_H_