Commit Graph

25 Commits

Author SHA1 Message Date
Stefan Csomor
fcaea2fab9 forward port from 2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 20:39:58 +00:00
Robert Roebling
b0d7707bc4 Use wxPointList instead of wxList in wxDC code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-19 14:53:55 +00:00
Vadim Zeitlin
c94f845b16 changed wxDC::GetTextExtent() and related methods to take const wxFont pointer, for consistency with wxWindow::GetTextExtent() and because it generally doesn't need a non-const font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 01:49:47 +00:00
Robin Dunn
d9485f89b8 Forward port of my recent changes in the 2.8 branch:
* Force use of floating point math in wxGCDC::DoDrawEllipticArc.

 * Check for 0.5 offset in wxGCDC::DoDrawRoundedRectangle and
   DoDrawEllipse.  Set wxGDIPlusContext to use the offset.

 * Avoid crash in wxStdDialogButtonSizer::Realize if there is no
   negative button.

 * Provide implementations for wxCairoPathData::AddPath,
   wxCairoContext::Clip, wxCairoContext::DrawBitmap,
   wxCairoContext::DrawIcon, and wxCairoContext::GetTextExtent.

 * Fix wxCairoContext::DrawText to draw the text using the upper-left
   corner for the x,y position, not the baseline.

 * Fix wxMacCoreGraphicsRenderer::CreateContext to be able to use a
   wxMemoryDC as the target.

 * Map wxTELETYPE font family on wxMac to a monospace font.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 20:08:41 +00:00
Vadim Zeitlin
e3b81044ee wxDC::StretchBlit() for wxMac and wxMSW (patch 1611973)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-18 15:32:27 +00:00
Stefan Csomor
cb6e26b88e fix for drawing in the 'grox box' between two scrollbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-26 21:47:46 +00:00
Robin Dunn
cce4a2cec8 clip the bitmap to the size of the source DC in DoBlit if neccessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-07 03:07:30 +00:00
Stefan Csomor
4280b8797f adding raster op hook to graphics context
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-03 15:23:42 +00:00
Stefan Csomor
773ccc318e adapting to new inheritance of wxMemoryDC (under MSW only at the moment)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 09:47:20 +00:00
Stefan Csomor
4bae004c61 translate the wxRegion from device to user coordinates, swap angles for the arc drawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 08:06:09 +00:00
Stefan Csomor
068eb463a4 adding text with background brush
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 17:41:41 +00:00
Stefan Csomor
ad66794547 adding measuring contexts, streamlining printing code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 07:50:06 +00:00
Stefan Csomor
fd7915711f allowing transformation changes even if there is no graphics context around
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 06:39:50 +00:00
Stefan Csomor
f889bdb323 interpreting DrawBitmap for mono bitmaps according to the docs : using textfore- and background-colors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 09:16:04 +00:00
Stefan Csomor
2986407b54 correct meaning of logical origin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 10:30:42 +00:00
Vadim Zeitlin
8a438f46b5 more fixes to double to int conversions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 23:19:10 +00:00
Vadim Zeitlin
6c0aace267 hack to fix warnings about wxMAC_USE_CORE_GRAPHICS_BLEND_MODES not being defined -- but should it be used in this common file at all?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 23:16:17 +00:00
Stefan Csomor
914fd3f1e5 guarding against setting of NULL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 21:01:36 +00:00
Stefan Csomor
64c8307c93 blit implemented using dc.GetAsBitmap with subrect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 11:07:11 +00:00
Stefan Csomor
9e15c94f41 apply complete transforms (scroll window PrepareDC was not functioning properly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 10:42:42 +00:00
Stefan Csomor
0ebd9515e5 using native tranforms for everything
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 09:49:52 +00:00
Kevin Ollivier
c64c9cd3ba Added wxDC::GetAsBitmap, and implemented wxWindowDC::DoGetAsBitmap on OS X, in order to restore the ability to blit the contents of those DCs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 05:29:04 +00:00
Stefan Csomor
a4e73390a6 moving path and matrix to refcounting as well, switching filling rule default to odd-even as dc.h does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 13:46:46 +00:00
Stefan Csomor
5ebfdf4169 added the recangle fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 06:21:57 +00:00
Stefan Csomor
1b89a5cd94 move the graphics context bridge dc into separate file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 06:07:29 +00:00