mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:10:48 +00:00
Added NSCoding Protocol and moved extension methods into seperate
interface. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8277 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c3b0028f40
commit
bced436a2d
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,7 @@ typedef struct {
|
||||||
float ty;
|
float ty;
|
||||||
} NSAffineTransformStruct;
|
} NSAffineTransformStruct;
|
||||||
|
|
||||||
@interface NSAffineTransform : NSObject <NSCopying>
|
@interface NSAffineTransform : NSObject <NSCopying, NSCoding>
|
||||||
{
|
{
|
||||||
@public
|
@public
|
||||||
NSAffineTransformStruct matrix;
|
NSAffineTransformStruct matrix;
|
||||||
|
@ -65,8 +65,10 @@ typedef struct {
|
||||||
- (NSSize) transformSize: (NSSize)aSize;
|
- (NSSize) transformSize: (NSSize)aSize;
|
||||||
- (NSAffineTransformStruct) transformStruct;
|
- (NSAffineTransformStruct) transformStruct;
|
||||||
- (void) translateXBy: (float)tranX yBy: (float)tranY;
|
- (void) translateXBy: (float)tranX yBy: (float)tranY;
|
||||||
|
@end
|
||||||
|
|
||||||
#ifndef NO_GNUSTEP
|
#ifndef NO_GNUSTEP
|
||||||
|
@interface NSAffineTransform (GNUstep)
|
||||||
+ (NSAffineTransform*) matrixFrom: (const float[6])matrix;
|
+ (NSAffineTransform*) matrixFrom: (const float[6])matrix;
|
||||||
- (void) translateToPoint: (NSPoint)point;
|
- (void) translateToPoint: (NSPoint)point;
|
||||||
- (void) rotateByAngle: (float)angle;
|
- (void) rotateByAngle: (float)angle;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue