]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/gauge.cpp
Correctly align background brush when erasing owner drawn bitmaps in wxMSW.
[wxWidgets.git] / src / palmos / gauge.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/gauge.cpp
3 // Purpose: wxGauge class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #if wxUSE_GAUGE
28
29 #include "wx/gauge.h"
30
31 #ifndef WX_PRECOMP
32 #endif
33
34 #include "wx/palmos/private.h"
35
36 // ----------------------------------------------------------------------------
37 // constants
38 // ----------------------------------------------------------------------------
39
40 #ifndef PBS_SMOOTH
41 #define PBS_SMOOTH 0x01
42 #endif
43
44 #ifndef PBS_VERTICAL
45 #define PBS_VERTICAL 0x04
46 #endif
47
48 #ifndef PBM_SETBARCOLOR
49 #define PBM_SETBARCOLOR (WM_USER+9)
50 #endif
51
52 #ifndef PBM_SETBKCOLOR
53 #define PBM_SETBKCOLOR 0x2001
54 #endif
55
56 // ----------------------------------------------------------------------------
57 // wxWin macros
58 // ----------------------------------------------------------------------------
59
60 // ============================================================================
61 // wxGauge implementation
62 // ============================================================================
63
64 // ----------------------------------------------------------------------------
65 // wxGauge creation
66 // ----------------------------------------------------------------------------
67
68 bool wxGauge::Create(wxWindow *parent,
69 wxWindowID id,
70 int range,
71 const wxPoint& pos,
72 const wxSize& size,
73 long style,
74 const wxValidator& validator,
75 const wxString& name)
76 {
77 return false;
78 }
79
80 WXDWORD wxGauge::MSWGetStyle(long style, WXDWORD *exstyle) const
81 {
82 return 0;
83 }
84
85 // ----------------------------------------------------------------------------
86 // wxGauge geometry
87 // ----------------------------------------------------------------------------
88
89 wxSize wxGauge::DoGetBestSize() const
90 {
91 return wxSize(0,0);
92 }
93
94 // ----------------------------------------------------------------------------
95 // wxGauge setters
96 // ----------------------------------------------------------------------------
97
98 void wxGauge::SetRange(int r)
99 {
100 }
101
102 void wxGauge::SetValue(int pos)
103 {
104 }
105
106 bool wxGauge::SetForegroundColour(const wxColour& col)
107 {
108 return false;
109 }
110
111 bool wxGauge::SetBackgroundColour(const wxColour& col)
112 {
113 return false;
114 }
115
116 #endif // wxUSE_GAUGE