Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

TEXT.H

Go to the documentation of this file.
00001 
00002 //
00003 //      Text.h
00004 //
00005 //      Include for Text.c
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 //      Structs
00021 
00022 // available fonts
00023 typedef enum
00024 {
00025         Font_Default = 0,
00026         Font_DefaultSelect,
00027         Font_Small,
00028         MAX_FONTS
00029 } FontType;
00030 
00031 // output styles
00032 typedef enum
00033 {
00034         Style_Center = 0,
00035         Style_LeftJustify,
00036         Style_RightJustify,
00037 } FontStyle;
00038 
00039 
00041 //      Prototypes
00043 
00044 // create everything required for text output
00045 extern geBoolean Text_Create(
00046         geEngine        *SaveEngine );  // engine used for output, which gets saved
00047 
00048 // free everything
00049 extern geBoolean Text_Destroy(
00050         void ); // no parameters
00051 
00052 // output a text string
00053 extern geBoolean Text_Out(
00054         char            *Text,          // string to output
00055         FontType        Font,           // font to use
00056         int32           x,                      // x location
00057         int32           y,                      // y location
00058         FontStyle       Style );        // output stylea
00059 
00060 // get the width of a font
00061 extern int32 Text_GetWidth(
00062         FontType        Font ); // font whose width we want
00063 
00064 // get the height of a font
00065 extern int32 Text_GetHeight(
00066         FontType        Font ); // font whose height we want
00067 
00068 
00069 #ifdef __cplusplus
00070         }
00071 #endif
00072 
00073 #endif

Generated on Tue Sep 30 12:36:29 2003 for GTestAndEngine by doxygen 1.3.2