Adobe.com
Contents Suites Classes Class Index Member Index

AITimer.h

Go to the documentation of this file.
00001 #ifndef __AITimer__
00002 #define __AITimer__
00003 
00004 /*
00005  *        Name: AITimer.h
00006  *   $Revision: 5 $
00007  *      Author:
00008  *        Date:
00009  *     Purpose: Adobe Illustrator Timer Suite.
00010  *
00011  * ADOBE SYSTEMS INCORPORATED
00012  * Copyright 1986-2007 Adobe Systems Incorporated.
00013  * All rights reserved.
00014  *
00015  * NOTICE:  Adobe permits you to use, modify, and distribute this file 
00016  * in accordance with the terms of the Adobe license agreement 
00017  * accompanying it. If you have received this file from a source other 
00018  * than Adobe, then your use, modification, or distribution of it 
00019  * requires the prior written permission of Adobe.
00020  *
00021  */
00022 
00023 
00024 /*******************************************************************************
00025  **
00026  **     Imports
00027  **
00028  **/
00029 
00030 #ifndef __AITypes__
00031 #include "AITypes.h"
00032 #endif
00033 
00034 #ifndef __AIPlugin__
00035 #include "AIPlugin.h"
00036 #endif
00037 
00038 
00039 #include "AIHeaderBegin.h"
00040 
00044 /*******************************************************************************
00045  **
00046  ** Constants
00047  **
00048  **/
00049 
00050 #define kAITimerSuite                   "AI Timer Suite"
00051 #define kAITimerSuiteVersion    AIAPI_VERSION(5)
00052 #define kAITimerVersion                 kAITimerSuiteVersion
00053 
00054 
00057 #define kCallerAITimer                  "AI Timer"
00058 
00061 #define kSelectorAIGoTimer              "AI Go"
00062 
00064 #define kTicksPerSecond                 60
00065 
00066 
00067 /*******************************************************************************
00068  **
00069  ** Types
00070  **
00071  **/
00072 
00074 typedef struct _t_AITimerOpaque *AITimerHandle;
00075 
00077 typedef struct {
00079         SPMessageData d;
00081         AITimerHandle timer;
00082 } AITimerMessage;
00083 
00084 
00085 /*******************************************************************************
00086  **
00087  **     Suite Record
00088  **
00089  **/
00090 
00109 typedef struct {
00110 
00128         AIAPI AIErr (*AddTimer) ( SPPluginRef self, const char *name, ai::int32 period,
00129                                 AITimerHandle *timer );
00130 
00136         AIAPI AIErr (*GetTimerName) ( AITimerHandle timer, char **name );
00137 
00144         AIAPI AIErr (*GetTimerActive) ( AITimerHandle timer, AIBoolean *active );
00145 
00151         AIAPI AIErr (*SetTimerActive) ( AITimerHandle timer, AIBoolean active );
00152 
00158         AIAPI AIErr (*GetTimerPeriod) ( AITimerHandle timer, ai::int32 *period );
00159 
00165         AIAPI AIErr (*SetTimerPeriod) ( AITimerHandle timer, ai::int32 period );
00166 
00173         AIAPI AIErr (*GetTimerPlugin) ( AITimerHandle timer, SPPluginRef *plugin );
00174 
00180         AIAPI AIErr (*CountTimers) ( ai::int32 *count );
00181 
00187         AIAPI AIErr (*GetNthTimer) ( ai::int32 n, AITimerHandle *timer );
00188 
00189 } AITimerSuite;
00190 
00191 
00192 #include "AIHeaderEnd.h"
00193 
00194 
00195 #endif


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks