1 /* 2 * See Licensing and Copyright notice in naev.h 3 */ 4 5 6 7 #ifndef WGT_TEXT_H 8 # define WGT_TEXT_H 9 10 11 #include "font.h" 12 13 14 /** 15 * @brief The text widget data. 16 */ 17 typedef struct WidgetTextData_ { 18 char *text; /**< Text to display, using printMid if centered, else printText. */ 19 glFont* font; /**< Text font. */ 20 glColour colour; /**< Text colour. */ 21 int centered; /**< 1 if text is centered, 0 if it isn't. */ 22 } WidgetTextData; 23 24 25 /* Required functions. */ 26 void window_addText( const unsigned int wid, 27 const int x, const int y, /* position */ 28 const int w, const int h, /* size */ 29 const int centered, const char* name, /* text is centered? label name */ 30 glFont* font, const glColour* colour, const char* string ); /* font, colour and actual text */ 31 32 /* Misc functions. */ 33 void window_modifyText( const unsigned int wid, 34 const char* name, const char* newstring ); 35 36 37 #endif /* WGT_TEXT_H */ 38 39