1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/gdicmn.cpp
3 // Purpose: Common GDI classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
19 #include "wx/gdicmn.h"
20 #include "wx/gdiobj.h"
26 #include "wx/palette.h"
28 #include "wx/cursor.h"
29 #include "wx/settings.h"
30 #include "wx/bitmap.h"
31 #include "wx/colour.h"
36 IMPLEMENT_DYNAMIC_CLASS(wxGDIObject
, wxObject
)
39 WXDLLIMPEXP_DATA_CORE(wxBrushList
*) wxTheBrushList
;
40 WXDLLIMPEXP_DATA_CORE(wxFontList
*) wxTheFontList
;
41 WXDLLIMPEXP_DATA_CORE(wxPenList
*) wxThePenList
;
43 WXDLLIMPEXP_DATA_CORE(wxColourDatabase
*) wxTheColourDatabase
;
45 WXDLLIMPEXP_DATA_CORE(wxBitmap
) wxNullBitmap
;
46 WXDLLIMPEXP_DATA_CORE(wxBrush
) wxNullBrush
;
47 WXDLLIMPEXP_DATA_CORE(wxColour
) wxNullColour
;
48 WXDLLIMPEXP_DATA_CORE(wxCursor
) wxNullCursor
;
49 WXDLLIMPEXP_DATA_CORE(wxFont
) wxNullFont
;
50 WXDLLIMPEXP_DATA_CORE(wxIcon
) wxNullIcon
;
51 WXDLLIMPEXP_DATA_CORE(wxPen
) wxNullPen
;
53 WXDLLIMPEXP_DATA_CORE(wxPalette
) wxNullPalette
;
56 const wxSize
wxDefaultSize(wxDefaultCoord
, wxDefaultCoord
);
57 const wxPoint
wxDefaultPosition(wxDefaultCoord
, wxDefaultCoord
);
59 #if wxUSE_EXTENDED_RTTI
63 template<> void wxStringReadValue(const wxString
&s
, wxPoint
&data
)
65 wxSscanf(s
, wxT("%d,%d"), &data
.x
, &data
.y
) ;
68 template<> void wxStringWriteValue(wxString
&s
, const wxPoint
&data
)
70 s
= wxString::Format(wxT("%d,%d"), data
.x
, data
.y
) ;
73 wxCUSTOM_TYPE_INFO(wxPoint
, wxToStringConverter
<wxPoint
> , wxFromStringConverter
<wxPoint
>)
75 template<> void wxStringReadValue(const wxString
&s
, wxSize
&data
)
77 wxSscanf(s
, wxT("%d,%d"), &data
.x
, &data
.y
) ;
80 template<> void wxStringWriteValue(wxString
&s
, const wxSize
&data
)
82 s
= wxString::Format(wxT("%d,%d"), data
.x
, data
.y
) ;
85 wxCUSTOM_TYPE_INFO(wxSize
, wxToStringConverter
<wxSize
> , wxFromStringConverter
<wxSize
>)
89 wxRect::wxRect(const wxPoint
& point1
, const wxPoint
& point2
)
93 width
= point2
.x
- point1
.x
;
94 height
= point2
.y
- point1
.y
;
111 bool wxRect::operator==(const wxRect
& rect
) const
113 return ((x
== rect
.x
) &&
115 (width
== rect
.width
) &&
116 (height
== rect
.height
));
119 wxRect
wxRect::operator+(const wxRect
& rect
) const
121 int x1
= wxMin(this->x
, rect
.x
);
122 int y1
= wxMin(this->y
, rect
.y
);
123 int y2
= wxMax(y
+height
, rect
.height
+rect
.y
);
124 int x2
= wxMax(x
+width
, rect
.width
+rect
.x
);
125 return wxRect(x1
, y1
, x2
-x1
, y2
-y1
);
128 wxRect
& wxRect::Union(const wxRect
& rect
)
130 // ignore empty rectangles: union with an empty rectangle shouldn't extend
131 // this one to (0, 0)
132 if ( !width
|| !height
)
136 else if ( rect
.width
&& rect
.height
)
138 int x1
= wxMin(x
, rect
.x
);
139 int y1
= wxMin(y
, rect
.y
);
140 int y2
= wxMax(y
+ height
, rect
.height
+ rect
.y
);
141 int x2
= wxMax(x
+ width
, rect
.width
+ rect
.x
);
148 //else: we're not empty and rect is empty
153 wxRect
& wxRect::Inflate(wxCoord dx
, wxCoord dy
)
157 // Don't allow deflate to eat more width than we have,
158 // a well-defined rectangle cannot have negative width.
164 // The inflate is valid.
171 // Don't allow deflate to eat more height than we have,
172 // a well-defined rectangle cannot have negative height.
178 // The inflate is valid.
186 bool wxRect::Inside(int cx
, int cy
) const
188 return ( (cx
>= x
) && (cy
>= y
)
189 && ((cy
- y
) < height
)
190 && ((cx
- x
) < width
)
194 bool wxRect::Inside(const wxRect
& rect
) const
196 return Inside(rect
.GetTopLeft()) && Inside(rect
.GetBottomRight());
199 wxRect
& wxRect::Intersect(const wxRect
& rect
)
208 if ( x2
> rect
.GetRight() )
209 x2
= rect
.GetRight();
210 if ( y2
> rect
.GetBottom() )
211 y2
= rect
.GetBottom();
216 if ( width
<= 0 || height
<= 0 )
225 bool wxRect::Intersects(const wxRect
& rect
) const
227 wxRect r
= Intersect(rect
);
229 // if there is no intersection, both width and height are 0
233 // ============================================================================
235 // ============================================================================
237 // ----------------------------------------------------------------------------
238 // wxColourDatabase ctor/dtor
239 // ----------------------------------------------------------------------------
241 wxColourDatabase::wxColourDatabase ()
243 // will be created on demand in Initialize()
247 wxColourDatabase::~wxColourDatabase ()
251 WX_CLEAR_HASH_MAP(wxStringToColourHashMap
, *m_map
);
257 delete [] m_palTable
;
261 // Colour database stuff
262 void wxColourDatabase::Initialize()
266 // already initialized
270 m_map
= new wxStringToColourHashMap
;
272 static const struct wxColourDesc
279 {wxT("AQUAMARINE"),112, 219, 147},
280 {wxT("BLACK"),0, 0, 0},
281 {wxT("BLUE"), 0, 0, 255},
282 {wxT("BLUE VIOLET"), 159, 95, 159},
283 {wxT("BROWN"), 165, 42, 42},
284 {wxT("CADET BLUE"), 95, 159, 159},
285 {wxT("CORAL"), 255, 127, 0},
286 {wxT("CORNFLOWER BLUE"), 66, 66, 111},
287 {wxT("CYAN"), 0, 255, 255},
288 {wxT("DARK GREY"), 47, 47, 47}, // ?
290 {wxT("DARK GREEN"), 47, 79, 47},
291 {wxT("DARK OLIVE GREEN"), 79, 79, 47},
292 {wxT("DARK ORCHID"), 153, 50, 204},
293 {wxT("DARK SLATE BLUE"), 107, 35, 142},
294 {wxT("DARK SLATE GREY"), 47, 79, 79},
295 {wxT("DARK TURQUOISE"), 112, 147, 219},
296 {wxT("DIM GREY"), 84, 84, 84},
297 {wxT("FIREBRICK"), 142, 35, 35},
298 {wxT("FOREST GREEN"), 35, 142, 35},
299 {wxT("GOLD"), 204, 127, 50},
300 {wxT("GOLDENROD"), 219, 219, 112},
301 {wxT("GREY"), 128, 128, 128},
302 {wxT("GREEN"), 0, 255, 0},
303 {wxT("GREEN YELLOW"), 147, 219, 112},
304 {wxT("INDIAN RED"), 79, 47, 47},
305 {wxT("KHAKI"), 159, 159, 95},
306 {wxT("LIGHT BLUE"), 191, 216, 216},
307 {wxT("LIGHT GREY"), 192, 192, 192},
308 {wxT("LIGHT STEEL BLUE"), 143, 143, 188},
309 {wxT("LIME GREEN"), 50, 204, 50},
310 {wxT("LIGHT MAGENTA"), 255, 0, 255},
311 {wxT("MAGENTA"), 255, 0, 255},
312 {wxT("MAROON"), 142, 35, 107},
313 {wxT("MEDIUM AQUAMARINE"), 50, 204, 153},
314 {wxT("MEDIUM GREY"), 100, 100, 100},
315 {wxT("MEDIUM BLUE"), 50, 50, 204},
316 {wxT("MEDIUM FOREST GREEN"), 107, 142, 35},
317 {wxT("MEDIUM GOLDENROD"), 234, 234, 173},
318 {wxT("MEDIUM ORCHID"), 147, 112, 219},
319 {wxT("MEDIUM SEA GREEN"), 66, 111, 66},
320 {wxT("MEDIUM SLATE BLUE"), 127, 0, 255},
321 {wxT("MEDIUM SPRING GREEN"), 127, 255, 0},
322 {wxT("MEDIUM TURQUOISE"), 112, 219, 219},
323 {wxT("MEDIUM VIOLET RED"), 219, 112, 147},
324 {wxT("MIDNIGHT BLUE"), 47, 47, 79},
325 {wxT("NAVY"), 35, 35, 142},
326 {wxT("ORANGE"), 204, 50, 50},
327 {wxT("ORANGE RED"), 255, 0, 127},
328 {wxT("ORCHID"), 219, 112, 219},
329 {wxT("PALE GREEN"), 143, 188, 143},
330 {wxT("PINK"), 188, 143, 234},
331 {wxT("PLUM"), 234, 173, 234},
332 {wxT("PURPLE"), 176, 0, 255},
333 {wxT("RED"), 255, 0, 0},
334 {wxT("SALMON"), 111, 66, 66},
335 {wxT("SEA GREEN"), 35, 142, 107},
336 {wxT("SIENNA"), 142, 107, 35},
337 {wxT("SKY BLUE"), 50, 153, 204},
338 {wxT("SLATE BLUE"), 0, 127, 255},
339 {wxT("SPRING GREEN"), 0, 255, 127},
340 {wxT("STEEL BLUE"), 35, 107, 142},
341 {wxT("TAN"), 219, 147, 112},
342 {wxT("THISTLE"), 216, 191, 216},
343 {wxT("TURQUOISE"), 173, 234, 234},
344 {wxT("VIOLET"), 79, 47, 79},
345 {wxT("VIOLET RED"), 204, 50, 153},
346 {wxT("WHEAT"), 216, 216, 191},
347 {wxT("WHITE"), 255, 255, 255},
348 {wxT("YELLOW"), 255, 255, 0},
349 {wxT("YELLOW GREEN"), 153, 204, 50}
354 for ( n
= 0; n
< WXSIZEOF(wxColourTable
); n
++ )
356 const wxColourDesc
& cc
= wxColourTable
[n
];
357 (*m_map
)[cc
.name
] = new wxColour(cc
.r
, cc
.g
, cc
.b
);
361 m_palTable
= new long[n
];
362 for ( n
= 0; n
< WXSIZEOF(wxColourTable
); n
++ )
364 const wxColourDesc
& cc
= wxColourTable
[n
];
365 m_palTable
[n
] = OS2RGB(cc
.r
,cc
.g
,cc
.b
);
371 // ----------------------------------------------------------------------------
372 // wxColourDatabase operations
373 // ----------------------------------------------------------------------------
375 void wxColourDatabase::AddColour(const wxString
& name
, const wxColour
& colour
)
379 // canonicalize the colour names before using them as keys: they should be
381 wxString colName
= name
;
384 // ... and we also allow both grey/gray
385 wxString colNameAlt
= colName
;
386 if ( !colNameAlt
.Replace(_T("GRAY"), _T("GREY")) )
388 // but in this case it is not necessary so avoid extra search below
392 wxStringToColourHashMap::iterator it
= m_map
->find(colName
);
393 if ( it
== m_map
->end() && !colNameAlt
.empty() )
394 it
= m_map
->find(colNameAlt
);
395 if ( it
!= m_map
->end() )
397 *(it
->second
) = colour
;
401 (*m_map
)[colName
] = new wxColour(colour
);
405 wxColour
wxColourDatabase::Find(const wxString
& colour
) const
407 wxColourDatabase
* const self
= wxConstCast(this, wxColourDatabase
);
410 // make the comparaison case insensitive and also match both grey and gray
411 wxString colName
= colour
;
413 wxString colNameAlt
= colName
;
414 if ( !colNameAlt
.Replace(_T("GRAY"), _T("GREY")) )
417 wxStringToColourHashMap::iterator it
= m_map
->find(colName
);
418 if ( it
== m_map
->end() && !colNameAlt
.empty() )
419 it
= m_map
->find(colNameAlt
);
420 if ( it
!= m_map
->end() )
421 return *(it
->second
);
423 // we did not find any result in existing colours:
424 // we won't use wxString -> wxColour conversion because the
425 // wxColour::Set(const wxString &) function which does that conversion
426 // internally uses this function (wxColourDatabase::Find) and we want
427 // to avoid infinite recursion !
431 wxString
wxColourDatabase::FindName(const wxColour
& colour
) const
433 wxColourDatabase
* const self
= wxConstCast(this, wxColourDatabase
);
436 typedef wxStringToColourHashMap::iterator iterator
;
438 for ( iterator it
= m_map
->begin(), en
= m_map
->end(); it
!= en
; ++it
)
440 if ( *(it
->second
) == colour
)
444 return wxEmptyString
;
447 // ----------------------------------------------------------------------------
448 // deprecated wxColourDatabase methods
449 // ----------------------------------------------------------------------------
451 #if WXWIN_COMPATIBILITY_2_6
452 wxColour
*wxColourDatabase::FindColour(const wxString
& name
)
454 // This function is deprecated, use Find() instead.
455 // Formerly this function sometimes would return a deletable pointer and
456 // sometimes a non-deletable one (when returning a colour from the database).
457 // Trying to delete the latter anyway results in problems, so probably
458 // nobody ever freed the pointers. Currently it always returns a new
459 // instance, which means there will be memory leaks.
460 wxLogDebug(wxT("wxColourDataBase::FindColour():")
461 wxT(" Please use wxColourDataBase::Find() instead"));
463 // using a static variable here is not the most elegant solution but unless
464 // we want to make wxStringToColourHashMap public (i.e. move it to the
465 // header) so that we could have a member function returning
466 // wxStringToColourHashMap::iterator, there is really no good way to do it
469 // and knowing that this function is going to disappear in the next release
470 // anyhow I don't want to waste time on this
472 static wxColour s_col
;
478 return new wxColour(s_col
);
480 #endif // WXWIN_COMPATIBILITY_2_6
482 // ============================================================================
484 // ============================================================================
486 static wxStockGDI gs_wxStockGDI_instance
;
487 wxStockGDI
* wxStockGDI::ms_instance
= &gs_wxStockGDI_instance
;
488 wxObject
* wxStockGDI::ms_stockObject
[ITEMCOUNT
];
490 wxStockGDI::wxStockGDI()
494 wxStockGDI::~wxStockGDI()
498 void wxStockGDI::DeleteAll()
500 for (unsigned i
= 0; i
< ITEMCOUNT
; i
++)
502 delete ms_stockObject
[i
];
503 ms_stockObject
[i
] = NULL
;
507 const wxBrush
* wxStockGDI::GetBrush(Item item
)
509 wxBrush
* brush
= wx_static_cast(wxBrush
*, ms_stockObject
[item
]);
515 brush
= new wxBrush(*GetColour(COLOUR_BLACK
), wxSOLID
);
518 brush
= new wxBrush(*GetColour(COLOUR_BLUE
), wxSOLID
);
521 brush
= new wxBrush(*GetColour(COLOUR_CYAN
), wxSOLID
);
524 brush
= new wxBrush(*GetColour(COLOUR_GREEN
), wxSOLID
);
527 brush
= new wxBrush(wxColour(wxT("GREY")), wxSOLID
);
529 case BRUSH_LIGHTGREY
:
530 brush
= new wxBrush(*GetColour(COLOUR_LIGHTGREY
), wxSOLID
);
532 case BRUSH_MEDIUMGREY
:
533 brush
= new wxBrush(wxColour(wxT("MEDIUM GREY")), wxSOLID
);
536 brush
= new wxBrush(*GetColour(COLOUR_RED
), wxSOLID
);
538 case BRUSH_TRANSPARENT
:
539 brush
= new wxBrush(*GetColour(COLOUR_BLACK
), wxTRANSPARENT
);
542 brush
= new wxBrush(*GetColour(COLOUR_WHITE
), wxSOLID
);
547 ms_stockObject
[item
] = brush
;
552 const wxColour
* wxStockGDI::GetColour(Item item
)
554 wxColour
* colour
= wx_static_cast(wxColour
*, ms_stockObject
[item
]);
560 colour
= new wxColour(0, 0, 0);
563 colour
= new wxColour(0, 0, 255);
566 colour
= new wxColour(wxT("CYAN"));
569 colour
= new wxColour(0, 255, 0);
571 case COLOUR_LIGHTGREY
:
572 colour
= new wxColour(wxT("LIGHT GREY"));
575 colour
= new wxColour(255, 0, 0);
578 colour
= new wxColour(255, 255, 255);
583 ms_stockObject
[item
] = colour
;
588 const wxCursor
* wxStockGDI::GetCursor(Item item
)
590 wxCursor
* cursor
= wx_static_cast(wxCursor
*, ms_stockObject
[item
]);
596 cursor
= new wxCursor(wxCURSOR_CROSS
);
598 case CURSOR_HOURGLASS
:
599 cursor
= new wxCursor(wxCURSOR_WAIT
);
601 case CURSOR_STANDARD
:
602 cursor
= new wxCursor(wxCURSOR_ARROW
);
607 ms_stockObject
[item
] = cursor
;
612 const wxFont
* wxStockGDI::GetFont(Item item
)
614 wxFont
* font
= wx_static_cast(wxFont
*, ms_stockObject
[item
]);
620 font
= new wxFont(GetFont(FONT_NORMAL
)->GetPointSize(), wxROMAN
, wxITALIC
, wxNORMAL
);
623 font
= new wxFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT
));
626 font
= new wxFont(GetFont(FONT_NORMAL
)->GetPointSize() - 2, wxSWISS
, wxNORMAL
, wxNORMAL
);
629 font
= new wxFont(GetFont(FONT_NORMAL
)->GetPointSize(), wxSWISS
, wxNORMAL
, wxNORMAL
);
634 ms_stockObject
[item
] = font
;
639 const wxPen
* wxStockGDI::GetPen(Item item
)
641 wxPen
* pen
= wx_static_cast(wxPen
*, ms_stockObject
[item
]);
647 pen
= new wxPen(*GetColour(COLOUR_BLACK
), 1, wxSOLID
);
649 case PEN_BLACKDASHED
:
650 pen
= new wxPen(*GetColour(COLOUR_BLACK
), 1, wxSHORT_DASH
);
653 pen
= new wxPen(*GetColour(COLOUR_CYAN
), 1, wxSOLID
);
656 pen
= new wxPen(*GetColour(COLOUR_GREEN
), 1, wxSOLID
);
659 pen
= new wxPen(wxColour(wxT("GREY")), 1, wxSOLID
);
662 pen
= new wxPen(*GetColour(COLOUR_LIGHTGREY
), 1, wxSOLID
);
665 pen
= new wxPen(wxColour(wxT("MEDIUM GREY")), 1, wxSOLID
);
668 pen
= new wxPen(*GetColour(COLOUR_RED
), 1, wxSOLID
);
670 case PEN_TRANSPARENT
:
671 pen
= new wxPen(*GetColour(COLOUR_BLACK
), 1, wxTRANSPARENT
);
674 pen
= new wxPen(*GetColour(COLOUR_WHITE
), 1, wxSOLID
);
679 ms_stockObject
[item
] = pen
;
684 void wxInitializeStockLists()
686 wxTheColourDatabase
= new wxColourDatabase
;
688 wxTheBrushList
= new wxBrushList
;
689 wxThePenList
= new wxPenList
;
690 wxTheFontList
= new wxFontList
;
693 void wxDeleteStockLists()
695 wxDELETE(wxTheBrushList
);
696 wxDELETE(wxThePenList
);
697 wxDELETE(wxTheFontList
);
700 // ============================================================================
701 // wxTheXXXList stuff (semi-obsolete)
702 // ============================================================================
704 wxGDIObjListBase::wxGDIObjListBase()
708 wxGDIObjListBase::~wxGDIObjListBase()
710 for (wxList::compatibility_iterator node
= list
.GetFirst(); node
; node
= node
->GetNext())
712 delete wx_static_cast(wxObject
*, node
->GetData());
716 wxPen
*wxPenList::FindOrCreatePen (const wxColour
& colour
, int width
, int style
)
718 for (wxList::compatibility_iterator node
= list
.GetFirst(); node
; node
= node
->GetNext())
720 wxPen
*each_pen
= (wxPen
*) node
->GetData ();
722 each_pen
->GetWidth () == width
&&
723 each_pen
->GetStyle () == style
&&
724 each_pen
->GetColour ().Red () == colour
.Red () &&
725 each_pen
->GetColour ().Green () == colour
.Green () &&
726 each_pen
->GetColour ().Blue () == colour
.Blue ())
731 wxPen
penTmp(colour
, width
, style
);
734 pen
= new wxPen(penTmp
);
741 wxBrush
*wxBrushList::FindOrCreateBrush (const wxColour
& colour
, int style
)
743 for (wxList::compatibility_iterator node
= list
.GetFirst(); node
; node
= node
->GetNext())
745 wxBrush
*each_brush
= (wxBrush
*) node
->GetData ();
747 each_brush
->GetStyle () == style
&&
748 each_brush
->GetColour ().Red () == colour
.Red () &&
749 each_brush
->GetColour ().Green () == colour
.Green () &&
750 each_brush
->GetColour ().Blue () == colour
.Blue ())
754 wxBrush
* brush
= NULL
;
755 wxBrush
brushTmp(colour
, style
);
758 brush
= new wxBrush(brushTmp
);
765 wxFont
*wxFontList::FindOrCreateFont(int pointSize
,
770 const wxString
& facename
,
771 wxFontEncoding encoding
)
774 wxList::compatibility_iterator node
;
775 for (node
= list
.GetFirst(); node
; node
= node
->GetNext())
777 font
= (wxFont
*)node
->GetData();
779 font
->GetPointSize () == pointSize
&&
780 font
->GetStyle () == style
&&
781 font
->GetWeight () == weight
&&
782 font
->GetUnderlined () == underline
)
784 int fontFamily
= font
->GetFamily();
786 #if defined(__WXGTK__)
787 // under GTK the default family is wxSWISS, so looking for a font
788 // with wxDEFAULT family should return a wxSWISS one instead of
789 // creating a new one
790 bool same
= (fontFamily
== family
) ||
791 (fontFamily
== wxSWISS
&& family
== wxDEFAULT
);
793 // VZ: but why elsewhere do we require an exact match? mystery...
794 bool same
= fontFamily
== family
;
797 // empty facename matches anything at all: this is bad because
798 // depending on which fonts are already created, we might get back
799 // a different font if we create it with empty facename, but it is
800 // still better than never matching anything in the cache at all
802 if ( same
&& !facename
.empty() )
804 const wxString
& fontFace
= font
->GetFaceName();
806 // empty facename matches everything
807 same
= !fontFace
|| fontFace
== facename
;
810 if ( same
&& (encoding
!= wxFONTENCODING_DEFAULT
) )
812 // have to match the encoding too
813 same
= font
->GetEncoding() == encoding
;
823 // font not found, create the new one
825 wxFont
fontTmp(pointSize
, family
, style
, weight
, underline
, facename
, encoding
);
828 font
= new wxFont(fontTmp
);
835 #if WXWIN_COMPATIBILITY_2_6
836 void wxBrushList::AddBrush(wxBrush
*) { }
837 void wxBrushList::RemoveBrush(wxBrush
*) { }
838 void wxFontList::AddFont(wxFont
*) { }
839 void wxFontList::RemoveFont(wxFont
*) { }
840 void wxPenList::AddPen(wxPen
*) { }
841 void wxPenList::RemovePen(wxPen
*) { }
844 wxSize
wxGetDisplaySize()
847 wxDisplaySize(& x
, & y
);
851 wxRect
wxGetClientDisplayRect()
853 int x
, y
, width
, height
;
854 wxClientDisplayRect(&x
, &y
, &width
, &height
); // call plat-specific version
855 return wxRect(x
, y
, width
, height
);
858 wxSize
wxGetDisplaySizeMM()
861 wxDisplaySizeMM(& x
, & y
);
865 wxResourceCache::~wxResourceCache ()
867 wxList::compatibility_iterator node
= GetFirst ();
869 wxObject
*item
= (wxObject
*)node
->GetData();
872 node
= node
->GetNext ();