PIPatternsSuite.h
Go to the documentation of this file.
00001 // ADOBE SYSTEMS INCORPORATED
00002 // Copyright  1993 - 2007 Adobe Systems Incorporated
00003 // All Rights Reserved
00004 //
00005 // NOTICE:  Adobe permits you to use, modify, and distribute this 
00006 // file in accordance with the terms of the Adobe license agreement
00007 // accompanying it.  If you have received this file from a source
00008 // other than Adobe, then your use, modification, or distribution
00009 // of it requires the prior written permission of Adobe.
00010 //-------------------------------------------------------------------
00025 #ifndef __PIPatternsSuite__
00026 #define __PIPatternsSuite__
00027 
00028 #if PRAGMA_ONCE
00029 #pragma once
00030 #endif
00031 
00032 #include "PIGeneral.h"
00033 #include "PIActions.h"
00034 #include "PIChannelPortsSuite.h"
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00040 /******************************************************************************/
00041 
00043 #define kPSPatternsSuite            "Photoshop Patterns Suite for Plug-ins"
00044 
00045 /******************************************************************************/
00046 
00047 #define kPSPatternsSuiteVersion1            1
00048 
00049 /******************************************************************************/
00050 
00051 typedef struct PatternSpec
00052 {
00053     PIChannelPort colorData[ 4 ];   
00055     PIChannelPort transparency;     
00057     int32 imageMode;                
00059     VRect bounds;                   
00061     int32 depth;                    
00063     const char *name;               
00065 } PatternSpec;
00066 
00067 /******************************************************************************/
00068 
00069 typedef struct PSPatternsSuite1
00070     {
00071     
00073     SPAPI SPErr (*CreateNewPatternPreset) ( const PatternSpec *newPatternSpec );
00074     
00076     SPAPI SPErr (*GetPatternCount) ( int32 *count );
00077     
00079     SPAPI SPErr (*GetPatternName) ( int32 index, ASZString *patternName );
00080     
00082     SPAPI SPErr (*GetPatternID) ( int32 index, char *patUIDstr, int32 maxStringLength );
00083     
00084     } PSPatternsSuite1;
00085 
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090 
00091 
00092 #endif  // __PIPatternsSuite__