]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/gauge.h
add wxMBConvStrictUTF8 class implementing just UTF-8 conversion, without support...
[wxWidgets.git] / include / wx / palmos / gauge.h
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e1d63b79 2// Name: wx/palmos/gauge.h
ffecfa5a 3// Purpose: wxGauge class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _GAUGE_H_
13#define _GAUGE_H_
14
ffecfa5a
JS
15#if wxUSE_GAUGE
16
63ec432b 17WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[];
ffecfa5a
JS
18
19// Group box
20class WXDLLEXPORT wxGauge : public wxGaugeBase
21{
22public:
23 wxGauge() { }
24
25 wxGauge(wxWindow *parent,
26 wxWindowID id,
27 int range,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = wxGA_HORIZONTAL,
31 const wxValidator& validator = wxDefaultValidator,
32 const wxString& name = wxGaugeNameStr)
33 {
34 (void)Create(parent, id, range, pos, size, style, validator, name);
35 }
36
37 bool Create(wxWindow *parent,
38 wxWindowID id,
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
46 // set gauge range/value
47 virtual void SetRange(int range);
48 virtual void SetValue(int pos);
49
50 // overriden base class virtuals
51 virtual bool SetForegroundColour(const wxColour& col);
52 virtual bool SetBackgroundColour(const wxColour& col);
53
54protected:
55 virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
56 virtual wxSize DoGetBestSize() const;
57
58
59 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge)
60};
61
62#endif // wxUSE_GAUGE
63
64#endif
65 // _GAUGE_H_