Commit graph

60 commits

Author SHA1 Message Date
Fred Kiefer
0f3d255824 * Headers/gsc/GSGState.h
* Source/gsc/GSContext.m
        * Source/gsc/GSGState.m
        * Source/cairo/CairoGState.m
        Implement per gstate methods for antialias, patternPhase and
        compositingOperation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@39026 72102866-910b-0410-8b05-ffd578937521
2015-10-03 21:49:35 +00:00
Fred Kiefer
2a3f24197c * Source/gsc/GSGState.m (_fillRect:withPattern:): Add support
for patternPhase.
        Patch by Josh Freeman <gnustep_lists@twilightedge.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@38527 72102866-910b-0410-8b05-ffd578937521
2015-05-22 21:14:02 +00:00
Fred Kiefer
1a481e1964 Change DPS/PS functions to CGFloat and NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36063 72102866-910b-0410-8b05-ffd578937521
2013-02-05 19:18:49 +00:00
Fred Kiefer
4bd1a24087 Change NSBezierPath to use NSInteger and CGFloat and adjust uses to
this.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@36054 72102866-910b-0410-8b05-ffd578937521
2013-02-01 14:03:08 +00:00
Gregory John Casamento
02544402a5 * ChangeLog
* config.h.in
	* configure
	* configure.ac
	* Headers/win32/WIN32Server.h
	* Source/cairo/CairoContext.m
	* Source/cairo/CairoGState.m
	* Source/cairo/CairoPDFSurface.m
	* Source/cairo/GNUmakefile
	* Source/cairo/Win32CairoSurface.m
	* Source/GSBackend.m
	* Source/gsc/GSGState.m
	* Source/win32/w32_create.m
	* Source/win32/w32_general.m
	* Source/win32/w32_GLcontext.m
	* Source/win32/w32_movesize.m
	* Source/win32/w32_windowdisplay.m
	* Source/win32/WIN32Server.m
	* Source/winlib/GNUmakefile.preamble: Merge of all testplant
	branch changes to trunk for Cairo changes.  Did code cleanup to
	make the code conform to coding standards.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@35821 72102866-910b-0410-8b05-ffd578937521
2012-11-26 05:39:22 +00:00
Fred Kiefer
6737892a4a * Source/win32/w32_create.m (-decodeWM_CREATEParams:::): Call
windowbacking:: instead of handling backingstore here.

Merge some changes from testplant branch
* Source/win32/WIN32Server.m : Fix for fatal exceptions when a
nil mouse event tried to post
Patch by Jonathan Gillaspie <jonathan.gillaspie@testplant.com>
* Source/gsc/GSGState.m (-description),
* Source/cairo/CairoGState.m (-description): Add this method.
* Headers/win32/WIN32Server.h - Added a mutable array for
storing multiple screen information from GDI screen lookup
* Source/win32/WIN32Server.m - Added startup sequence to invoke
GDI functions to look up multiple screen/monitor information
* Source/gsc/GSGState.m: Fix compiler warnings
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@35688 72102866-910b-0410-8b05-ffd578937521
2012-10-14 20:12:35 +00:00
Wolfgang Lux
2f611ab26a Fix potentially uninitialized color space element when setting fill
and stroke colors.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@34786 72102866-910b-0410-8b05-ffd578937521
2012-02-19 18:30:51 +00:00
Eric Wasylishen
c9c9397b6d * Source/gsc/GSStreamContext.m:
* Source/gsc/GSContext.m:
* Source/gsc/GSGState.m:
* Headers/gsc/GSGStateOps.h: Change type for -GSSetFillColor: and
-GSSetStrokeColor: from float to CGFloat


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@34071 72102866-910b-0410-8b05-ffd578937521
2011-10-26 00:24:17 +00:00
Eric Wasylishen
07638f13fc * Source/winlib/WIN32GState.m:
* Source/art/ARTGState.m:
* Source/cairo/CairoGState.m:
* Source/xlib/XGGState.m:
* Source/gsc/GSContext.m:
* Source/gsc/GSGState.m:
* Headers/gsc/GSGStateOps.h:
Add a new interface, GSShowGlyphsWithAdvances, which replaces
GSShowGlyphs as the primitive text drawing method.

