]>
git.saurik.com Git - wxWidgets.git/blob - src/common/gdicmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Common GDI classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "gdicmn.h"
17 #define XtDisplay XTDISPLAY
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
28 #include "wx/gdicmn.h"
31 #include "wx/bitmap.h"
33 #include "wx/cursor.h"
35 #include "wx/palette.h"
39 #include "wx/settings.h"
50 #pragma message disable nosimpint
54 #pragma message enable nosimpint
63 #include "wx/mac/private.h"
65 IMPLEMENT_CLASS(wxColourDatabase
, wxList
)
66 IMPLEMENT_DYNAMIC_CLASS(wxFontList
, wxList
)
67 IMPLEMENT_DYNAMIC_CLASS(wxPenList
, wxList
)
68 IMPLEMENT_DYNAMIC_CLASS(wxBrushList
, wxList
)
69 IMPLEMENT_DYNAMIC_CLASS(wxBitmapList
, wxList
)
70 IMPLEMENT_DYNAMIC_CLASS(wxResourceCache
, wxList
)
72 IMPLEMENT_ABSTRACT_CLASS(wxDCBase
, wxObject
)
74 wxRect::wxRect(const wxPoint
& topLeft
, const wxPoint
& bottomRight
)
78 width
= bottomRight
.x
- topLeft
.x
+ 1;
79 height
= bottomRight
.y
- topLeft
.y
+ 1;
94 wxRect::wxRect(const wxPoint
& point
, const wxSize
& size
)
96 x
= point
.x
; y
= point
.y
;
97 width
= size
.x
; height
= size
.y
;
100 bool wxRect::operator==(const wxRect
& rect
) const
102 return ((x
== rect
.x
) &&
104 (width
== rect
.width
) &&
105 (height
== rect
.height
));
108 wxRect
& wxRect::operator += (const wxRect
& rect
)
110 *this = (*this + rect
);
114 wxRect
wxRect::operator + (const wxRect
& rect
) const
116 int x1
= wxMin(this->x
, rect
.x
);
117 int y1
= wxMin(this->y
, rect
.y
);
118 int y2
= wxMax(y
+height
, rect
.height
+rect
.y
);
119 int x2
= wxMax(x
+width
, rect
.width
+rect
.x
);
120 return wxRect(x1
, y1
, x2
-x1
, y2
-y1
);
123 wxRect
& wxRect::Inflate(wxCoord dx
, wxCoord dy
)
130 // check that we didn't make the rectangle invalid by accident (you almost
131 // never want to have negative coords and never want negative size)
137 // what else can we do?
146 bool wxRect::Inside(int cx
, int cy
) const
148 return ( (cx
>= x
) && (cy
>= y
)
149 && ((cy
- y
) < height
)
150 && ((cx
- x
) < width
)
154 wxRect
& wxRect::Intersect(const wxRect
& rect
)
163 if ( x2
> rect
.GetRight() )
164 x2
= rect
.GetRight();
165 if ( y2
> rect
.GetBottom() )
166 y2
= rect
.GetBottom();
171 if ( width
<= 0 || height
<= 0 )
180 bool wxRect::Intersects(const wxRect
& rect
) const
182 wxRect r
= Intersect(rect
);
184 // if there is no intersection, both width and height are 0
188 wxColourDatabase::wxColourDatabase (int type
) : wxList (type
)
192 wxColourDatabase::~wxColourDatabase ()
194 // Cleanup Colour allocated in Initialize()
195 wxNode
*node
= First ();
198 wxColour
*col
= (wxColour
*) node
->Data ();
199 wxNode
*next
= node
->Next ();
204 delete [] m_palTable
;
208 // Colour database stuff
209 void wxColourDatabase::Initialize ()
211 static const struct wxColourDesc
218 {wxT("AQUAMARINE"),112, 219, 147},
219 {wxT("BLACK"),0, 0, 0},
220 {wxT("BLUE"), 0, 0, 255},
221 {wxT("BLUE VIOLET"), 159, 95, 159},
222 {wxT("BROWN"), 165, 42, 42},
223 {wxT("CADET BLUE"), 95, 159, 159},
224 {wxT("CORAL"), 255, 127, 0},
225 {wxT("CORNFLOWER BLUE"), 66, 66, 111},
226 {wxT("CYAN"), 0, 255, 255},
227 {wxT("DARK GREY"), 47, 47, 47}, // ?
229 {wxT("DARK GREEN"), 47, 79, 47},
230 {wxT("DARK OLIVE GREEN"), 79, 79, 47},
231 {wxT("DARK ORCHID"), 153, 50, 204},
232 {wxT("DARK SLATE BLUE"), 107, 35, 142},
233 {wxT("DARK SLATE GREY"), 47, 79, 79},
234 {wxT("DARK TURQUOISE"), 112, 147, 219},
235 {wxT("DIM GREY"), 84, 84, 84},
236 {wxT("FIREBRICK"), 142, 35, 35},
237 {wxT("FOREST GREEN"), 35, 142, 35},
238 {wxT("GOLD"), 204, 127, 50},
239 {wxT("GOLDENROD"), 219, 219, 112},
240 {wxT("GREY"), 128, 128, 128},
241 {wxT("GREEN"), 0, 255, 0},
242 {wxT("GREEN YELLOW"), 147, 219, 112},
243 {wxT("INDIAN RED"), 79, 47, 47},
244 {wxT("KHAKI"), 159, 159, 95},
245 {wxT("LIGHT BLUE"), 191, 216, 216},
246 {wxT("LIGHT GREY"), 192, 192, 192},
247 {wxT("LIGHT STEEL BLUE"), 143, 143, 188},
248 {wxT("LIME GREEN"), 50, 204, 50},
249 {wxT("LIGHT MAGENTA"), 255, 0, 255},
250 {wxT("MAGENTA"), 255, 0, 255},
251 {wxT("MAROON"), 142, 35, 107},
252 {wxT("MEDIUM AQUAMARINE"), 50, 204, 153},
253 {wxT("MEDIUM GREY"), 100, 100, 100},
254 {wxT("MEDIUM BLUE"), 50, 50, 204},
255 {wxT("MEDIUM FOREST GREEN"), 107, 142, 35},
256 {wxT("MEDIUM GOLDENROD"), 234, 234, 173},
257 {wxT("MEDIUM ORCHID"), 147, 112, 219},
258 {wxT("MEDIUM SEA GREEN"), 66, 111, 66},
259 {wxT("MEDIUM SLATE BLUE"), 127, 0, 255},
260 {wxT("MEDIUM SPRING GREEN"), 127, 255, 0},
261 {wxT("MEDIUM TURQUOISE"), 112, 219, 219},
262 {wxT("MEDIUM VIOLET RED"), 219, 112, 147},
263 {wxT("MIDNIGHT BLUE"), 47, 47, 79},
264 {wxT("NAVY"), 35, 35, 142},
265 {wxT("ORANGE"), 204, 50, 50},
266 {wxT("ORANGE RED"), 255, 0, 127},
267 {wxT("ORCHID"), 219, 112, 219},
268 {wxT("PALE GREEN"), 143, 188, 143},
269 {wxT("PINK"), 188, 143, 234},
270 {wxT("PLUM"), 234, 173, 234},
271 {wxT("PURPLE"), 176, 0, 255},
272 {wxT("RED"), 255, 0, 0},
273 {wxT("SALMON"), 111, 66, 66},
274 {wxT("SEA GREEN"), 35, 142, 107},
275 {wxT("SIENNA"), 142, 107, 35},
276 {wxT("SKY BLUE"), 50, 153, 204},
277 {wxT("SLATE BLUE"), 0, 127, 255},
278 {wxT("SPRING GREEN"), 0, 255, 127},
279 {wxT("STEEL BLUE"), 35, 107, 142},
280 {wxT("TAN"), 219, 147, 112},
281 {wxT("THISTLE"), 216, 191, 216},
282 {wxT("TURQUOISE"), 173, 234, 234},
283 {wxT("VIOLET"), 79, 47, 79},
284 {wxT("VIOLET RED"), 204, 50, 153},
285 {wxT("WHEAT"), 216, 216, 191},
286 {wxT("WHITE"), 255, 255, 255},
287 {wxT("YELLOW"), 255, 255, 0},
288 {wxT("YELLOW GREEN"), 153, 204, 50},
289 {wxT("MEDIUM GOLDENROD"), 234, 234, 173},
290 {wxT("MEDIUM FOREST GREEN"), 107, 142, 35},
291 {wxT("LIGHT MAGENTA"), 255, 0, 255},
292 {wxT("MEDIUM GREY"), 100, 100, 100},
297 for ( n
= 0; n
< WXSIZEOF(wxColourTable
); n
++ )
299 const wxColourDesc
& cc
= wxColourTable
[n
];
300 Append(cc
.name
, new wxColour(cc
.r
,cc
.g
,cc
.b
));
303 m_palTable
= new long[n
];
304 for ( n
= 0; n
< WXSIZEOF(wxColourTable
); n
++ )
306 const wxColourDesc
& cc
= wxColourTable
[n
];
307 m_palTable
[n
] = OS2RGB(cc
.r
,cc
.g
,cc
.b
);
314 * Changed by Ian Brown, July 1994.
316 * When running under X, the Colour Database starts off empty. The X server
317 * is queried for the colour first time after which it is entered into the
318 * database. This allows our client to use the server colour database which
319 * is hopefully gamma corrected for the display being used.
322 wxColour
*wxColourDatabase::FindColour(const wxString
& colour
)
324 // VZ: make the comparaison case insensitive and also match both grey and
326 wxString colName
= colour
;
328 wxString colName2
= colName
;
329 if ( !colName2
.Replace(_T("GRAY"), _T("GREY")) )
332 wxNode
*node
= First();
335 const wxChar
*key
= node
->GetKeyString();
336 if ( colName
== key
|| colName2
== key
)
338 return (wxColour
*)node
->Data();
354 // TODO for other implementations. This should really go into
355 // platform-specific directories.
364 wxColour
*col
= new wxColour( colour
);
368 return (wxColour
*) NULL
;
370 Append( colour
, col
);
378 Display
*display
= XtDisplay((Widget
) wxTheApp
->GetTopLevelWidget()) ;
381 Display
* display
= (Display
*) wxGetDisplay();
383 /* MATTHEW: [4] Use wxGetMainColormap */
384 if (!XParseColor(display
, (Colormap
) wxTheApp
->GetMainColormap((WXDisplay
*) display
), colour
,&xcolour
))
388 unsigned char r
= (unsigned char)(xcolour
.red
);
389 unsigned char g
= (unsigned char)(xcolour
.green
);
390 unsigned char b
= (unsigned char)(xcolour
.blue
);
392 unsigned char r
= (unsigned char)(xcolour
.red
>> 8);
393 unsigned char g
= (unsigned char)(xcolour
.green
>> 8);
394 unsigned char b
= (unsigned char)(xcolour
.blue
>> 8);
397 wxColour
*col
= new wxColour(r
, g
, b
);
404 wxString
wxColourDatabase::FindName (const wxColour
& colour
) const
408 unsigned char red
= colour
.Red ();
409 unsigned char green
= colour
.Green ();
410 unsigned char blue
= colour
.Blue ();
412 for (wxNode
* node
= First (); node
; node
= node
->Next ())
414 wxColour
*col
= (wxColour
*) node
->Data ();
416 if (col
->Red () == red
&& col
->Green () == green
&& col
->Blue () == blue
)
418 const wxChar
*found
= node
->GetKeyString();
431 void wxInitializeStockLists()
433 wxTheBrushList
= new wxBrushList
;
434 wxThePenList
= new wxPenList
;
435 wxTheFontList
= new wxFontList
;
436 wxTheBitmapList
= new wxBitmapList
;
439 void wxInitializeStockObjects ()
445 // wxFontPool = new XFontPool;
448 // why under MSW fonts shouldn't have the standard system size?
451 static const int sizeFont = 10;
455 #if defined(__WXMAC__)
458 FontFamilyID fontId
;
463 GetThemeFont(kThemeSystemFont
, GetApplicationScript() , fontName
, &fontSize
, &fontStyle
) ;
464 sizeFont
= fontSize
;
465 p2cstrcpy( (char*) fontName
, fontName
) ;
466 wxSWISS_FONT
= new wxFont (fontSize
, wxSWISS
, wxNORMAL
, wxNORMAL
, false , fontName
);
467 #elif defined(__WXPM__)
468 static const int sizeFont
= 12;
470 wxNORMAL_FONT
= new wxFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT
));
471 static const int sizeFont
= wxNORMAL_FONT
->GetPointSize();
474 #if defined(__WXPM__)
476 // Basic OS/2 has a fairly limited number of fonts and these are as good
477 // as I can do to get something that looks halfway "wx" normal
479 wxNORMAL_FONT
= new wxFont (sizeFont
, wxMODERN
, wxNORMAL
, wxNORMAL
); /* System VIO */
480 wxSMALL_FONT
= new wxFont (sizeFont
- 4, wxMODERN
, wxNORMAL
, wxNORMAL
); /* System VIO */
481 wxITALIC_FONT
= new wxFont (sizeFont
, wxROMAN
, wxITALIC
, wxNORMAL
);
482 wxSWISS_FONT
= new wxFont (sizeFont
, wxSWISS
, wxNORMAL
, wxNORMAL
); /* Helv */
483 #elif defined(__WXMAC__)
484 wxNORMAL_FONT
= new wxFont (sizeFont
, wxMODERN
, wxNORMAL
, wxNORMAL
);
485 wxITALIC_FONT
= new wxFont (sizeFont
, wxROMAN
, wxITALIC
, wxNORMAL
);
486 GetThemeFont(kThemeSmallSystemFont
, GetApplicationScript() , fontName
, &fontSize
, &fontStyle
) ;
487 p2cstrcpy( (char*) fontName
, fontName
) ;
488 wxSMALL_FONT
= new wxFont (fontSize
, wxSWISS
, wxNORMAL
, wxNORMAL
, false , fontName
);
490 wxSMALL_FONT
= new wxFont (sizeFont
- 2, wxSWISS
, wxNORMAL
, wxNORMAL
);
491 wxITALIC_FONT
= new wxFont (sizeFont
, wxROMAN
, wxITALIC
, wxNORMAL
);
492 wxSWISS_FONT
= new wxFont (sizeFont
, wxSWISS
, wxNORMAL
, wxNORMAL
);
495 wxRED_PEN
= new wxPen (wxT("RED"), 1, wxSOLID
);
496 wxCYAN_PEN
= new wxPen (wxT("CYAN"), 1, wxSOLID
);
497 wxGREEN_PEN
= new wxPen (wxT("GREEN"), 1, wxSOLID
);
498 wxBLACK_PEN
= new wxPen (wxT("BLACK"), 1, wxSOLID
);
499 wxWHITE_PEN
= new wxPen (wxT("WHITE"), 1, wxSOLID
);
500 wxTRANSPARENT_PEN
= new wxPen (wxT("BLACK"), 1, wxTRANSPARENT
);
501 wxBLACK_DASHED_PEN
= new wxPen (wxT("BLACK"), 1, wxSHORT_DASH
);
502 wxGREY_PEN
= new wxPen (wxT("GREY"), 1, wxSOLID
);
503 wxMEDIUM_GREY_PEN
= new wxPen (wxT("MEDIUM GREY"), 1, wxSOLID
);
504 wxLIGHT_GREY_PEN
= new wxPen (wxT("LIGHT GREY"), 1, wxSOLID
);
506 wxBLUE_BRUSH
= new wxBrush (wxT("BLUE"), wxSOLID
);
507 wxGREEN_BRUSH
= new wxBrush (wxT("GREEN"), wxSOLID
);
508 wxWHITE_BRUSH
= new wxBrush (wxT("WHITE"), wxSOLID
);
509 wxBLACK_BRUSH
= new wxBrush (wxT("BLACK"), wxSOLID
);
510 wxTRANSPARENT_BRUSH
= new wxBrush (wxT("BLACK"), wxTRANSPARENT
);
511 wxCYAN_BRUSH
= new wxBrush (wxT("CYAN"), wxSOLID
);
512 wxRED_BRUSH
= new wxBrush (wxT("RED"), wxSOLID
);
513 wxGREY_BRUSH
= new wxBrush (wxT("GREY"), wxSOLID
);
514 wxMEDIUM_GREY_BRUSH
= new wxBrush (wxT("MEDIUM GREY"), wxSOLID
);
515 wxLIGHT_GREY_BRUSH
= new wxBrush (wxT("LIGHT GREY"), wxSOLID
);
517 wxBLACK
= new wxColour (wxT("BLACK"));
518 wxWHITE
= new wxColour (wxT("WHITE"));
519 wxRED
= new wxColour (wxT("RED"));
520 wxBLUE
= new wxColour (wxT("BLUE"));
521 wxGREEN
= new wxColour (wxT("GREEN"));
522 wxCYAN
= new wxColour (wxT("CYAN"));
523 wxLIGHT_GREY
= new wxColour (wxT("LIGHT GREY"));
525 wxSTANDARD_CURSOR
= new wxCursor (wxCURSOR_ARROW
);
526 wxHOURGLASS_CURSOR
= new wxCursor (wxCURSOR_WAIT
);
527 wxCROSS_CURSOR
= new wxCursor (wxCURSOR_CROSS
);
530 void wxDeleteStockObjects ()
532 wxDELETE(wxNORMAL_FONT
);
533 wxDELETE(wxSMALL_FONT
);
534 wxDELETE(wxITALIC_FONT
);
535 wxDELETE(wxSWISS_FONT
);
538 wxDELETE(wxCYAN_PEN
);
539 wxDELETE(wxGREEN_PEN
);
540 wxDELETE(wxBLACK_PEN
);
541 wxDELETE(wxWHITE_PEN
);
542 wxDELETE(wxTRANSPARENT_PEN
);
543 wxDELETE(wxBLACK_DASHED_PEN
);
544 wxDELETE(wxGREY_PEN
);
545 wxDELETE(wxMEDIUM_GREY_PEN
);
546 wxDELETE(wxLIGHT_GREY_PEN
);
548 wxDELETE(wxBLUE_BRUSH
);
549 wxDELETE(wxGREEN_BRUSH
);
550 wxDELETE(wxWHITE_BRUSH
);
551 wxDELETE(wxBLACK_BRUSH
);
552 wxDELETE(wxTRANSPARENT_BRUSH
);
553 wxDELETE(wxCYAN_BRUSH
);
554 wxDELETE(wxRED_BRUSH
);
555 wxDELETE(wxGREY_BRUSH
);
556 wxDELETE(wxMEDIUM_GREY_BRUSH
);
557 wxDELETE(wxLIGHT_GREY_BRUSH
);
565 wxDELETE(wxLIGHT_GREY
);
567 wxDELETE(wxSTANDARD_CURSOR
);
568 wxDELETE(wxHOURGLASS_CURSOR
);
569 wxDELETE(wxCROSS_CURSOR
);
572 void wxDeleteStockLists()
574 wxDELETE(wxTheBrushList
);
575 wxDELETE(wxThePenList
);
576 wxDELETE(wxTheFontList
);
577 wxDELETE(wxTheBitmapList
);
580 // ============================================================================
581 // wxTheXXXList stuff (semi-obsolete)
582 // ============================================================================
584 wxBitmapList::wxBitmapList()
588 wxBitmapList::~wxBitmapList ()
590 wxNode
*node
= First ();
593 wxBitmap
*bitmap
= (wxBitmap
*) node
->Data ();
594 wxNode
*next
= node
->Next ();
595 if (bitmap
->GetVisible())
601 // Pen and Brush lists
602 wxPenList::~wxPenList ()
604 wxNode
*node
= First ();
607 wxPen
*pen
= (wxPen
*) node
->Data ();
608 wxNode
*next
= node
->Next ();
609 if (pen
->GetVisible())
615 void wxPenList::AddPen (wxPen
* pen
)
620 void wxPenList::RemovePen (wxPen
* pen
)
625 wxPen
*wxPenList::FindOrCreatePen (const wxColour
& colour
, int width
, int style
)
627 for (wxNode
* node
= First (); node
; node
= node
->Next ())
629 wxPen
*each_pen
= (wxPen
*) node
->Data ();
631 each_pen
->GetVisible() &&
632 each_pen
->GetWidth () == width
&&
633 each_pen
->GetStyle () == style
&&
634 each_pen
->GetColour ().Red () == colour
.Red () &&
635 each_pen
->GetColour ().Green () == colour
.Green () &&
636 each_pen
->GetColour ().Blue () == colour
.Blue ())
640 wxPen
*pen
= new wxPen (colour
, width
, style
);
643 // don't save the invalid pens in the list
651 // we'll delete it ourselves later
652 pen
->SetVisible(TRUE
);
657 wxBrushList::~wxBrushList ()
659 wxNode
*node
= First ();
662 wxBrush
*brush
= (wxBrush
*) node
->Data ();
663 wxNode
*next
= node
->Next ();
664 if (brush
&& brush
->GetVisible())
670 void wxBrushList::AddBrush (wxBrush
* brush
)
675 wxBrush
*wxBrushList::FindOrCreateBrush (const wxColour
& colour
, int style
)
677 for (wxNode
* node
= First (); node
; node
= node
->Next ())
679 wxBrush
*each_brush
= (wxBrush
*) node
->Data ();
681 each_brush
->GetVisible() &&
682 each_brush
->GetStyle () == style
&&
683 each_brush
->GetColour ().Red () == colour
.Red () &&
684 each_brush
->GetColour ().Green () == colour
.Green () &&
685 each_brush
->GetColour ().Blue () == colour
.Blue ())
689 wxBrush
*brush
= new wxBrush (colour
, style
);
693 // don't put the brushes we failed to create into the list
701 // we'll delete it ourselves later
702 brush
->SetVisible(TRUE
);
707 void wxBrushList::RemoveBrush (wxBrush
* brush
)
709 DeleteObject (brush
);
712 wxFontList::~wxFontList ()
714 wxNode
*node
= First ();
717 // Only delete objects that are 'visible', i.e.
718 // that have been created using FindOrCreate...,
719 // where the pointers are expected to be shared
720 // (and therefore not deleted by any one part of an app).
721 wxFont
*font
= (wxFont
*) node
->Data ();
722 wxNode
*next
= node
->Next ();
723 if (font
->GetVisible())
729 void wxFontList::AddFont (wxFont
* font
)
734 void wxFontList::RemoveFont (wxFont
* font
)
739 wxFont
*wxFontList::FindOrCreateFont(int pointSize
,
744 const wxString
& facename
,
745 wxFontEncoding encoding
)
747 wxFont
*font
= (wxFont
*)NULL
;
749 for ( node
= First(); node
; node
= node
->Next() )
751 font
= (wxFont
*)node
->Data();
752 if ( font
->GetVisible() &&
754 font
->GetPointSize () == pointSize
&&
755 font
->GetStyle () == style
&&
756 font
->GetWeight () == weight
&&
757 font
->GetUnderlined () == underline
)
759 int fontFamily
= font
->GetFamily();
761 #if defined(__WXGTK__)
762 // under GTK the default family is wxSWISS, so looking for a font
763 // with wxDEFAULT family should return a wxSWISS one instead of
764 // creating a new one
765 bool same
= (fontFamily
== family
) ||
766 (fontFamily
== wxSWISS
&& family
== wxDEFAULT
);
768 // VZ: but why elsewhere do we require an exact match? mystery...
769 bool same
= fontFamily
== family
;
772 // empty facename matches anything at all: this is bad because
773 // depending on which fonts are already created, we might get back
774 // a different font if we create it with empty facename, but it is
775 // still better than never matching anything in the cache at all
777 if ( same
&& !!facename
)
779 const wxString
& fontFace
= font
->GetFaceName();
781 // empty facename matches everything
782 same
= !fontFace
|| fontFace
== facename
;
785 if ( same
&& (encoding
!= wxFONTENCODING_DEFAULT
) )
787 // have to match the encoding too
788 same
= font
->GetEncoding() == encoding
;
800 // font not found, create the new one
801 font
= new wxFont(pointSize
, family
, style
, weight
,
802 underline
, facename
, encoding
);
806 // and mark it as being cacheable
807 font
->SetVisible(TRUE
);
813 void wxBitmapList::AddBitmap(wxBitmap
*bitmap
)
818 void wxBitmapList::RemoveBitmap(wxBitmap
*bitmap
)
820 DeleteObject(bitmap
);
823 wxSize
wxGetDisplaySize()
826 wxDisplaySize(& x
, & y
);
830 wxRect
wxGetClientDisplayRect()
832 int x
, y
, width
, height
;
833 wxClientDisplayRect(&x
, &y
, &width
, &height
); // call plat-specific version
834 return wxRect(x
, y
, width
, height
);
837 wxSize
wxGetDisplaySizeMM()
840 wxDisplaySizeMM(& x
, & y
);
844 wxResourceCache::~wxResourceCache ()
846 wxNode
*node
= First ();
848 wxObject
*item
= (wxObject
*)node
->Data();
851 node
= node
->Next ();