1 /* 2 ****************************************************************** 3 ****************************************************************** 4 ******* ******** 5 ****** (C) 1988-2010 Tecplot, Inc. ******* 6 ******* ******** 7 ****************************************************************** 8 ****************************************************************** 9 */ 10 11 #if defined EXTERN 12 #undef EXTERN 13 #endif 14 #if defined TEXTMODULE 15 #define EXTERN 16 #else 17 #define EXTERN extern 18 #endif 19 20 #define _TEXT_H_INCLUDED 21 22 /* These macros for checking CoordSys_e and Units of text objects (i.e., those associated with the text tool). */ 23 #define VALID_TEXT_COORDSYS(sys) (((sys)==CoordSys_Frame)||((sys)==CoordSys_Grid)||((sys)==CoordSys_Grid3D)) 24 #define VALID_TEXT_UNITS(units) (((units)==Units_Grid)||((units)==Units_Frame)||((units)==Units_Point)) 25 #define VALID_TEXT_COORDSYS_AND_UNITS(pos_sys, size_units) \ 26 ( VALID_TEXT_COORDSYS((pos_sys)) && \ 27 VALID_TEXT_UNITS((size_units)) && \ 28 ! ((pos_sys) == CoordSys_Frame && (size_units) == Units_Grid) ) 29 30 /* This is for any type of font in Tecplot. */ 31 #define VALID_FONT_SIZEUNITS(units) (((units)==Units_Grid)||((units)==Units_Frame)||((units)==Units_Point)||(units)==Units_AxisPercentage) 32 33 #if defined TECPLOTKERNEL 34 /* CORE SOURCE CODE REMOVED */ 35 #if 0 /* contract template */ 36 #endif 37 #if 0 /* contract template */ 38 #endif 39 #endif /* TECPLOTKERNEL */ 40