mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
New support for NSGraphicsContext
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3802 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d7feaa84c0
commit
84f4f83e58
4 changed files with 4157 additions and 0 deletions
1815
Headers/gnustep/gui/DPSOperators.h
Normal file
1815
Headers/gnustep/gui/DPSOperators.h
Normal file
File diff suppressed because it is too large
Load diff
376
Headers/gnustep/gui/GSMethodTable.h
Normal file
376
Headers/gnustep/gui/GSMethodTable.h
Normal file
|
@ -0,0 +1,376 @@
|
|||
/* GSMethodTable.h - Definitions of PostScript methods for NSGraphicsContext
|
||||
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
Written by: Adam Fedor <fedor@gnu.org>
|
||||
Date: Nov 1998
|
||||
Updated by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
This file is part of the GNU Objective C User Interface library.
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambrvoidge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GSMethodTable_h_INCLUDE
|
||||
#define _GSMethodTable_h_INCLUDE
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
@class NSGraphicsContext;
|
||||
|
||||
typedef struct {
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Color operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPScurrentcmykcolor____)
|
||||
(NSGraphicsContext*, SEL, float*, float*, float*, float*);
|
||||
void (*DPSsetcmykcolor____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Data operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSclear)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScleartomark)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScopy_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPScount_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPScounttomark_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPSdup)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSexch)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSexecstack)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSget)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSindex_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSmark)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSnull)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSpop)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSput)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSroll__)
|
||||
(NSGraphicsContext*, SEL, int, int);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Font operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSFontDirectory)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSISOLatin1Encoding)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSSharedFontDirectory)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSStandardEncoding)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScurrentcacheparams)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScurrentfont)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSdefinefont)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSfindfont_)
|
||||
(NSGraphicsContext*, SEL, const char*);
|
||||
void (*DPSmakefont)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSscalefont_)
|
||||
(NSGraphicsContext*, SEL, float);
|
||||
void (*DPSselectfont__)
|
||||
(NSGraphicsContext*, SEL, const char*, float);
|
||||
void (*DPSsetfont_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSundefinefont_)
|
||||
(NSGraphicsContext*, SEL, const char*);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Gstate operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSconcat_)
|
||||
(NSGraphicsContext*, SEL, const float *);
|
||||
void (*DPScurrentdash)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScurrentflat_)
|
||||
(NSGraphicsContext*, SEL, float*);
|
||||
void (*DPScurrentgray_)
|
||||
(NSGraphicsContext*, SEL, float*);
|
||||
void (*DPScurrentgstate_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPScurrenthalftone)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScurrenthalftonephase__)
|
||||
(NSGraphicsContext*, SEL, float*, float*);
|
||||
void (*DPScurrenthsbcolor___)
|
||||
(NSGraphicsContext*, SEL, float*, float*, float*);
|
||||
void (*DPScurrentlinecap_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPScurrentlinejoin_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPScurrentlinewidth_)
|
||||
(NSGraphicsContext*, SEL, float*);
|
||||
void (*DPScurrentmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScurrentmiterlimit_)
|
||||
(NSGraphicsContext*, SEL, float*);
|
||||
void (*DPScurrentpoint__)
|
||||
(NSGraphicsContext*, SEL, float*, float*);
|
||||
void (*DPScurrentrgbcolor___)
|
||||
(NSGraphicsContext*, SEL, float*, float*, float*);
|
||||
void (*DPScurrentscreen)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScurrentstrokeadjust_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPScurrenttransfer)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSdefaultmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSgrestore)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSgrestoreall)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSgsave)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSgstate)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSinitgraphics)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSinitmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSrotate_)
|
||||
(NSGraphicsContext*, SEL, float);
|
||||
void (*DPSscale__)
|
||||
(NSGraphicsContext*, SEL, float, float);
|
||||
void (*DPSsetdash___)
|
||||
(NSGraphicsContext*, SEL, const float*, int, float);
|
||||
void (*DPSsetflat_)
|
||||
(NSGraphicsContext*, SEL, float);
|
||||
void (*DPSsetgray_)
|
||||
(NSGraphicsContext*, SEL, float);
|
||||
void (*DPSsetgstate_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSsethalftone)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSsethalftonephase__)
|
||||
(NSGraphicsContext*, SEL, float, float);
|
||||
void (*DPSsethsbcolor___)
|
||||
(NSGraphicsContext*, SEL, float, float, float);
|
||||
void (*DPSsetlinecap_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSsetlinejoin_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSsetlinewidth_)
|
||||
(NSGraphicsContext*, SEL, float);
|
||||
void (*DPSsetmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSsetmiterlimit_)
|
||||
(NSGraphicsContext*, SEL, float);
|
||||
void (*DPSsetrgbcolor___)
|
||||
(NSGraphicsContext*, SEL, float, float, float);
|
||||
void (*DPSsetscreen)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSsetstrokeadjust_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSsettransfer)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPStranslate__)
|
||||
(NSGraphicsContext*, SEL, float, float);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Matrix operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSconcatmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSdtransform____)
|
||||
(NSGraphicsContext*, SEL, float, float, float*, float*);
|
||||
void (*DPSidentmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSidtransform____)
|
||||
(NSGraphicsContext*, SEL, float, float, float*, float*);
|
||||
void (*DPSinvertmatrix)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSitransform____)
|
||||
(NSGraphicsContext*, SEL, float, float, float*, float*);
|
||||
void (*DPStransform____)
|
||||
(NSGraphicsContext*, SEL, float, float, float*, float*);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Opstack operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSgetboolean_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPSgetchararray__)
|
||||
(NSGraphicsContext*, SEL, int, char*);
|
||||
void (*DPSgetfloat_)
|
||||
(NSGraphicsContext*, SEL, float*);
|
||||
void (*DPSgetfloatarray__)
|
||||
(NSGraphicsContext*, SEL, int, float*);
|
||||
void (*DPSgetint_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPSgetintarray__)
|
||||
(NSGraphicsContext*, SEL, int, int*);
|
||||
void (*DPSgetstring_)
|
||||
(NSGraphicsContext*, SEL, char*);
|
||||
void (*DPSsendboolean_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSsendchararray__)
|
||||
(NSGraphicsContext*, SEL, const char*, int);
|
||||
void (*DPSsendfloat_)
|
||||
(NSGraphicsContext*, SEL, float);
|
||||
void (*DPSsendfloatarray__)
|
||||
(NSGraphicsContext*, SEL, const float*, int);
|
||||
void (*DPSsendint_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSsendintarray__)
|
||||
(NSGraphicsContext*, SEL, const int*, int);
|
||||
void (*DPSsendstring_)
|
||||
(NSGraphicsContext*, SEL, const char*);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Paint operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSashow___)
|
||||
(NSGraphicsContext*, SEL, float, float, const char*);
|
||||
void (*DPSawidthshow______)
|
||||
(NSGraphicsContext*, SEL, float, float, int, float, float, const char*);
|
||||
void (*DPScopypage)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSeofill)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSerasepage)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSfill)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSimage)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSimagemask)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSkshow_)
|
||||
(NSGraphicsContext*, SEL, const char*);
|
||||
void (*DPSrectfill____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float);
|
||||
void (*DPSrectstroke____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float);
|
||||
void (*DPSshow_)
|
||||
(NSGraphicsContext*, SEL, const char*);
|
||||
void (*DPSshowpage)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSstroke)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSstrokepath)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSueofill____)
|
||||
(NSGraphicsContext*, SEL, const char*, int, const char*, int);
|
||||
void (*DPSufill____)
|
||||
(NSGraphicsContext*, SEL, const char*, int, const char*, int);
|
||||
void (*DPSustroke____)
|
||||
(NSGraphicsContext*, SEL, const char*, int, const char*, int);
|
||||
void (*DPSustrokepath____)
|
||||
(NSGraphicsContext*, SEL, const char*, int, const char*, int);
|
||||
void (*DPSwidthshow____)
|
||||
(NSGraphicsContext*, SEL, float, float, int, const char*);
|
||||
void (*DPSxshow___)
|
||||
(NSGraphicsContext*, SEL, const char*, const float*, int);
|
||||
void (*DPSxyshow___)
|
||||
(NSGraphicsContext*, SEL, const char*, const float*, int);
|
||||
void (*DPSyshow___)
|
||||
(NSGraphicsContext*, SEL, const char*, const float*, int);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Path operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSarc_____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float, float);
|
||||
void (*DPSarcn_____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float, float);
|
||||
void (*DPSarct_____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float, float);
|
||||
void (*DPSarcto_________)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float, float, float*, float*, float*, float*);
|
||||
void (*DPScharpath__)
|
||||
(NSGraphicsContext*, SEL, const char*, int);
|
||||
void (*DPSclip)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSclippath)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSclosepath)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPScurveto______)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float, float, float);
|
||||
void (*DPSeoclip)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSeoviewclip)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSflattenpath)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSinitclip)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSinitviewclip)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSlineto__)
|
||||
(NSGraphicsContext*, SEL, float, float);
|
||||
void (*DPSmoveto__)
|
||||
(NSGraphicsContext*, SEL, float, float);
|
||||
void (*DPSnewpath)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSpathbbox____)
|
||||
(NSGraphicsContext*, SEL, float*, float*, float*, float*);
|
||||
void (*DPSpathforall)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSrcurveto______)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float, float, float);
|
||||
void (*DPSrectclip____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float);
|
||||
void (*DPSrectviewclip____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float);
|
||||
void (*DPSreversepath)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSrlineto__)
|
||||
(NSGraphicsContext*, SEL, float, float);
|
||||
void (*DPSrmoveto__)
|
||||
(NSGraphicsContext*, SEL, float, float);
|
||||
void (*DPSsetbbox____)
|
||||
(NSGraphicsContext*, SEL, float, float, float, float);
|
||||
void (*DPSviewclip)
|
||||
(NSGraphicsContext*, SEL);
|
||||
void (*DPSviewclippath)
|
||||
(NSGraphicsContext*, SEL);
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Window system ops */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPScurrentdrawingfunction_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
void (*DPScurrentgcdrawable____)
|
||||
(NSGraphicsContext*, SEL, void**, void**, int*, int*);
|
||||
void (*DPScurrentgcdrawablecolor_____)
|
||||
(NSGraphicsContext*, SEL, void**, void**, int*, int*, int*);
|
||||
void (*DPScurrentoffset__)
|
||||
(NSGraphicsContext*, SEL, int*, int*);
|
||||
void (*DPSsetdrawingfunction_)
|
||||
(NSGraphicsContext*, SEL, int);
|
||||
void (*DPSsetgcdrawable____)
|
||||
(NSGraphicsContext*, SEL, void*, void*, int, int);
|
||||
void (*DPSsetgcdrawablecolor_____)
|
||||
(NSGraphicsContext*, SEL, void*, void*, int, int, const int*);
|
||||
void (*DPSsetoffset__)
|
||||
(NSGraphicsContext*, SEL, short int, short int);
|
||||
void (*DPSsetrgbactual____)
|
||||
(NSGraphicsContext*, SEL, double, double, double, int*);
|
||||
void (*DPScapturegstate_)
|
||||
(NSGraphicsContext*, SEL, int*);
|
||||
} gsMethodTable;
|
||||
|
||||
#endif
|
309
Headers/gnustep/gui/NSGraphicsContext.h
Normal file
309
Headers/gnustep/gui/NSGraphicsContext.h
Normal file
|
@ -0,0 +1,309 @@
|
|||
/* NSGraphicsContext - Generic drawing DrawContext class.
|
||||
|
||||
Copyright (C) 1998,1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Date: Feb 1999
|
||||
Based on code by: Adam Fedor <fedor@gnu.org>
|
||||
Date: Nov 1998
|
||||
|
||||
This file is part of the GNU Objective C User interface library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _NSGraphicsContext_h_INCLUDE
|
||||
#define _NSGraphicsContext_h_INCLUDE
|
||||
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
#include <AppKit/GSMethodTable.h>
|
||||
|
||||
@class NSMutableData;
|
||||
@class NSDictionary;
|
||||
|
||||
//
|
||||
// Backing Store Types
|
||||
//
|
||||
typedef enum _NSBackingStoreType
|
||||
{
|
||||
NSBackingStoreRetained,
|
||||
NSBackingStoreNonretained,
|
||||
NSBackingStoreBuffered
|
||||
|
||||
} NSBackingStoreType;
|
||||
|
||||
//
|
||||
// Compositing operators
|
||||
//
|
||||
typedef enum _NSCompositingOperation
|
||||
{
|
||||
NSCompositeClear,
|
||||
NSCompositeCopy,
|
||||
NSCompositeSourceOver,
|
||||
NSCompositeSourceIn,
|
||||
NSCompositeSourceOut,
|
||||
NSCompositeSourceAtop,
|
||||
NSCompositeDataOver,
|
||||
NSCompositeDataIn,
|
||||
NSCompositeDataOut,
|
||||
NSCompositeDataAtop,
|
||||
NSCompositeXOR,
|
||||
NSCompositePlusDarker,
|
||||
NSCompositeHighlight,
|
||||
NSCompositePlusLighter
|
||||
|
||||
} NSCompositingOperation;
|
||||
|
||||
//
|
||||
// Window ordering
|
||||
//
|
||||
typedef enum _NSWindowOrderingMode
|
||||
{
|
||||
NSWindowAbove,
|
||||
NSWindowBelow,
|
||||
NSWindowOut
|
||||
|
||||
} NSWindowOrderingMode;
|
||||
|
||||
|
||||
@interface NSGraphicsContext : NSObject
|
||||
{
|
||||
NSDictionary *context_info;
|
||||
NSMutableData *context_data;
|
||||
|
||||
@public
|
||||
const gsMethodTable *methods;
|
||||
}
|
||||
|
||||
+ (NSGraphicsContext*) currentContext;
|
||||
+ (void) setCurrentContext: (NSGraphicsContext*)context;
|
||||
|
||||
- (void) flush;
|
||||
- (BOOL) isDrawingToScreen;
|
||||
- (void) restoreGraphicsState;
|
||||
- (void) saveGraphicsState;
|
||||
- (void) wait;
|
||||
@end
|
||||
|
||||
#ifndef NO_GNUSTEP
|
||||
@interface NSGraphicsContext (GNUstep)
|
||||
+ (void) setDefaultContextClass: (Class)defaultContextClass;
|
||||
+ (NSGraphicsContext*) defaultContextWithInfo: (NSDictionary *)info;
|
||||
- (id) initWithContextInfo: (NSDictionary *)info;
|
||||
- (void) destroyContext;
|
||||
- (NSMutableData *) mutableData;
|
||||
@end
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* GNUstep drawing engine extensions - these are the methods actually
|
||||
* called when one of the inline PostScript functions (like PSlineto())
|
||||
* is called.
|
||||
*/
|
||||
|
||||
@interface NSGraphicsContext (Ops)
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Color operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPScurrentcmykcolor: (float*)c : (float*)m : (float*)y : (float*)k ;
|
||||
- (void) DPSsetcmykcolor: (float)c : (float)m : (float)y : (float)k ;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Data operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPSclear;
|
||||
- (void) DPScleartomark;
|
||||
- (void) DPScopy: (int)n ;
|
||||
- (void) DPScount: (int *)n ;
|
||||
- (void) DPScounttomark: (int *)n ;
|
||||
- (void) DPSdup;
|
||||
- (void) DPSexch;
|
||||
- (void) DPSexecstack;
|
||||
- (void) DPSget;
|
||||
- (void) DPSindex: (int)i ;
|
||||
- (void) DPSmark;
|
||||
- (void) DPSmatrix;
|
||||
- (void) DPSnull;
|
||||
- (void) DPSpop;
|
||||
- (void) DPSput;
|
||||
- (void) DPSroll: (int)n : (int)j ;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Font operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPSFontDirectory;
|
||||
- (void) DPSISOLatin1Encoding;
|
||||
- (void) DPSSharedFontDirectory;
|
||||
- (void) DPSStandardEncoding;
|
||||
- (void) DPScurrentcacheparams;
|
||||
- (void) DPScurrentfont;
|
||||
- (void) DPSdefinefont;
|
||||
- (void) DPSfindfont: (const char *)name ;
|
||||
- (void) DPSmakefont;
|
||||
- (void) DPSscalefont: (float)size ;
|
||||
- (void) DPSselectfont: (const char *)name : (float)scale ;
|
||||
- (void) DPSsetfont: (int)f ;
|
||||
- (void) DPSundefinefont: (const char *)name ;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Gstate operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPSconcat: (const float*)m ;
|
||||
- (void) DPScurrentdash;
|
||||
- (void) DPScurrentflat: (float*)flatness ;
|
||||
- (void) DPScurrentgray: (float*)gray ;
|
||||
- (void) DPScurrentgstate: (int)gst ;
|
||||
- (void) DPScurrenthalftone;
|
||||
- (void) DPScurrenthalftonephase: (float*)x : (float*)y ;
|
||||
- (void) DPScurrenthsbcolor: (float*)h : (float*)s : (float*)b ;
|
||||
- (void) DPScurrentlinecap: (int *)linecap ;
|
||||
- (void) DPScurrentlinejoin: (int *)linejoin ;
|
||||
- (void) DPScurrentlinewidth: (float*)width ;
|
||||
- (void) DPScurrentmatrix;
|
||||
- (void) DPScurrentmiterlimit: (float*)limit ;
|
||||
- (void) DPScurrentpoint: (float*)x : (float*)y ;
|
||||
- (void) DPScurrentrgbcolor: (float*)r : (float*)g : (float*)b ;
|
||||
- (void) DPScurrentscreen;
|
||||
- (void) DPScurrentstrokeadjust: (int *)b ;
|
||||
- (void) DPScurrenttransfer;
|
||||
- (void) DPSdefaultmatrix;
|
||||
- (void) DPSgrestore;
|
||||
- (void) DPSgrestoreall;
|
||||
- (void) DPSgsave;
|
||||
- (void) DPSgstate;
|
||||
- (void) DPSinitgraphics;
|
||||
- (void) DPSinitmatrix;
|
||||
- (void) DPSrotate: (float)angle ;
|
||||
- (void) DPSscale: (float)x : (float)y ;
|
||||
- (void) DPSsetdash: (const float*)pat : (int)size : (float)offset ;
|
||||
- (void) DPSsetflat: (float)flatness ;
|
||||
- (void) DPSsetgray: (float)gray ;
|
||||
- (void) DPSsetgstate: (int)gst ;
|
||||
- (void) DPSsethalftone;
|
||||
- (void) DPSsethalftonephase: (float)x : (float)y ;
|
||||
- (void) DPSsethsbcolor: (float)h : (float)s : (float)b ;
|
||||
- (void) DPSsetlinecap: (int)linecap ;
|
||||
- (void) DPSsetlinejoin: (int)linejoin ;
|
||||
- (void) DPSsetlinewidth: (float)width ;
|
||||
- (void) DPSsetmatrix;
|
||||
- (void) DPSsetmiterlimit: (float)limit ;
|
||||
- (void) DPSsetrgbcolor: (float)r : (float)g : (float)b ;
|
||||
- (void) DPSsetscreen;
|
||||
- (void) DPSsetstrokeadjust: (int)b ;
|
||||
- (void) DPSsettransfer;
|
||||
- (void) DPStranslate: (float)x : (float)y ;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Matrix operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPSconcatmatrix;
|
||||
- (void) DPSdtransform: (float)x1 : (float)y1 : (float*)x2 : (float*)y2 ;
|
||||
- (void) DPSidentmatrix;
|
||||
- (void) DPSidtransform: (float)x1 : (float)y1 : (float*)x2 : (float*)y2 ;
|
||||
- (void) DPSinvertmatrix;
|
||||
- (void) DPSitransform: (float)x1 : (float)y1 : (float*)x2 : (float*)y2 ;
|
||||
- (void) DPStransform: (float)x1 : (float)y1 : (float*)x2 : (float*)y2 ;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Opstack operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPSgetboolean: (int *)it ;
|
||||
- (void) DPSgetchararray: (int)size : (char *)s ;
|
||||
- (void) DPSgetfloat: (float*)it ;
|
||||
- (void) DPSgetfloatarray: (int)size : (float*)a ;
|
||||
- (void) DPSgetint: (int *)it ;
|
||||
- (void) DPSgetintarray: (int)size : (int *)a ;
|
||||
- (void) DPSgetstring: (char *)s ;
|
||||
- (void) DPSsendboolean: (int)it ;
|
||||
- (void) DPSsendchararray: (const char *)s : (int)size ;
|
||||
- (void) DPSsendfloat: (float)it ;
|
||||
- (void) DPSsendfloatarray: (const float*)a : (int)size ;
|
||||
- (void) DPSsendint: (int)it ;
|
||||
- (void) DPSsendintarray: (const int *)a : (int)size ;
|
||||
- (void) DPSsendstring: (const char *)s ;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Paint operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPSashow: (float)x : (float)y : (const char *)s ;
|
||||
- (void) DPSawidthshow: (float)cx : (float)cy : (int)c : (float)ax : (float)ay : (const char *)s ;
|
||||
- (void) DPScopypage;
|
||||
- (void) DPSeofill;
|
||||
- (void) DPSerasepage;
|
||||
- (void) DPSfill;
|
||||
- (void) DPSimage;
|
||||
- (void) DPSimagemask;
|
||||
- (void) DPSkshow: (const char *)s ;
|
||||
- (void) DPSrectfill: (float)x : (float)y : (float)w : (float)h ;
|
||||
- (void) DPSrectstroke: (float)x : (float)y : (float)w : (float)h ;
|
||||
- (void) DPSshow: (const char *)s ;
|
||||
- (void) DPSshowpage;
|
||||
- (void) DPSstroke;
|
||||
- (void) DPSstrokepath;
|
||||
- (void) DPSueofill: (const char *)nums : (int)n : (const char *)ops : (int)l ;
|
||||
- (void) DPSufill: (const char *)nums : (int)n : (const char *)ops : (int)l ;
|
||||
- (void) DPSustroke: (const char *)nums : (int)n : (const char *)ops : (int)l ;
|
||||
- (void) DPSustrokepath: (const char *)nums : (int)n : (const char *)ops : (int)l ;
|
||||
- (void) DPSwidthshow: (float)x : (float)y : (int)c : (const char *)s ;
|
||||
- (void) DPSxshow: (const char *)s : (const float*)numarray : (int)size ;
|
||||
- (void) DPSxyshow: (const char *)s : (const float*)numarray : (int)size ;
|
||||
- (void) DPSyshow: (const char *)s : (const float*)numarray : (int)size ;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Path operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPSarc: (float)x : (float)y : (float)r : (float)angle1 : (float)angle2 ;
|
||||
- (void) DPSarcn: (float)x : (float)y : (float)r : (float)angle1 : (float)angle2 ;
|
||||
- (void) DPSarct: (float)x1 : (float)y1 : (float)x2 : (float)y2 : (float)r ;
|
||||
- (void) DPSarcto: (float)x1 : (float)y1 : (float)x2 : (float)y2 : (float)r : (float*)xt1 : (float*)yt1 : (float*)xt2 : (float*)yt2 ;
|
||||
- (void) DPScharpath: (const char *)s : (int)b ;
|
||||
- (void) DPSclip;
|
||||
- (void) DPSclippath;
|
||||
- (void) DPSclosepath;
|
||||
- (void) DPScurveto: (float)x1 : (float)y1 : (float)x2 : (float)y2 : (float)x3 : (float)y3 ;
|
||||
- (void) DPSeoclip;
|
||||
- (void) DPSeoviewclip;
|
||||
- (void) DPSflattenpath;
|
||||
- (void) DPSinitclip;
|
||||
- (void) DPSinitviewclip;
|
||||
- (void) DPSlineto: (float)x : (float)y ;
|
||||
- (void) DPSmoveto: (float)x : (float)y ;
|
||||
- (void) DPSnewpath;
|
||||
- (void) DPSpathbbox: (float*)llx : (float*)lly : (float*)urx : (float*)ury ;
|
||||
- (void) DPSpathforall;
|
||||
- (void) DPSrcurveto: (float)x1 : (float)y1 : (float)x2 : (float)y2 : (float)x3 : (float)y3 ;
|
||||
- (void) DPSrectclip: (float)x : (float)y : (float)w : (float)h ;
|
||||
- (void) DPSrectviewclip: (float)x : (float)y : (float)w : (float)h ;
|
||||
- (void) DPSreversepath;
|
||||
- (void) DPSrlineto: (float)x : (float)y ;
|
||||
- (void) DPSrmoveto: (float)x : (float)y ;
|
||||
- (void) DPSsetbbox: (float)llx : (float)lly : (float)urx : (float)ury ;
|
||||
- (void) DPSviewclip;
|
||||
- (void) DPSviewclippath;
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Window system ops */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
- (void) DPScurrentdrawingfunction: (int *)function ;
|
||||
- (void) DPScurrentgcdrawable: (void* *)gc : (void* *)draw : (int *)x : (int *)y ;
|
||||
- (void) DPScurrentgcdrawablecolor: (void* *)gc : (void* *)draw : (int *)x : (int *)y : (int *)colorInfo ;
|
||||
- (void) DPScurrentoffset: (int *)x : (int *)y ;
|
||||
- (void) DPSsetdrawingfunction: (int)function ;
|
||||
- (void) DPSsetgcdrawable: (void*)gc : (void*)draw : (int)x : (int)y ;
|
||||
- (void) DPSsetgcdrawablecolor: (void*)gc : (void*)draw : (int)x : (int)y : (const int *)colorInfo ;
|
||||
- (void) DPSsetoffset: (short int)x : (short int)y ;
|
||||
- (void) DPSsetrgbactual: (double)r : (double)g : (double)b : (int *)success ;
|
||||
- (void) DPScapturegstate: (int *)gst ;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* _NSGraphicsContext_h_INCLUDE */
|
||||
|
1657
Headers/gnustep/gui/PSOperators.h
Normal file
1657
Headers/gnustep/gui/PSOperators.h
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue