#include <GP.h> /* or */ #include <text/GP_Text.h> /* Where the text should be drawn relatively to the specified point */ typedef enum GP_TextAlign { GP_ALIGN_LEFT = 0x01, /* to the left from the point */ GP_ALIGN_CENTER = 0x02, /* centered on the point */ GP_ALIGN_RIGHT = 0x03, /* to the right from the point */ GP_VALIGN_ABOVE = 0x10, /* above the point */ GP_VALIGN_CENTER = 0x20, /* centered on the point */ GP_VALIGN_BASELINE = 0x30, /* baseline is on the point */ GP_VALIGN_BELOW = 0x40 /* below the point */ } GP_TextAlign; void GP_Text(GP_Context *context, const GP_TextStyle *style, GP_Coord x, GP_Coord y, int align, GP_Pixel fg, GP_Pixel bg, const char *str); GP_Size GP_Print(GP_Context *context, const GP_TextStyle *style, GP_Coord x, GP_Coord y, int align, GP_Pixel fg, GP_Pixel bg, const char *fmt, ...); GP_Size GP_VPrint(GP_Context *context, const GP_TextStyle *style, GP_Coord x, GP_Coord y, int align, GP_Pixel fg, GP_Pixel bg, const char *fmt, va_list va);