]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gdicmn.h
removed non-const wxWindow::GetFont and GetCursor
[wxWidgets.git] / include / wx / gdicmn.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: gdicmn.h
3// Purpose: Common GDI classes, types and declarations
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c)
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GDICMNH__
13#define _WX_GDICMNH__
14
15// ---------------------------------------------------------------------------
16// headers
17// ---------------------------------------------------------------------------
18
19#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
20 #pragma interface "gdicmn.h"
21#endif
22
23#include "wx/setup.h"
24#include "wx/list.h"
25#include "wx/string.h"
26#include "wx/fontenc.h"
27#include "wx/hashmap.h"
28
29// ---------------------------------------------------------------------------
30// forward declarations
31// ---------------------------------------------------------------------------
32
33class WXDLLIMPEXP_CORE wxBitmap;
34class WXDLLIMPEXP_CORE wxBrush;
35class WXDLLIMPEXP_CORE wxColour;
36class WXDLLIMPEXP_CORE wxCursor;
37class WXDLLIMPEXP_CORE wxFont;
38class WXDLLIMPEXP_CORE wxIcon;
39class WXDLLIMPEXP_CORE wxPalette;
40class WXDLLIMPEXP_CORE wxPen;
41class WXDLLIMPEXP_CORE wxRegion;
42class WXDLLIMPEXP_BASE wxString;
43
44// ---------------------------------------------------------------------------
45// constants
46// ---------------------------------------------------------------------------
47
48// Bitmap flags
49enum wxBitmapType
50{
51 wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility!
52 wxBITMAP_TYPE_BMP,
53 wxBITMAP_TYPE_BMP_RESOURCE,
54 wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE,
55 wxBITMAP_TYPE_ICO,
56 wxBITMAP_TYPE_ICO_RESOURCE,
57 wxBITMAP_TYPE_CUR,
58 wxBITMAP_TYPE_CUR_RESOURCE,
59 wxBITMAP_TYPE_XBM,
60 wxBITMAP_TYPE_XBM_DATA,
61 wxBITMAP_TYPE_XPM,
62 wxBITMAP_TYPE_XPM_DATA,
63 wxBITMAP_TYPE_TIF,
64 wxBITMAP_TYPE_TIF_RESOURCE,
65 wxBITMAP_TYPE_GIF,
66 wxBITMAP_TYPE_GIF_RESOURCE,
67 wxBITMAP_TYPE_PNG,
68 wxBITMAP_TYPE_PNG_RESOURCE,
69 wxBITMAP_TYPE_JPEG,
70 wxBITMAP_TYPE_JPEG_RESOURCE,
71 wxBITMAP_TYPE_PNM,
72 wxBITMAP_TYPE_PNM_RESOURCE,
73 wxBITMAP_TYPE_PCX,
74 wxBITMAP_TYPE_PCX_RESOURCE,
75 wxBITMAP_TYPE_PICT,
76 wxBITMAP_TYPE_PICT_RESOURCE,
77 wxBITMAP_TYPE_ICON,
78 wxBITMAP_TYPE_ICON_RESOURCE,
79 wxBITMAP_TYPE_ANI,
80 wxBITMAP_TYPE_IFF,
81 wxBITMAP_TYPE_MACCURSOR,
82 wxBITMAP_TYPE_MACCURSOR_RESOURCE,
83 wxBITMAP_TYPE_ANY = 50
84};
85
86// Standard cursors
87enum wxStockCursor
88{
89 wxCURSOR_NONE, // should be 0
90 wxCURSOR_ARROW,
91 wxCURSOR_RIGHT_ARROW,
92 wxCURSOR_BULLSEYE,
93 wxCURSOR_CHAR,
94 wxCURSOR_CROSS,
95 wxCURSOR_HAND,
96 wxCURSOR_IBEAM,
97 wxCURSOR_LEFT_BUTTON,
98 wxCURSOR_MAGNIFIER,
99 wxCURSOR_MIDDLE_BUTTON,
100 wxCURSOR_NO_ENTRY,
101 wxCURSOR_PAINT_BRUSH,
102 wxCURSOR_PENCIL,
103 wxCURSOR_POINT_LEFT,
104 wxCURSOR_POINT_RIGHT,
105 wxCURSOR_QUESTION_ARROW,
106 wxCURSOR_RIGHT_BUTTON,
107 wxCURSOR_SIZENESW,
108 wxCURSOR_SIZENS,
109 wxCURSOR_SIZENWSE,
110 wxCURSOR_SIZEWE,
111 wxCURSOR_SIZING,
112 wxCURSOR_SPRAYCAN,
113 wxCURSOR_WAIT,
114 wxCURSOR_WATCH,
115 wxCURSOR_BLANK,
116#ifdef __WXGTK__
117 wxCURSOR_DEFAULT, // standard X11 cursor
118#endif
119#ifdef __WXMAC__
120 wxCURSOR_COPY_ARROW , // MacOS Theme Plus arrow
121#endif
122#ifdef __X__
123 // Not yet implemented for Windows
124 wxCURSOR_CROSS_REVERSE,
125 wxCURSOR_DOUBLE_ARROW,
126 wxCURSOR_BASED_ARROW_UP,
127 wxCURSOR_BASED_ARROW_DOWN,
128#endif // X11
129
130 wxCURSOR_ARROWWAIT,
131
132 wxCURSOR_MAX
133};
134
135#ifndef __WXGTK__
136 #define wxCURSOR_DEFAULT wxCURSOR_ARROW
137#endif
138
139// ---------------------------------------------------------------------------
140// macros
141// ---------------------------------------------------------------------------
142
143/* Useful macro for creating icons portably, for example:
144
145 wxIcon *icon = new wxICON(mondrian);
146
147 expands into:
148
149 wxIcon *icon = new wxIcon("mondrian"); // On wxMSW
150 wxIcon *icon = new wxIcon(mondrian_xpm); // On wxGTK
151 */
152
153#ifdef __WXMSW__
154 // Load from a resource
155 #define wxICON(X) wxIcon(wxT(#X))
156#elif defined(__WXPM__)
157 // Load from a resource
158 #define wxICON(X) wxIcon(wxT(#X))
159#elif defined(__WXMGL__)
160 // Initialize from an included XPM
161 #define wxICON(X) wxIcon( (const char**) X##_xpm )
162#elif defined(__WXGTK__)
163 // Initialize from an included XPM
164 #define wxICON(X) wxIcon( (const char**) X##_xpm )
165#elif defined(__WXMAC__)
166 // Initialize from an included XPM
167 #define wxICON(X) wxIcon( (const char**) X##_xpm )
168#elif defined(__WXMOTIF__)
169 // Initialize from an included XPM
170 #define wxICON(X) wxIcon( X##_xpm )
171#elif defined(__WXX11__)
172 // Initialize from an included XPM
173 #define wxICON(X) wxIcon( X##_xpm )
174#else
175 // This will usually mean something on any platform
176 #define wxICON(X) wxIcon(wxT(#X))
177#endif // platform
178
179/* Another macro: this one is for portable creation of bitmaps. We assume that
180 under Unix bitmaps live in XPMs and under Windows they're in ressources.
181 */
182
183#if defined(__WXMSW__) || defined(__WXPM__)
184 #define wxBITMAP(name) wxBitmap(wxT(#name), wxBITMAP_TYPE_RESOURCE)
185#elif defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXCOCOA__)
186 // Initialize from an included XPM
187 #define wxBITMAP(name) wxBitmap( (const char**) name##_xpm )
188#else // other platforms
189 #define wxBITMAP(name) wxBitmap(name##_xpm, wxBITMAP_TYPE_XPM)
190#endif // platform
191
192/* Macro for avoiding #ifdefs when value have to be different depending on size of
193 device we display on
194 */
195
196#if defined(__SMARTPHONE__)
197 #define wxLARGESMALL(large,small) small
198#else
199 #define wxLARGESMALL(large,small) large
200#endif
201
202// ===========================================================================
203// classes
204// ===========================================================================
205
206// ---------------------------------------------------------------------------
207// wxSize
208// ---------------------------------------------------------------------------
209
210class WXDLLEXPORT wxSize
211{
212public:
213 // members are public for compatibility, don't use them directly.
214 int x, y;
215
216 // constructors
217 wxSize() : x(0), y(0) { }
218 wxSize(int xx, int yy) : x(xx), y(yy) { }
219
220 // no copy ctor or assignment operator - the defaults are ok
221
222 bool operator==(const wxSize& sz) const { return x == sz.x && y == sz.y; }
223 bool operator!=(const wxSize& sz) const { return x != sz.x || y != sz.y; }
224
225 // FIXME are these really useful? If they're, we should have += &c as well
226 wxSize operator+(const wxSize& sz) { return wxSize(x + sz.x, y + sz.y); }
227 wxSize operator-(const wxSize& sz) { return wxSize(x - sz.x, y - sz.y); }
228
229 void IncTo(const wxSize& sz)
230 { if ( sz.x > x ) x = sz.x; if ( sz.y > y ) y = sz.y; }
231 void DecTo(const wxSize& sz)
232 { if ( sz.x < x ) x = sz.x; if ( sz.y < y ) y = sz.y; }
233
234 // accessors
235 void Set(int xx, int yy) { x = xx; y = yy; }
236 void SetWidth(int w) { x = w; }
237 void SetHeight(int h) { y = h; }
238
239 int GetWidth() const { return x; }
240 int GetHeight() const { return y; }
241
242 bool IsFullySpecified() const { return x != -1 && y != -1; }
243
244 // combine this size with the other one replacing the default (i.e. equal
245 // to -1) components of this object with those of the other
246 void SetDefaults(const wxSize& size)
247 {
248 if ( x == -1 )
249 x = size.x;
250 if ( y == -1 )
251 y = size.y;
252 }
253
254 // compatibility
255 int GetX() const { return x; }
256 int GetY() const { return y; }
257};
258
259// ---------------------------------------------------------------------------
260// Point classes: with real or integer coordinates
261// ---------------------------------------------------------------------------
262
263class WXDLLEXPORT wxRealPoint
264{
265public:
266 double x;
267 double y;
268
269 wxRealPoint() : x(0.0), y(0.0) { }
270 wxRealPoint(double xx, double yy) : x(xx), y(yy) { }
271
272 wxRealPoint operator+(const wxRealPoint& pt) const { return wxRealPoint(x + pt.x, y + pt.y); }
273 wxRealPoint operator-(const wxRealPoint& pt) const { return wxRealPoint(x - pt.x, y - pt.y); }
274
275 bool operator==(const wxRealPoint& pt) const { return x == pt.x && y == pt.y; }
276 bool operator!=(const wxRealPoint& pt) const { return x != pt.x || y != pt.y; }
277};
278
279class WXDLLEXPORT wxPoint
280{
281public:
282 int x, y;
283
284 wxPoint() : x(0), y(0) { }
285 wxPoint(int xx, int yy) : x(xx), y(yy) { }
286
287 // no copy ctor or assignment operator - the defaults are ok
288
289 // comparison
290 bool operator==(const wxPoint& p) const { return x == p.x && y == p.y; }
291 bool operator!=(const wxPoint& p) const { return !(*this == p); }
292
293 // arithmetic operations (component wise)
294 wxPoint operator+(const wxPoint& p) const { return wxPoint(x + p.x, y + p.y); }
295 wxPoint operator-(const wxPoint& p) const { return wxPoint(x - p.x, y - p.y); }
296
297 wxPoint& operator+=(const wxPoint& p) { x += p.x; y += p.y; return *this; }
298 wxPoint& operator-=(const wxPoint& p) { x -= p.x; y -= p.y; return *this; }
299
300 wxPoint& operator+=(const wxSize& s) { x += s.GetWidth(); y += s.GetHeight(); return *this; }
301 wxPoint& operator-=(const wxSize& s) { x -= s.GetWidth(); y -= s.GetHeight(); return *this; }
302
303 wxPoint operator+(const wxSize& s) const { return wxPoint(x + s.GetWidth(), y + s.GetHeight()); }
304 wxPoint operator-(const wxSize& s) const { return wxPoint(x - s.GetWidth(), y - s.GetHeight()); }
305};
306
307// ---------------------------------------------------------------------------
308// wxRect
309// ---------------------------------------------------------------------------
310
311class WXDLLEXPORT wxRect
312{
313public:
314 wxRect()
315 : x(0), y(0), width(0), height(0)
316 { }
317 wxRect(int xx, int yy, int ww, int hh)
318 : x(xx), y(yy), width(ww), height(hh)
319 { }
320 wxRect(const wxPoint& topLeft, const wxPoint& bottomRight);
321 wxRect(const wxPoint& pos, const wxSize& size);
322
323 // default copy ctor and assignment operators ok
324
325 int GetX() const { return x; }
326 void SetX(int xx) { x = xx; }
327
328 int GetY() const { return y; }
329 void SetY(int yy) { y = yy; }
330
331 int GetWidth() const { return width; }
332 void SetWidth(int w) { width = w; }
333
334 int GetHeight() const { return height; }
335 void SetHeight(int h) { height = h; }
336
337 wxPoint GetPosition() const { return wxPoint(x, y); }
338 void SetPosition( const wxPoint &p ) { x = p.x; y = p.y; }
339
340 wxSize GetSize() const { return wxSize(width, height); }
341 void SetSize( const wxSize &s ) { width = s.GetWidth(); height = s.GetHeight(); }
342
343 wxPoint GetTopLeft() const { return GetPosition(); }
344 wxPoint GetLeftTop() const { return GetTopLeft(); }
345 void SetTopLeft(const wxPoint &p) { SetPosition(p); }
346 void SetLeftTop(const wxPoint &p) { SetTopLeft(p); }
347
348 wxPoint GetBottomRight() const { return wxPoint(GetRight(), GetBottom()); }
349 wxPoint GetRightBottom() const { return GetBottomRight(); }
350 void SetBottomRight(const wxPoint &p) { SetRight(p.x); SetBottom(p.y); }
351 void SetRightBottom(const wxPoint &p) { SetBottomRight(p); }
352
353 int GetLeft() const { return x; }
354 int GetTop() const { return y; }
355 int GetBottom() const { return y + height - 1; }
356 int GetRight() const { return x + width - 1; }
357
358 void SetLeft(int left) { x = left; }
359 void SetRight(int right) { width = right - x + 1; }
360 void SetTop(int top) { y = top; }
361 void SetBottom(int bottom) { height = bottom - y + 1; }
362
363 // operations with rect
364 wxRect& Inflate(wxCoord dx, wxCoord dy);
365 wxRect& Inflate(wxCoord d) { return Inflate(d, d); }
366 wxRect Inflate(wxCoord dx, wxCoord dy) const
367 {
368 wxRect r = *this;
369 r.Inflate(dx, dy);
370 return r;
371 }
372
373 wxRect& Deflate(wxCoord dx, wxCoord dy) { return Inflate(-dx, -dy); }
374 wxRect& Deflate(wxCoord d) { return Inflate(-d); }
375 wxRect Deflate(wxCoord dx, wxCoord dy) const
376 {
377 wxRect r = *this;
378 r.Deflate(dx, dy);
379 return r;
380 }
381
382 void Offset(wxCoord dx, wxCoord dy) { x += dx; y += dy; }
383 void Offset(const wxPoint& pt) { Offset(pt.x, pt.y); }
384
385 wxRect& Intersect(const wxRect& rect);
386 wxRect Intersect(const wxRect& rect) const
387 {
388 wxRect r = *this;
389 r.Intersect(rect);
390 return r;
391 }
392
393 wxRect operator+(const wxRect& rect) const;
394 wxRect& operator+=(const wxRect& rect);
395
396 // compare rectangles
397 bool operator==(const wxRect& rect) const;
398 bool operator!=(const wxRect& rect) const { return !(*this == rect); }
399
400 // return TRUE if the point is (not strcitly) inside the rect
401 bool Inside(int x, int y) const;
402 bool Inside(const wxPoint& pt) const { return Inside(pt.x, pt.y); }
403
404 // return TRUE if the rectangles have a non empty intersection
405 bool Intersects(const wxRect& rect) const;
406
407public:
408 int x, y, width, height;
409};
410
411// ---------------------------------------------------------------------------
412// Management of pens, brushes and fonts
413// ---------------------------------------------------------------------------
414
415typedef wxInt8 wxDash;
416
417class WXDLLEXPORT wxPenList : public wxList
418{
419public:
420 wxPenList() { }
421 ~wxPenList();
422
423 void AddPen(wxPen *pen);
424 void RemovePen(wxPen *pen);
425 wxPen *FindOrCreatePen(const wxColour& colour, int width, int style);
426};
427
428class WXDLLEXPORT wxBrushList : public wxList
429{
430public:
431 wxBrushList() { }
432 ~wxBrushList();
433
434 void AddBrush(wxBrush *brush);
435 void RemoveBrush(wxBrush *brush);
436 wxBrush *FindOrCreateBrush(const wxColour& colour, int style);
437};
438
439class WXDLLEXPORT wxFontList : public wxList
440{
441public:
442 wxFontList() { }
443 ~wxFontList();
444
445 void AddFont(wxFont *font);
446 void RemoveFont(wxFont *font);
447 wxFont *FindOrCreateFont(int pointSize, int family, int style, int weight,
448 bool underline = FALSE,
449 const wxString& face = wxEmptyString,
450 wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
451};
452
453WX_DECLARE_STRING_HASH_MAP( wxColour *, wxStringToColourHashMap );
454
455class WXDLLEXPORT wxColourDatabase
456{
457public:
458 wxColourDatabase();
459 ~wxColourDatabase();
460
461 // find colour by name or name for the given colour
462 wxColour Find(const wxString& name) const;
463 wxString FindName(const wxColour& colour) const;
464
465 // add a new colour to the database
466 void AddColour(const wxString& name, const wxColour& colour);
467
468 // deprecated, use Find() instead
469 wxDEPRECATED( wxColour *FindColour(const wxString& name) );
470
471
472#ifdef __WXPM__
473 // PM keeps its own type of colour table
474 long* m_palTable;
475 size_t m_nSize;
476#endif
477
478private:
479 // load the database with the built in colour values when called for the
480 // first time, do nothing after this
481 void Initialize();
482
483 wxStringToColourHashMap *m_map;
484};
485
486class WXDLLEXPORT wxBitmapList : public wxList
487{
488public:
489 wxBitmapList();
490 ~wxBitmapList();
491
492 void AddBitmap(wxBitmap *bitmap);
493 void RemoveBitmap(wxBitmap *bitmap);
494};
495
496class WXDLLEXPORT wxResourceCache: public wxList
497{
498public:
499 wxResourceCache() { }
500#if !wxUSE_STL
501 wxResourceCache(const unsigned int keyType) : wxList(keyType) { }
502#endif
503 ~wxResourceCache();
504};
505
506// ---------------------------------------------------------------------------
507// global variables
508// ---------------------------------------------------------------------------
509
510// Lists of GDI objects
511WXDLLEXPORT_DATA(extern wxPenList*) wxThePenList;
512WXDLLEXPORT_DATA(extern wxBrushList*) wxTheBrushList;
513WXDLLEXPORT_DATA(extern wxFontList*) wxTheFontList;
514WXDLLEXPORT_DATA(extern wxBitmapList*) wxTheBitmapList;
515
516// Stock objects
517WXDLLEXPORT_DATA(extern wxFont*) wxNORMAL_FONT;
518WXDLLEXPORT_DATA(extern wxFont*) wxSMALL_FONT;
519WXDLLEXPORT_DATA(extern wxFont*) wxITALIC_FONT;
520WXDLLEXPORT_DATA(extern wxFont*) wxSWISS_FONT;
521
522WXDLLEXPORT_DATA(extern wxPen*) wxRED_PEN;
523WXDLLEXPORT_DATA(extern wxPen*) wxCYAN_PEN;
524WXDLLEXPORT_DATA(extern wxPen*) wxGREEN_PEN;
525WXDLLEXPORT_DATA(extern wxPen*) wxBLACK_PEN;
526WXDLLEXPORT_DATA(extern wxPen*) wxWHITE_PEN;
527WXDLLEXPORT_DATA(extern wxPen*) wxTRANSPARENT_PEN;
528WXDLLEXPORT_DATA(extern wxPen*) wxBLACK_DASHED_PEN;
529WXDLLEXPORT_DATA(extern wxPen*) wxGREY_PEN;
530WXDLLEXPORT_DATA(extern wxPen*) wxMEDIUM_GREY_PEN;
531WXDLLEXPORT_DATA(extern wxPen*) wxLIGHT_GREY_PEN;
532
533WXDLLEXPORT_DATA(extern wxBrush*) wxBLUE_BRUSH;
534WXDLLEXPORT_DATA(extern wxBrush*) wxGREEN_BRUSH;
535WXDLLEXPORT_DATA(extern wxBrush*) wxWHITE_BRUSH;
536WXDLLEXPORT_DATA(extern wxBrush*) wxBLACK_BRUSH;
537WXDLLEXPORT_DATA(extern wxBrush*) wxGREY_BRUSH;
538WXDLLEXPORT_DATA(extern wxBrush*) wxMEDIUM_GREY_BRUSH;
539WXDLLEXPORT_DATA(extern wxBrush*) wxLIGHT_GREY_BRUSH;
540WXDLLEXPORT_DATA(extern wxBrush*) wxTRANSPARENT_BRUSH;
541WXDLLEXPORT_DATA(extern wxBrush*) wxCYAN_BRUSH;
542WXDLLEXPORT_DATA(extern wxBrush*) wxRED_BRUSH;
543
544WXDLLEXPORT_DATA(extern wxColour*) wxBLACK;
545WXDLLEXPORT_DATA(extern wxColour*) wxWHITE;
546WXDLLEXPORT_DATA(extern wxColour*) wxRED;
547WXDLLEXPORT_DATA(extern wxColour*) wxBLUE;
548WXDLLEXPORT_DATA(extern wxColour*) wxGREEN;
549WXDLLEXPORT_DATA(extern wxColour*) wxCYAN;
550WXDLLEXPORT_DATA(extern wxColour*) wxLIGHT_GREY;
551
552// 'Null' objects
553WXDLLEXPORT_DATA(extern wxBitmap) wxNullBitmap;
554WXDLLEXPORT_DATA(extern wxIcon) wxNullIcon;
555WXDLLEXPORT_DATA(extern wxCursor) wxNullCursor;
556WXDLLEXPORT_DATA(extern wxPen) wxNullPen;
557WXDLLEXPORT_DATA(extern wxBrush) wxNullBrush;
558WXDLLEXPORT_DATA(extern wxPalette) wxNullPalette;
559WXDLLEXPORT_DATA(extern wxFont) wxNullFont;
560WXDLLEXPORT_DATA(extern wxColour) wxNullColour;
561
562// Stock cursors types
563WXDLLEXPORT_DATA(extern wxCursor*) wxSTANDARD_CURSOR;
564WXDLLEXPORT_DATA(extern wxCursor*) wxHOURGLASS_CURSOR;
565WXDLLEXPORT_DATA(extern wxCursor*) wxCROSS_CURSOR;
566
567WXDLLEXPORT_DATA(extern wxColourDatabase*) wxTheColourDatabase;
568
569WXDLLEXPORT_DATA(extern const wxChar*) wxPanelNameStr;
570
571WXDLLEXPORT_DATA(extern const wxSize) wxDefaultSize;
572WXDLLEXPORT_DATA(extern const wxPoint) wxDefaultPosition;
573
574// The list of objects which should be deleted
575WXDLLEXPORT_DATA(extern wxList) wxPendingDelete;
576
577// ---------------------------------------------------------------------------
578// global functions
579// ---------------------------------------------------------------------------
580
581// resource management
582extern void WXDLLEXPORT wxInitializeStockObjects();
583extern void WXDLLEXPORT wxInitializeStockLists();
584extern void WXDLLEXPORT wxDeleteStockObjects();
585extern void WXDLLEXPORT wxDeleteStockLists();
586
587// is the display colour (or monochrome)?
588extern bool WXDLLEXPORT wxColourDisplay();
589
590// Returns depth of screen
591extern int WXDLLEXPORT wxDisplayDepth();
592#define wxGetDisplayDepth wxDisplayDepth
593
594// get the display size
595extern void WXDLLEXPORT wxDisplaySize(int *width, int *height);
596extern wxSize WXDLLEXPORT wxGetDisplaySize();
597extern void WXDLLEXPORT wxDisplaySizeMM(int *width, int *height);
598extern wxSize WXDLLEXPORT wxGetDisplaySizeMM();
599
600// Get position and size of the display workarea
601extern void WXDLLEXPORT wxClientDisplayRect(int *x, int *y, int *width, int *height);
602extern wxRect WXDLLEXPORT wxGetClientDisplayRect();
603
604// set global cursor
605extern void WXDLLEXPORT wxSetCursor(const wxCursor& cursor);
606
607#endif
608 // _WX_GDICMNH__