00001
00002
00003
00004
00005
00006
00008 #ifndef TEXT_H
00009 #define TEXT_H
00010
00011 #include "Genesis.h"
00012
00013 #ifdef __cplusplus
00014 extern "C" {
00015 #endif
00016
00017
00019
00021
00022
00023 typedef enum
00024 {
00025 Font_Default = 0,
00026 Font_DefaultSelect,
00027 Font_Small,
00028 MAX_FONTS
00029 } FontType;
00030
00031
00032 typedef enum
00033 {
00034 Style_Center = 0,
00035 Style_LeftJustify,
00036 Style_RightJustify,
00037 } FontStyle;
00038
00039
00041
00043
00044
00045 extern geBoolean Text_Create(
00046 geEngine *SaveEngine );
00047
00048
00049 extern geBoolean Text_Destroy(
00050 void );
00051
00052
00053 extern geBoolean Text_Out(
00054 char *Text,
00055 FontType Font,
00056 int32 x,
00057 int32 y,
00058 FontStyle Style );
00059
00060
00061 extern int32 Text_GetWidth(
00062 FontType Font );
00063
00064
00065 extern int32 Text_GetHeight(
00066 FontType Font );
00067
00068
00069 #ifdef __cplusplus
00070 }
00071 #endif
00072
00073 #endif