Stefan Csomor
92a942606f
supporting AA font flags on wxGCDC, fixes #10579
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-13 17:53:58 +00:00
Stefan Csomor
bf02a7f976
switching to compositing operators ( fixes #9881 ), adding layers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-15 16:52:05 +00:00
Francesco Montorsi
89efaf2b65
change generic ints to enums in wxDC ( closes #9959 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 14:21:53 +00:00
Stefan Csomor
0b6a49c21f
forward define for non precomp build, switching preproc constants for consistency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-05 19:02:51 +00:00
Vadim Zeitlin
08de440369
honour useMask parameter in DrawBitmap() and StretchBlit() ( #9841 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-21 21:12:44 +00:00
Stefan Csomor
6d0d845548
better guarding when no printing architecture exists (patch from Joel Low)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-31 06:57:33 +00:00
Stefan Csomor
c933e267be
fixing file paths after renaming
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-11 19:22:25 +00:00
Vadim Zeitlin
fdaad94e75
deprecate wxDC::SetClippingRegion(wxRegion) overload and replace it with SetDeviceClippingRegion() to avoid confusion due to use of different kind of coordinates in this and other overloads of the same function; also rename wxDCImpl::DoSetClippingRegionAsRegion() to DoSetDeviceClippingRegion(); finally use bounding box of the region passed to wxDCClipper ctor to avoid interpreting coordinates differently for different ctors of the same class (see #8970 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-08 01:45:56 +00:00
Stefan Csomor
47c1bb9515
fixing arc filling for angles > 180
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 04:49:30 +00:00
Robert Roebling
d225267e66
Made the various logical 2 device transforms consistent with what's drawn on all platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-19 12:42:11 +00:00
Robert Roebling
b25c34aae4
Added constructor to wxGCDC from wxPrinterDC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-30 09:26:02 +00:00
Stefan Csomor
71be467a6c
cleaning up common OSX code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-07 16:50:27 +00:00
Stefan Csomor
1cc7d13a08
graphics context additions and merging graphics bitmap additions from Kevin O.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-05 21:11:44 +00:00
Vadim Zeitlin
b02d434010
include wx/dcclient.h to declare wxWindowDC (blind fix for buildbot compilation error)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 21:54:45 +00:00
Stefan Csomor
7b98cf028f
keep the owning window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 09:25:37 +00:00
Stefan Csomor
26dfebbd6c
starting a doc must return true in order for printpreview to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-18 15:11:15 +00:00
Stefan Csomor
9412ee9a2a
fixing warning about missing virt destructor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-03 16:35:05 +00:00
Robert Roebling
7b1a66bb68
compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 23:24:48 +00:00
Stefan Csomor
2dedef259c
using common code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 20:50:11 +00:00
Robert Roebling
888dde65f4
DC reorganization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 13:48:22 +00:00
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