projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added VC++ project files (seems logical)
[wxWidgets.git]
/
src
/
stubs
/
dcclient.cpp
diff --git
a/src/stubs/dcclient.cpp
b/src/stubs/dcclient.cpp
index 53a84e692805bacb758b493153bf69fb8342bd8f..4962885bf9fdc7919f9f82dbd5cbed071e1fb907 100644
(file)
--- a/
src/stubs/dcclient.cpp
+++ b/
src/stubs/dcclient.cpp
@@
-15,6
+15,7
@@
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
+#include "wx/region.h"
#include <math.h>
//-----------------------------------------------------------------------------
#include <math.h>
//-----------------------------------------------------------------------------
@@
-27,48
+28,49
@@
// wxPaintDC
//-----------------------------------------------------------------------------
// wxPaintDC
//-----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARY
-//IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxDC)
-//IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
-IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxDC)
-#endif
+IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
+IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
+IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxWindowDC)
+/*
+ * wxWindowDC
+ */
-wx
PaintDC::wxPaint
DC(void)
+wx
WindowDC::wxWindow
DC(void)
{
};
{
};
-wx
PaintDC::wxPaint
DC( wxWindow *window )
+wx
WindowDC::wxWindow
DC( wxWindow *window )
{
};
{
};
-wx
PaintDC::~wxPaint
DC(void)
+wx
WindowDC::~wxWindow
DC(void)
{
};
{
};
-void wx
Paint
DC::FloodFill( long WXUNUSED(x1), long WXUNUSED(y1),
-
wxColour*
WXUNUSED(col), int WXUNUSED(style) )
+void wx
Window
DC::FloodFill( long WXUNUSED(x1), long WXUNUSED(y1),
+
const wxColour&
WXUNUSED(col), int WXUNUSED(style) )
{
};
{
};
-bool wx
Paint
DC::GetPixel( long WXUNUSED(x1), long WXUNUSED(y1), wxColour *WXUNUSED(col) ) const
+bool wx
Window
DC::GetPixel( long WXUNUSED(x1), long WXUNUSED(y1), wxColour *WXUNUSED(col) ) const
{
return FALSE;
};
{
return FALSE;
};
-void wx
Paint
DC::DrawLine( long x1, long y1, long x2, long y2 )
+void wx
Window
DC::DrawLine( long x1, long y1, long x2, long y2 )
{
if (!Ok()) return;
};
{
if (!Ok()) return;
};
-void wx
Paint
DC::CrossHair( long x, long y )
+void wx
Window
DC::CrossHair( long x, long y )
{
if (!Ok()) return;
};
{
if (!Ok()) return;
};
-void wx
Paint
DC::DrawArc( long x1, long y1, long x2, long y2, long xc, long yc )
+void wx
Window
DC::DrawArc( long x1, long y1, long x2, long y2, long xc, long yc )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-114,7
+116,7
@@
void wxPaintDC::DrawArc( long x1, long y1, long x2, long y2, long xc, long yc )
};
};
-void wx
Paint
DC::DrawEllipticArc( long x, long y, long width, long height, double sa, double ea )
+void wx
Window
DC::DrawEllipticArc( long x, long y, long width, long height, double sa, double ea )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-134,14
+136,14
@@
void wxPaintDC::DrawEllipticArc( long x, long y, long width, long height, double
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
-void wx
Paint
DC::DrawPoint( long x, long y )
+void wx
Window
DC::DrawPoint( long x, long y )
{
if (!Ok()) return;
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
{
if (!Ok()) return;
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
-void wx
Paint
DC::DrawLines( int n, wxPoint points[], long xoffset, long yoffset )
+void wx
Window
DC::DrawLines( int n, wxPoint points[], long xoffset, long yoffset )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-156,7
+158,7
@@
void wxPaintDC::DrawLines( int n, wxPoint points[], long xoffset, long yoffset )
};
};
};
};
-void wx
Paint
DC::DrawLines( wxList *points, long xoffset, long yoffset )
+void wx
Window
DC::DrawLines( wxList *points, long xoffset, long yoffset )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-175,19
+177,19
@@
void wxPaintDC::DrawLines( wxList *points, long xoffset, long yoffset )
};
};
};
};
-void wx
Paint
DC::DrawPolygon( int WXUNUSED(n), wxPoint WXUNUSED(points)[],
+void wx
Window
DC::DrawPolygon( int WXUNUSED(n), wxPoint WXUNUSED(points)[],
long WXUNUSED(xoffset), long WXUNUSED(yoffset), int WXUNUSED(fillStyle) )
{
if (!Ok()) return;
};
long WXUNUSED(xoffset), long WXUNUSED(yoffset), int WXUNUSED(fillStyle) )
{
if (!Ok()) return;
};
-void wx
Paint
DC::DrawPolygon( wxList *WXUNUSED(lines), long WXUNUSED(xoffset),
+void wx
Window
DC::DrawPolygon( wxList *WXUNUSED(lines), long WXUNUSED(xoffset),
long WXUNUSED(yoffset), int WXUNUSED(fillStyle) )
{
if (!Ok()) return;
};
long WXUNUSED(yoffset), int WXUNUSED(fillStyle) )
{
if (!Ok()) return;
};
-void wx
Paint
DC::DrawRectangle( long x, long y, long width, long height )
+void wx
Window
DC::DrawRectangle( long x, long y, long width, long height )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-208,7
+210,7
@@
void wxPaintDC::DrawRectangle( long x, long y, long width, long height )
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
-void wx
Paint
DC::DrawRoundedRectangle( long x, long y, long width, long height, double radius )
+void wx
Window
DC::DrawRoundedRectangle( long x, long y, long width, long height, double radius )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-259,7
+261,7
@@
void wxPaintDC::DrawRoundedRectangle( long x, long y, long width, long height, d
};
};
};
};
-void wx
Paint
DC::DrawEllipse( long x, long y, long width, long height )
+void wx
Window
DC::DrawEllipse( long x, long y, long width, long height )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-277,12
+279,12
@@
void wxPaintDC::DrawEllipse( long x, long y, long width, long height )
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
if (m_pen.GetStyle() != wxTRANSPARENT) {};
};
-bool wx
Paint
DC::CanDrawBitmap(void) const
+bool wx
Window
DC::CanDrawBitmap(void) const
{
return TRUE;
};
{
return TRUE;
};
-void wx
Paint
DC::DrawIcon( const wxIcon &icon, long x, long y, bool useMask )
+void wx
Window
DC::DrawIcon( const wxIcon &icon, long x, long y, bool useMask )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-293,7
+295,7
@@
void wxPaintDC::DrawIcon( const wxIcon &icon, long x, long y, bool useMask )
};
};
-bool wx
Paint
DC::Blit( long xdest, long ydest, long width, long height,
+bool wx
Window
DC::Blit( long xdest, long ydest, long width, long height,
wxDC *source, long xsrc, long ysrc, int WXUNUSED(logical_func), bool WXUNUSED(useMask) )
{
if (!Ok()) return FALSE;
wxDC *source, long xsrc, long ysrc, int WXUNUSED(logical_func), bool WXUNUSED(useMask) )
{
if (!Ok()) return FALSE;
@@
-322,7
+324,7
@@
bool wxPaintDC::Blit( long xdest, long ydest, long width, long height,
return TRUE;
};
return TRUE;
};
-void wx
Paint
DC::DrawText( const wxString &text, long x, long y, bool
+void wx
Window
DC::DrawText( const wxString &text, long x, long y, bool
WXUNUSED(use16) )
{
if (!Ok()) return;
WXUNUSED(use16) )
{
if (!Ok()) return;
@@
-331,12
+333,12
@@
WXUNUSED(use16) )
-bool wx
Paint
DC::CanGetTextExtent(void) const
+bool wx
Window
DC::CanGetTextExtent(void) const
{
return TRUE;
};
{
return TRUE;
};
-void wx
Paint
DC::GetTextExtent( const wxString &string, long *width, long *height,
+void wx
Window
DC::GetTextExtent( const wxString &string, long *width, long *height,
long *WXUNUSED(descent), long *WXUNUSED(externalLeading),
wxFont *WXUNUSED(theFont), bool WXUNUSED(use16) )
{
long *WXUNUSED(descent), long *WXUNUSED(externalLeading),
wxFont *WXUNUSED(theFont), bool WXUNUSED(use16) )
{
@@
-344,32
+346,32
@@
void wxPaintDC::GetTextExtent( const wxString &string, long *width, long *height
};
};
-long wx
Paint
DC::GetCharWidth(void)
+long wx
Window
DC::GetCharWidth(void)
{
if (!Ok()) return 0;
return 0;
};
{
if (!Ok()) return 0;
return 0;
};
-long wx
Paint
DC::GetCharHeight(void)
+long wx
Window
DC::GetCharHeight(void)
{
if (!Ok()) return 0;
return 0;
};
{
if (!Ok()) return 0;
return 0;
};
-void wx
Paint
DC::Clear(void)
+void wx
Window
DC::Clear(void)
{
if (!Ok()) return;
};
{
if (!Ok()) return;
};
-void wx
Paint
DC::SetFont( const wxFont &font )
+void wx
Window
DC::SetFont( const wxFont &font )
{
if (!Ok()) return;
m_font = font;
};
{
if (!Ok()) return;
m_font = font;
};
-void wx
Paint
DC::SetPen( const wxPen &pen )
+void wx
Window
DC::SetPen( const wxPen &pen )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-380,7
+382,7
@@
void wxPaintDC::SetPen( const wxPen &pen )
if (!m_pen.Ok()) return;
};
if (!m_pen.Ok()) return;
};
-void wx
Paint
DC::SetBrush( const wxBrush &brush )
+void wx
Window
DC::SetBrush( const wxBrush &brush )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-392,7
+394,7
@@
void wxPaintDC::SetBrush( const wxBrush &brush )
};
};
-void wx
Paint
DC::SetBackground( const wxBrush &brush )
+void wx
Window
DC::SetBackground( const wxBrush &brush )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-404,12
+406,12
@@
void wxPaintDC::SetBackground( const wxBrush &brush )
};
};
-void wx
Paint
DC::SetLogicalFunction( int function )
+void wx
Window
DC::SetLogicalFunction( int function )
{
if (m_logicalFunction == function) return;
};
{
if (m_logicalFunction == function) return;
};
-void wx
Paint
DC::SetTextForeground( const wxColour &col )
+void wx
Window
DC::SetTextForeground( const wxColour &col )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-419,7
+421,7
@@
void wxPaintDC::SetTextForeground( const wxColour &col )
if (!m_textForegroundColour.Ok()) return;
};
if (!m_textForegroundColour.Ok()) return;
};
-void wx
Paint
DC::SetTextBackground( const wxColour &col )
+void wx
Window
DC::SetTextBackground( const wxColour &col )
{
if (!Ok()) return;
{
if (!Ok()) return;
@@
-429,7
+431,7
@@
void wxPaintDC::SetTextBackground( const wxColour &col )
if (!m_textBackgroundColour.Ok()) return;
};
if (!m_textBackgroundColour.Ok()) return;
};
-void wx
Paint
DC::SetBackgroundMode( int mode )
+void wx
Window
DC::SetBackgroundMode( int mode )
{
m_backgroundMode = mode;
{
m_backgroundMode = mode;
@@
-438,17
+440,28
@@
void wxPaintDC::SetBackgroundMode( int mode )
}
};
}
};
-void wx
Paint
DC::SetPalette( const wxPalette& WXUNUSED(palette) )
+void wx
Window
DC::SetPalette( const wxPalette& WXUNUSED(palette) )
{
};
{
};
-void wx
Paint
DC::SetClippingRegion( long x, long y, long width, long height )
+void wx
Window
DC::SetClippingRegion( long x, long y, long width, long height )
{
wxDC::SetClippingRegion( x, y, width, height );
{
wxDC::SetClippingRegion( x, y, width, height );
+
+ // TODO
};
};
-void wxPaintDC::DestroyClippingRegion(void)
+void wxWindowDC::SetClippingRegion( const wxRegion& region )
+{
+ wxRect box = region.GetBox();
+
+ wxDC::SetClippingRegion( box.x, box.y, box.width, box.height );
+
+ // TODO
+}
+
+void wxWindowDC::DestroyClippingRegion(void)
{
wxDC::DestroyClippingRegion();
{
wxDC::DestroyClippingRegion();
@@
-569,7
+582,7
@@
static void wx_spline_draw_point_array(wxDC *dc)
}
}
}
}
-void wx
PaintDC::DrawOpen
Spline( wxList *points )
+void wx
WindowDC::Draw
Spline( wxList *points )
{
wxPoint *p;
double cx1, cy1, cx2, cy2, cx3, cy3, cx4, cy4;
{
wxPoint *p;
double cx1, cy1, cx2, cy2, cx3, cy3, cx4, cy4;