]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/gauge.h
reintroducing direct access, cleanup
[wxWidgets.git] / include / wx / mac / carbon / gauge.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.h
3// Purpose: wxGauge class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GAUGE_H_
13#define _WX_GAUGE_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "gauge.h"
17#endif
18
19#include "wx/control.h"
20
21WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
22
23// Group box
24class WXDLLEXPORT wxGauge: public wxGaugeBase
25{
8cf73271 26 public:
6d4c54a7 27 inline wxGauge() { }
8cf73271
SC
28
29 inline wxGauge(wxWindow *parent, wxWindowID id,
30 int range,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = wxGA_HORIZONTAL,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxGaugeNameStr)
36 {
37 Create(parent, id, range, pos, size, style, validator, name);
38 }
39
40 bool Create(wxWindow *parent, wxWindowID id,
41 int range,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = wxGA_HORIZONTAL,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxGaugeNameStr);
47
6d4c54a7
SC
48 // set gauge range/value
49 virtual void SetRange(int range);
50 virtual void SetValue(int pos);
51 virtual int GetValue() const ;
8cf73271 52 protected:
6d4c54a7 53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge)
8cf73271
SC
54};
55
56#endif
57 // _WX_GAUGE_H_