#include <string.h>
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
#include <windows.h>
#endif
#if !USE_SHARED_LIBRARY
-IMPLEMENT_DYNAMIC_CLASS(wxRect, wxObject)
IMPLEMENT_CLASS(wxColourDatabase, wxList)
IMPLEMENT_DYNAMIC_CLASS(wxFontList, wxList)
IMPLEMENT_DYNAMIC_CLASS(wxPenList, wxList)
IMPLEMENT_DYNAMIC_CLASS(wxBrushList, wxList)
IMPLEMENT_DYNAMIC_CLASS(wxBitmapList, wxList)
+/*
+IMPLEMENT_DYNAMIC_CLASS(wxRect, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPoint, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxRealPoint, wxObject)
+*/
#endif
-wxRect::wxRect(void)
+wxRect::wxRect()
{
x = 0; y = 0; width = 0; height = 0;
}
{
}
-wxColourDatabase::~wxColourDatabase (void)
+wxColourDatabase::~wxColourDatabase ()
{
// Cleanup Colour allocated in Initialize()
wxNode *node = First ();
}
// Colour database stuff
-void wxColourDatabase::Initialize (void)
+void wxColourDatabase::Initialize ()
{
// Don't initialize for X: colours are found
// in FindColour below.
cdef cc;
static cdef table[]={
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
{"AQUAMARINE",112, 219, 147},
{"BLACK",0, 0, 0},
{"BLUE", 0, 0, 255},
{"YELLOW GREEN", 153, 204, 50},
#endif
-#if defined(__GTK__) || defined(__X__)
+#if defined(__WXGTK__) || defined(__X__)
{"MEDIUM GOLDENROD", 234, 234, 173},
{"MEDIUM FOREST GREEN", 107, 142, 35},
{"LIGHT MAGENTA", 255, 0, 255},
if (node)
return (wxColour *)node->Data();
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
else return NULL;
#endif
-#ifdef __GTK__
+#ifdef __WXGTK__
else {
wxColour *col = new wxColour( colour );
else {
XColor xcolour;
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
Display *display = XtDisplay(wxTheApp->topLevel) ;
#endif
#ifdef __XVIEW__
}
void
-wxInitializeStockObjects (void)
+wxInitializeStockObjects ()
{
wxTheBrushList = new wxBrushList;
wxThePenList = new wxPenList;
wxTheFontList = new wxFontList;
wxTheBitmapList = new wxBitmapList;
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
#endif
#ifdef __X__
wxFontPool = new XFontPool;
}
void
-wxDeleteStockObjects (void)
+wxDeleteStockObjects ()
{
DELETEP(wxNORMAL_FONT);
DELETEP(wxSMALL_FONT);
DELETEP(wxCROSS_CURSOR);
}
-wxBitmapList::wxBitmapList (void)
+wxBitmapList::wxBitmapList ()
{
}
-wxBitmapList::~wxBitmapList (void)
+wxBitmapList::~wxBitmapList ()
{
wxNode *node = First ();
while (node)
}
// Pen and Brush lists
-wxPenList::~wxPenList (void)
+wxPenList::~wxPenList ()
{
wxNode *node = First ();
while (node)
return NULL;
}
-wxBrushList::~wxBrushList (void)
+wxBrushList::~wxBrushList ()
{
wxNode *node = First ();
while (node)
DeleteObject (brush);
}
-wxFontList::~wxFontList (void)
+wxFontList::~wxFontList ()
{
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
wxNode *node = First ();
while (node)
{
each_font->GetStyle () == Style &&
each_font->GetWeight () == Weight &&
each_font->GetUnderlined () == underline &&
-#if defined(__X__) || (defined(__WINDOWS__) && USE_PORTABLE_FONTS_IN_MSW)
+#if defined(__X__) || (defined(__WXMSW__) && USE_PORTABLE_FONTS_IN_MSW)
each_font->GetFontId () == FamilyOrFontId) /* New font system */
#else
each_font->GetFamily () == FamilyOrFontId &&
void wxBitmapList::RemoveBitmap(wxBitmap *bitmap)
{ DeleteObject(bitmap); }
+wxSize wxGetDisplaySize()
+{
+ int x, y;
+ wxDisplaySize(& x, & y);
+ return wxSize(x, y);
+}
+