00001 /***************************************************************************** 00002 * 00003 * \file mi32/textmetrics.h 00004 * \brief Structure for holding text metrics 00005 * 00006 * \if NODOC 00007 * $Log: textmetrics.h_v $ 00008 * Revision 1.2 2005/07/14 17:39:29 mju 00009 * Remove unneeded hdrs. 00010 * 00011 * Revision 1.1 2005/03/07 16:39:39 dwilliss 00012 * Initial revision 00013 * 00014 * \endif 00015 */ 00016 00017 #ifndef INC_MI32_TEXTMETRICS_H 00018 #define INC_MI32_TEXTMETRICS_H 00019 00020 #ifndef INC_MEMORY_H 00021 #include <mi32/memory.h> // for memset 00022 #define INC_MEMORY_H 00023 #endif 00024 00037 struct TEXTMETRICS { 00038 int Width; 00039 int Height; 00040 int FirstLineAscent; 00041 int LastLineDescent; 00042 int MaxFontAscent; 00043 int MaxFontDescent; 00044 int UniformHeight; 00045 00047 TEXTMETRICS ( 00048 ) { 00049 Clear(); 00050 } 00051 00052 void Clear ( 00053 ) { 00054 memset(this, 0, sizeof(TEXTMETRICS)); 00055 } 00056 }; 00057 00058 00059 00060 #endif // INC_MI32_TEXTMETRICS_H 00061
1.6.1