None of the backends implement it properly yet; I simply renamed
the existing -GSShowGlyphs:: methods to -GSShowGlyphsWithAdvances:::,
so they currently ignore the glyph advances.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33121 72102866-910b-0410-8b05-ffd578937521
2011-05-26 03:48:58 +00:00
Eric Wasylishen
282a590ad5 core/back: replace objc_{malloc/free} with malloc/free
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31629 72102866-910b-0410-8b05-ffd578937521
2010-11-18 20:28:15 +00:00
Fred Kiefer
96c82d4518 Fix for bug #30140. The code was not converting the rectangle for
pattern drawing into device space.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31044 72102866-910b-0410-8b05-ffd578937521
2010-07-28 09:11:04 +00:00
Riccardo Mottola
1d0aa595c9 added missing imports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30451 72102866-910b-0410-8b05-ffd578937521
2010-05-24 22:42:50 +00:00
Riccardo Mottola
6b298f79b6 include -> import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30038 72102866-910b-0410-8b05-ffd578937521
2010-03-25 22:19:44 +00:00
Riccardo Mottola
28b5c69f02 import NSValue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30037 72102866-910b-0410-8b05-ffd578937521
2010-03-25 21:52:33 +00:00
Richard Frith-MacDonald
18ab944a93 update to avoid obsolete function
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29844 72102866-910b-0410-8b05-ffd578937521
2010-03-05 06:52:53 +00:00
Fred Kiefer
6a453d533c Correct -setColor:state: to handle alpha better.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28957 72102866-910b-0410-8b05-ffd578937521
2009-11-04 21:56:49 +00:00
Fred Kiefer
460445a4dc Use the new NSAffineTransform for the last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28912 72102866-910b-0410-8b05-ffd578937521
2009-10-29 08:13:31 +00:00
Fred Kiefer
197c45e3f5 Correct drawing of pattern colour.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28911 72102866-910b-0410-8b05-ffd578937521
2009-10-29 08:00:41 +00:00
Fred Kiefer
6653ef68cc Add simple gradient implementation for the cairo backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28873 72102866-910b-0410-8b05-ffd578937521
2009-10-23 20:46:41 +00:00
Fred Kiefer
3c8eab0c49 Implement pattern colours for all backends.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28850 72102866-910b-0410-8b05-ffd578937521
2009-10-19 14:17:45 +00:00
Fred Kiefer
0f7b2e89cb Finish rework of composite operators started four years ago.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28313 72102866-910b-0410-8b05-ffd578937521
2009-05-31 19:46:28 +00:00
Adam Fedor
250ebdfad0 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26620 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:12:46 +00:00
Fred Kiefer
7bf8083235 Small memory fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26580 72102866-910b-0410-8b05-ffd578937521
2008-05-27 22:29:25 +00:00
Fred Kiefer
f2217879fb Backend support for appendBezierPathWithPackedGlyphs:.
Implementation of coveredCharacterSet on GSXftFontInfo.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@26436 72102866-910b-0410-8b05-ffd578937521
2008-04-07 13:51:28 +00:00
Fred Kiefer
2cc8536f04 Add missing include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25713 72102866-910b-0410-8b05-ffd578937521
2007-12-10 15:47:12 +00:00
Fred Kiefer
d1797af60c Correct mistype in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25712 72102866-910b-0410-8b05-ffd578937521
2007-12-10 15:45:23 +00:00
Fred Kiefer
2ca28c413e Change stroke and fill to use NSColorSpace
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25711 72102866-910b-0410-8b05-ffd578937521
2007-12-10 15:34:56 +00:00
Fred Kiefer
0f8c5487c7 Change files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25538 72102866-910b-0410-8b05-ffd578937521
2007-10-29 23:25:10 +00:00
Fred Kiefer
f2ac847ff4 Add a generic basic implementation for the DPSshfill: operator. This
needs to be optimized for each individual backend and the original art
implemenation should be moved to this.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25519 72102866-910b-0410-8b05-ffd578937521
2007-10-05 20:57:59 +00:00
Fred Kiefer
1c702a4308 Replace obsolte NSAffinetransform methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24926 72102866-910b-0410-8b05-ffd578937521
2007-03-23 11:27:28 +00:00
Fred Kiefer
b2d624ad91 Don't use cairo transformations, use the super class implementation
instead. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24896 72102866-910b-0410-8b05-ffd578937521
2007-03-18 17:50:58 +00:00
Fred Kiefer
690f6936b1 Corrected path box method on GSGState and made CairoGState more
forgiving on missing _ct.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24497 72102866-910b-0410-8b05-ffd578937521
2007-02-10 12:50:48 +00:00
Richard Frith-MacDonald
eedc280b9d Window frame/coordinate handling cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23461 72102866-910b-0410-8b05-ffd578937521
2006-09-12 09:50:14 +00:00
Richard Frith-MacDonald
940a0eabbe Avoid spurious warnings produced by gcc-4.1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23127 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:54:48 +00:00
Fred Kiefer
5a70e75973 dded partial implementation for pattern colour and alpha image composition.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21437 72102866-910b-0410-8b05-ffd578937521
2005-07-09 00:10:08 +00:00
Adam Fedor
7a3f75f9ac Update FSF Address
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@21263 72102866-910b-0410-8b05-ffd578937521
2005-05-26 22:51:53 +00:00
Alexander Malmberg
82ca6dd14a 2005-01-21 21:51 Alexander Malmberg <alexander@malmberg.org>
Various warning and whitespace cleanups.

	* Headers/x11/XGServerWindow.h,
 	* Source/art/ftfont.m,
	* Source/gsc/GSGState.m,
	* Source/win32/WIN32Server.m,
	* Source/x11/XGDragView.m,
	* Source/x11/XGServerEvent.m,
	* Source/x11/XGServerWindow.m: Change signedness of various
	variables.
	* Tools/gpbs.m: Add missing ctype.h include.
	* Source/x11/XGDrawView.m (-_setCursor): Initialize variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20591 72102866-910b-0410-8b05-ffd578937521
