Commit graph

123 commits

Author SHA1 Message Date
fredkiefer
81a8907f45 Fix small bug in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28996 72102866-910b-0410-8b05-ffd578937521
2009-11-13 07:51:58 +00:00
rfm
c5a5827272 fix copy/dealloc of named images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28993 72102866-910b-0410-8b05-ffd578937521
2009-11-12 12:44:40 +00:00
fredkiefer
6197db8247 Switch to the new shared composite and dissolve drawing code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28933 72102866-910b-0410-8b05-ffd578937521
2009-11-01 22:43:20 +00:00
fredkiefer
b3aacde1c3 Remove usage of NSDeallocateObject
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28789 72102866-910b-0410-8b05-ffd578937521
2009-10-10 14:10:52 +00:00
rfm
c560ba5eb2 Fix bug setting name of an image which already has a name. Added thread safety
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28743 72102866-910b-0410-8b05-ffd578937521
2009-09-27 08:54:03 +00:00
rfm
726ab25f1e revert last change and do proper fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28652 72102866-910b-0410-8b05-ffd578937521
2009-09-10 11:02:17 +00:00
rfm
e91677691b Fix error returning named images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28566 72102866-910b-0410-8b05-ffd578937521
2009-08-28 13:04:15 +00:00
rfm
81659ffe9f cast to fix warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28560 72102866-910b-0410-8b05-ffd578937521
2009-08-28 05:02:24 +00:00
rfm
e1cdeb9825 theme system image fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28554 72102866-910b-0410-8b05-ffd578937521
2009-08-27 06:03:16 +00:00
rfm
365fab266c Reorganize location of theme proxy code. Add some more comments too.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27831 72102866-910b-0410-8b05-ffd578937521
2009-02-10 14:32:08 +00:00
rfm
63df2fd582 add missing header line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27813 72102866-910b-0410-8b05-ffd578937521
2009-02-08 13:37:02 +00:00
rfm
d2e84c6da0 Use proxies for named images so that changes to images are nstantly reflected
when you change themes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27810 72102866-910b-0410-8b05-ffd578937521
2009-02-08 11:02:57 +00:00
wlux
6e29b26d1c Fix invalid return statements between NS_DURING and NS_HANDLER in
Source/NSImage.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27643 72102866-910b-0410-8b05-ffd578937521
2009-01-20 20:18:22 +00:00
fredkiefer
2d61169c80 Draw the background colour even when it is the clear colour.
(Fixes issue on xlib backend)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27302 72102866-910b-0410-8b05-ffd578937521
2008-12-16 08:00:29 +00:00
fredkiefer
86e5b297ae Don't invalidate valid cached representations. The new cache would have
exactly the same contents.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27295 72102866-910b-0410-8b05-ffd578937521
2008-12-15 17:14:30 +00:00
fredkiefer
545799e46c Reorganize image caching code to make it easier to understand and
change. And a bit faster too.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27286 72102866-910b-0410-8b05-ffd578937521
2008-12-13 19:32:54 +00:00
fredkiefer
83c47a9e6f Get the device description for an NSImage representation from the window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27074 72102866-910b-0410-8b05-ffd578937521
2008-11-16 23:21:58 +00:00
fedor
ce41d782c1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
fredkiefer
c3c507203b Two small bug fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25748 72102866-910b-0410-8b05-ffd578937521
2007-12-15 14:36:28 +00:00
fredkiefer
ff79c63530 Tread a zero source rectangle as the full image and clip to the
image bounds.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25649 72102866-910b-0410-8b05-ffd578937521
2007-11-30 19:52:26 +00:00
fredkiefer
e25cceb710 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
fredkiefer
66fcff3b42 GUI part of the graphics context rewrite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24966 72102866-910b-0410-8b05-ffd578937521
2007-04-04 14:33:39 +00:00
fredkiefer
8303f207ed When requesting a tiff representation for an image where there is no
bitmap representation, create one. Idea by Renaud Molla
<renaud.molla@wanadoo.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24820 72102866-910b-0410-8b05-ffd578937521
2007-03-08 09:35:09 +00:00
fedor
034ba7d08f * TextConverters/RTF/GNUmakefile.preamble: Add BUNDLE_LIBS.
* Source/NSImage.m: Move documentation from here.
* Header/AppKit/NSImage.h: To here.
* Headers/AppKit/NSImageRep.h, : Add documentation. (patch #5714).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24495 72102866-910b-0410-8b05-ffd578937521
2007-02-10 03:45:22 +00:00
rfm
65f7efa8fd Move main part of affine transform code to base for MacOS-X compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24133 72102866-910b-0410-8b05-ffd578937521
2006-11-19 11:32:51 +00:00
rfm
30182a3f19 documentation cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24035 72102866-910b-0410-8b05-ffd578937521
2006-11-06 13:58:37 +00:00
gcasa
23598a0fb5 * Source/NSFont.m: Apply slightly modified version of patch
from Jeff Teunissen deek@d2dc.net to setNSFont().  Setting
	a font should set its size.
	* Source/NSImage.m: Set the alpha on the background when printing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23894 72102866-910b-0410-8b05-ffd578937521
2006-10-17 01:00:47 +00:00
rfm
cc3cafa874 tidyups and minor theme tiling updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23871 72102866-910b-0410-8b05-ffd578937521
2006-10-15 08:34:47 +00:00
gcasa
2c0aad513e Implement encoding for these objects and correct issue with font size encoding. It was encoded/decoded as an int when it should have been a float.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23226 72102866-910b-0410-8b05-ffd578937521
2006-08-09 05:48:54 +00:00
gcasa
1a8528922e Correction for GSNibCompatibility. Added coding to classes for keyed archiving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23225 72102866-910b-0410-8b05-ffd578937521
2006-08-09 01:37:32 +00:00
rfm
2ed1c70692 Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
Fabien_
5cb675303f Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22096 72102866-910b-0410-8b05-ffd578937521
2005-11-24 13:48:41 +00:00
CaS
6988bf34c2 Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22019 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:34:25 +00:00
FredKiefer
e692c0a7f0 Take care that images render to the correct screen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21963 72102866-910b-0410-8b05-ffd578937521
2005-11-06 19:37:27 +00:00
FredKiefer
e77945d7e9 Added methods for pattern colour and alpha image composition.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21436 72102866-910b-0410-8b05-ffd578937521
2005-07-08 23:51:49 +00:00
fedor
db3c52eab8 Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
alexm
5a9c710034 2005-02-03 10:54 Alexander Malmberg <alexander@malmberg.org>
* Source/NSImage.m (min, max): Rename to ...
	(gs_min, gs_max): ... this. Update callers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20650 72102866-910b-0410-8b05-ffd578937521
2005-02-03 09:47:38 +00:00
alexm
75f09619e9 2005-01-25 00:29 Alexander Malmberg <alexander@malmberg.org>
* Headers/AppKit/NSImage.h (-drawAtPoint:fromRect:fraction:)
	(-drawInRect:fromRect:operation:fraction:): Document.
	* Source/NSImage.m -drawAtPoint:fromRect:fraction:)
	(-drawInRect:fromRect:operation:fraction:): Implement.
	(min, max): New functions.
	(-drawRepresentation:inRect:): Save the gstate before drawing
	and restore it afterwards.

	Fixes bug #11712.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20611 72102866-910b-0410-8b05-ffd578937521
