Commit graph

36 commits

Author SHA1 Message Date
fedor
086c472fd3 * Source/NSAffineTransform.m (matrix_multiply): New function.
(appendTransform:, prependTransform:, rotateByRadians:,
scaleBy:, scaleXBy:yBy:, translateXBy:yBy:,
concatenateWithMatrix:): Use it.
(rotateByDegrees:) Use rotateByRadians:.  Fixes bug #13181.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21267 72102866-910b-0410-8b05-ffd578937521
2005-05-27 20:49:12 +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
fedor
1a7ef1d427 * Headers/AppKit/DPSOperators.h, Headers/AppKit/NSGraphics.h:
Modify selectors to play nice with C++ compiler.
* Headers/AppKit/NSAffineTransform.h, Headers/AppKit/NSFontManager.h,
Headers/AppKit/NSPageLayout.h: Modify arg name for same purpose.
* Source/NSAffineTransform.m, Source/NSFontManager.m,
Source/NSPageLayout.m: Modify to match header. (Patch from
Francis Franklin, with some modifications).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20930 72102866-910b-0410-8b05-ffd578937521
2005-03-20 04:35:12 +00:00
FredKiefer
802ae17b18 Further corrected last change. Thanks to Alexander M.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20692 72102866-910b-0410-8b05-ffd578937521
2005-02-12 10:22:36 +00:00
FredKiefer
fc67745f14 Corrected rectangle transforamtion to fix #11562.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20690 72102866-910b-0410-8b05-ffd578937521
2005-02-11 22:35:52 +00:00
alexm
45e9460fd6 2005-01-18 14:16 Alexander Malmberg <alexander@malmberg.org>
* Source/NSAffineTransform.m (pi): Correct the rounding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20576 72102866-910b-0410-8b05-ffd578937521
2005-01-18 13:26:00 +00:00
alexm
42df7674cd (-rotationAngle): Correct the sign of the angle and wrap it so that it's always >=0 and <=360.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18862 72102866-910b-0410-8b05-ffd578937521
2004-03-22 01:06:37 +00:00
FredKiefer
f3292b3044 Exchanged appendTransform: and prePendTransform:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18479 72102866-910b-0410-8b05-ffd578937521
2004-01-25 16:50:33 +00:00
gcasa
f8f8a9f869 More documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18325 72102866-910b-0410-8b05-ffd578937521
2004-01-07 03:20:19 +00:00
gcasa
10fa98ab2f Documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18309 72102866-910b-0410-8b05-ffd578937521
2004-01-04 07:26:50 +00:00
FredKiefer
00a5154834 Corrected affine transform struct element names and added some drawing functions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18288 72102866-910b-0410-8b05-ffd578937521
2003-12-30 12:42:37 +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
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
nico
f29ff45de8 Removed comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13949 72102866-910b-0410-8b05-ffd578937521
2002-06-22 17:01:14 +00:00
nico
01ee9aa6f1 Optimize for the case of unrotated views by removing rotationAngle. Case
of rotated views I think still needs debugging :-)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13946 72102866-910b-0410-8b05-ffd578937521
2002-06-22 16:53:20 +00:00
nico
59a2634ab1 Efficient implementation of isRotated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13944 72102866-910b-0410-8b05-ffd578937521
2002-06-22 16:21:46 +00:00
nico
f461567e1a Updated code - removed unused code, do not call a no longer existing method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13942 72102866-910b-0410-8b05-ffd578937521
2002-06-22 16:10:38 +00:00
nico
0734ffaccc Removed bloat method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13940 72102866-910b-0410-8b05-ffd578937521
2002-06-22 16:05:57 +00:00
nico
b21d6d013a Removed gnustep-only method which was never used and could easily be
replaced by calls to standard methods


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13936 72102866-910b-0410-8b05-ffd578937521
2002-06-22 15:57:50 +00:00
nico
8ed9df9ac0 Method which was a private duplicate of a public one removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13934 72102866-910b-0410-8b05-ffd578937521
2002-06-22 15:47:17 +00:00
fedor
53bd496a00 Split into Window server and graphic context handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13256 72102866-910b-0410-8b05-ffd578937521
2002-03-28 03:53:18 +00:00
fedor
c97710e1f6 New AppKit events. Updates for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12217 72102866-910b-0410-8b05-ffd578937521
2002-01-26 04:14:38 +00:00
fedor
c51f4265da Markup for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
2001-12-17 16:51:51 +00:00
fedor
7a02fcb251 Fixes to compile shared on Windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10611 72102866-910b-0410-8b05-ffd578937521
2001-07-30 21:30:51 +00:00
FredKiefer
06a1ef02fa [transformBezierPath:] autorelease the returned object.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8719 72102866-910b-0410-8b05-ffd578937521
2001-01-20 17:41:57 +00:00
nico
71820396a0 Changed getMatrixFromTransform: to takeMatrixFromTransform: to be
consistent with method naming conventions


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8620 72102866-910b-0410-8b05-ffd578937521
2001-01-16 13:09:31 +00:00
nico
0c31e0d2f4 Added method to quickly copy the matrix from one transform to another
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8610 72102866-910b-0410-8b05-ffd578937521
2001-01-16 12:30:02 +00:00
FredKiefer
fdfab261a1 Added new GS methods [concatenateWithMatrix:] and
[deltaPointInMatrixSpace:] to avoid the creation of a new
NSAffineTransform in the backend.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8496 72102866-910b-0410-8b05-ffd578937521
2001-01-08 01:04:21 +00:00
FredKiefer
c3b0028f40 Added coding methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8276 72102866-910b-0410-8b05-ffd578937521
2000-12-08 01:17:22 +00:00
fedor
f34100ac45 Merge from 0.6.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6040 72102866-910b-0410-8b05-ffd578937521
2000-02-19 00:40:47 +00:00
fedor
5caf79a568 Merge from dawn
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4853 72102866-910b-0410-8b05-ffd578937521
1999-09-09 02:56:20 +00:00
richard
c2b94f17d5 Tidied macro usage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4526 72102866-910b-0410-8b05-ffd578937521
1999-07-06 13:29:54 +00:00
fedor
0cf40509c4 Implement gstates in Windows and Views
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4414 72102866-910b-0410-8b05-ffd578937521
1999-06-16 21:55:23 +00:00
richard
34b869e2d0 Fixed minor error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3943 72102866-910b-0410-8b05-ffd578937521
1999-03-17 07:22:33 +00:00
richard
576950e10b Added checks on rectangle dimensions etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3891 72102866-910b-0410-8b05-ffd578937521
1999-03-10 13:34:29 +00:00
richard
44dc1e7090 Added NSAffineTransform
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3821 72102866-910b-0410-8b05-ffd578937521
1999-03-01 20:53:55 +00:00