]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/gauge.h
going private for m_peer to give a foundation for better encapsulation
[wxWidgets.git] / include / wx / osx / gauge.h
CommitLineData
6762286d
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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GAUGE_H_
13#define _WX_GAUGE_H_
14
15#include "wx/control.h"
16
6762286d
SC
17// Group box
18class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase
19{
20 public:
21 inline wxGauge() { }
22
23 inline wxGauge(wxWindow *parent, wxWindowID id,
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)
30 {
31 Create(parent, id, range, pos, size, style, validator, name);
32 }
33
34 bool Create(wxWindow *parent, wxWindowID id,
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);
41
42 // set gauge range/value
43 virtual void SetRange(int range);
44 virtual void SetValue(int pos);
45 virtual int GetValue() const ;
46
47 void Pulse();
48
49 protected:
50 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge)
51};
52
5c6eb3a8 53#endif
6762286d 54 // _WX_GAUGE_H_