]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/gauge95.h
added JPEG support
[wxWidgets.git] / include / wx / msw / gauge95.h
CommitLineData
780d37ac
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge95.h
3// Purpose: wxGauge95 class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc
JS
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
780d37ac
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _GAUGE95_H_
13#define _GAUGE95_H_
14
15#ifdef __GNUG__
16#pragma interface "gauge95.h"
17#endif
18
19#include "wx/control.h"
20
21WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr;
22
23// Group box
24class WXDLLEXPORT wxGauge95: public wxControl
25{
26 DECLARE_DYNAMIC_CLASS(wxGauge95)
27 public:
28 inline wxGauge95(void) { m_rangeMax = 0; m_gaugePos = 0; }
29
debe6624
JS
30 inline wxGauge95(wxWindow *parent, wxWindowID id,
31 int range,
780d37ac
JS
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
debe6624 34 long style = wxGA_HORIZONTAL,
780d37ac
JS
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxGaugeNameStr)
37 {
38 Create(parent, id, range, pos, size, style, validator, name);
39 }
40
debe6624
JS
41 bool Create(wxWindow *parent, wxWindowID id,
42 int range,
780d37ac
JS
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
debe6624 45 long style = wxGA_HORIZONTAL,
780d37ac
JS
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxGaugeNameStr);
48
debe6624
JS
49 void SetShadowWidth(int w);
50 void SetBezelFace(int w);
51 void SetRange(int r);
52 void SetValue(int pos);
780d37ac
JS
53
54 int GetShadowWidth(void) const ;
55 int GetBezelFace(void) const ;
56 int GetRange(void) const ;
57 int GetValue(void) const ;
58
59 void SetForegroundColour(const wxColour& col);
60 void SetBackgroundColour(const wxColour& col);
61
62 // Backward compatibility
63#if WXWIN_COMPATIBILITY
64 inline void SetButtonColour(const wxColour& col) { SetForegroundColour(col); }
65#endif
66
debe6624 67 void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
4fabb575
JS
68 void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO)
69 { wxWindow::SetSize(rect, sizeFlags); }
70 void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
780d37ac
JS
71
72 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
73
74 protected:
75 int m_rangeMax;
76 int m_gaugePos;
77};
78
79#endif
80 // _GAUGEMSW_H_