2005-01-24 23:28:07 +00:00
alexm
703173d8c5 2004-10-30 Alex Perez <aperez@student.santarosa.edu>
* Headers/AppKit/NSImage.h (+_standardImageWithName:): New method.
	* Source/NSImage.m (+_standardImageWithName:): New method.
	* Source/NSWorkspace.m (_getImageForName:alternate:): Remove. Update
	callers to use +_standardImageWithName: instead.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20270 72102866-910b-0410-8b05-ffd578937521
2004-10-30 11:19:07 +00:00
FredKiefer
45b6e203cd Some more keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20216 72102866-910b-0410-8b05-ffd578937521
2004-10-10 22:36:02 +00:00
alexm
77b497ee12 (-size): Don't try to get the size if rep is nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19403 72102866-910b-0410-8b05-ffd578937521
2004-05-26 23:42:48 +00:00
alexm
0759f5093f Make private symbols actually private (1/n).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18007 72102866-910b-0410-8b05-ffd578937521
2003-10-30 00:23:23 +00:00
ayers
9732999fd8 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
FredKiefer
2ca3fadbdd In [initWithIconHandle:] and [initWithBitmapHandle:] release the
new bitmap image representation after adding it to the array.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17338 72102866-910b-0410-8b05-ffd578937521
2003-07-25 22:14:40 +00:00
FredKiefer
fe2421f135 Corrected handling of pasteboard data of type NSFilenamesPboardType.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17015 72102866-910b-0410-8b05-ffd578937521
2003-06-24 22:57:12 +00:00
fedor
fc402789db Include <> -> ""
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
fedor
ac8269a377 Updates for filesystem change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16566 72102866-910b-0410-8b05-ffd578937521
2003-04-28 02:33:10 +00:00
nico
f454a9a289 Fixed compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15775 72102866-910b-0410-8b05-ffd578937521
2003-01-30 04:29:00 +00:00
fedor
1be2da657e Update image caching for printing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15666 72102866-910b-0410-8b05-ffd578937521
2003-01-21 05:08:26 +00:00
FredKiefer
73c54f7230 Moved method [NSBundle pathForImageResource:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14559 72102866-910b-0410-8b05-ffd578937521
2002-09-25 22:55:44 +00:00