]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/osx/gauge.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / gauge.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/osx/gauge.h
3// Purpose: wxGauge class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_GAUGE_H_
12#define _WX_GAUGE_H_
13
14#include "wx/control.h"
15
16// Group box
17class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase
18{
19 public:
20 inline wxGauge() { }
21
22 inline wxGauge(wxWindow *parent, wxWindowID id,
23 int range,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = wxGA_HORIZONTAL,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxGaugeNameStr)
29 {
30 Create(parent, id, range, pos, size, style, validator, name);
31 }
32
33 bool Create(wxWindow *parent, wxWindowID id,
34 int range,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = wxGA_HORIZONTAL,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxGaugeNameStr);
40
41 // set gauge range/value
42 virtual void SetRange(int range);
43 virtual void SetValue(int pos);
44 virtual int GetValue() const ;
45
46 void Pulse();
47
48 protected:
49 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge)
50};
51
52#endif
53 // _WX_GAUGE_H_