2005-01-21 20:49:29 +00:00
Fred Kiefer
f4a23121d8 Small cleanup of cairo backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@19902 72102866-910b-0410-8b05-ffd578937521
2004-08-23 12:28:16 +00:00
Alexander Malmberg
55647cbdf1 Implement GSReadRect in art/.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@19800 72102866-910b-0410-8b05-ffd578937521
2004-07-30 13:57:27 +00:00
Fred Kiefer
3c77485016 Moved extend string showing methods to GSG.
Simple (not working) alpha handling on windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@19686 72102866-910b-0410-8b05-ffd578937521
2004-07-06 17:52:39 +00:00
Fred Kiefer
512be5eca2 Made non-zero fill winding rule and dash patterns working.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18291 72102866-910b-0410-8b05-ffd578937521
2003-12-30 15:29:16 +00:00
Adam Fedor
f8e452f888 Clear the current path after clipping
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17759 72102866-910b-0410-8b05-ffd578937521
2003-10-01 03:30:07 +00:00
Adam Fedor
ed70d604b6 Typo fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17673 72102866-910b-0410-8b05-ffd578937521
2003-09-15 14:21:34 +00:00
David Ayers
98036d3302 * Source/art/GNUmakefile: Do not make headers publilc.
* Source/gsc/GNUmakefile: Ditto.
        * Source/x11/GNUmakefile: Ditto.
        * Source/xdps/GNUmakefile: Ditto.
        * Source/xlib/GNUmakefile: Ditto.

        * Headers/win32/*.h: Update includes for new header structure.
        * Headers/winlib/*.h: Ditto.
        * Headers/x11/XGServer.h: Ditto.
        * Headers/xlib/*.h: Ditto.

        * Source/art/ftfont.m: Ditto.
        * Source/gsc/*.m: Ditto.
        * Source/x11/*.m: Ditto.
        * Source/xdps/*.m: Ditto.
        * Source/xlib/*.m: Ditto.

        * Tools/gpbs.m: Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17409 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:57:11 +00:00
Fred Kiefer
854dea7e2a In [GSCurrentCTM] autorelease the returned value.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17340 72102866-910b-0410-8b05-ffd578937521
2003-07-25 22:19:13 +00:00
Fred Kiefer
973eda60fc Implemented [GSSendBezierPath:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15042 72102866-910b-0410-8b05-ffd578937521
2002-11-21 20:31:09 +00:00
Adam Fedor
f6429ce1fc Focus fixes. Update passing of colorspaces, fonts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14680 72102866-910b-0410-8b05-ffd578937521
2002-10-09 03:01:09 +00:00
Fred Kiefer
97038af148 New method [currentPoint], gets used in [DPScurrentpoint::].
Corrected [DPSarc:::::] and [DPSarcn:::::] to draw the arc in user
space and transfrom it afterwards and implemented  [DPSarct:::::].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14365 72102866-910b-0410-8b05-ffd578937521
2002-08-28 22:04:23 +00:00
Alexander Malmberg
fe197f6b45 Optimize color handling by passing pointers instead of device_color_t structures.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14329 72102866-910b-0410-8b05-ffd578937521
2002-08-25 18:54:07 +00:00
Nicola Pero
9c5ed166aa Use standard NSAffineTransform methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13930 72102866-910b-0410-8b05-ffd578937521
2002-06-22 15:41:58 +00:00