mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:50:37 +00:00
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
This commit is contained in:
parent
f5b2653492
commit
f794f819cf
12 changed files with 302 additions and 71 deletions
|
@ -101,8 +101,14 @@ static NSAffineTransformStruct identityTransform = {
|
|||
|
||||
- (void) concat
|
||||
{
|
||||
// PSconcat(self);
|
||||
[self subclassResponsibility: _cmd];
|
||||
float m[6];
|
||||
m[0] = matrix.m11;
|
||||
m[1] = matrix.m12;
|
||||
m[2] = matrix.m21;
|
||||
m[3] = matrix.m22;
|
||||
m[4] = matrix.tx;
|
||||
m[5] = matrix.ty;
|
||||
PSconcat(m);
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
@ -240,8 +246,14 @@ static NSAffineTransformStruct identityTransform = {
|
|||
|
||||
- (void) set
|
||||
{
|
||||
// PSsetmatrix(self);
|
||||
[self subclassResponsibility: _cmd];
|
||||
float m[6];
|
||||
m[0] = matrix.m11;
|
||||
m[1] = matrix.m12;
|
||||
m[2] = matrix.m21;
|
||||
m[3] = matrix.m22;
|
||||
m[4] = matrix.tx;
|
||||
m[5] = matrix.ty;
|
||||
PSsetmatrix(m);
|
||||
}
|
||||
|
||||
- (void) setTransformStruct: (NSAffineTransformStruct)val
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue