#include "SDL.h"#include "begin_code.h"#include "config.h"#include "close_code.h"Include dependency graph for SDL_ttf.h:

Go to the source code of this file.
Defines | |
| #define | SDL_TTF_MAJOR_VERSION 2 |
| #define | SDL_TTF_MINOR_VERSION 0 |
| #define | SDL_TTF_PATCHLEVEL 7 |
| #define | SDL_TTF_VERSION(X) |
| #define | TTF_MAJOR_VERSION SDL_TTF_MAJOR_VERSION |
| #define | TTF_MINOR_VERSION SDL_TTF_MINOR_VERSION |
| #define | TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL |
| #define | TTF_VERSION(X) SDL_TTF_VERSION(X) |
| #define | UNICODE_BOM_NATIVE 0xFEFF |
| #define | UNICODE_BOM_SWAPPED 0xFFFE |
| #define | TTF_STYLE_NORMAL 0x00 |
| #define | TTF_STYLE_BOLD 0x01 |
| #define | TTF_STYLE_ITALIC 0x02 |
| #define | TTF_STYLE_UNDERLINE 0x04 |
| #define | TTF_RenderText(font, text, fg, bg) TTF_RenderText_Shaded(font, text, fg, bg) |
| #define | TTF_RenderUTF8(font, text, fg, bg) TTF_RenderUTF8_Shaded(font, text, fg, bg) |
| #define | TTF_RenderUNICODE(font, text, fg, bg) TTF_RenderUNICODE_Shaded(font, text, fg, bg) |
| #define | TTF_SetError SDL_SetError |
| #define | TTF_GetError SDL_GetError |
Typedefs | |
| typedef _TTF_Font | TTF_Font |
Functions | |
| DECLSPEC const SDL_version *SDLCALL | TTF_Linked_Version (void) |
| DECLSPEC void SDLCALL | TTF_ByteSwappedUNICODE (int swapped) |
| DECLSPEC int SDLCALL | TTF_Init (void) |
| DECLSPEC TTF_Font *SDLCALL | TTF_OpenFont (const char *file, int ptsize) |
| DECLSPEC TTF_Font *SDLCALL | TTF_OpenFontIndex (const char *file, int ptsize, long index) |
| DECLSPEC TTF_Font *SDLCALL | TTF_OpenFontRW (SDL_RWops *src, int freesrc, int ptsize) |
| DECLSPEC TTF_Font *SDLCALL | TTF_OpenFontIndexRW (SDL_RWops *src, int freesrc, int ptsize, long index) |
| DECLSPEC int SDLCALL | TTF_GetFontStyle (TTF_Font *font) |
| DECLSPEC void SDLCALL | TTF_SetFontStyle (TTF_Font *font, int style) |
| DECLSPEC int SDLCALL | TTF_FontHeight (TTF_Font *font) |
| DECLSPEC int SDLCALL | TTF_FontAscent (TTF_Font *font) |
| DECLSPEC int SDLCALL | TTF_FontDescent (TTF_Font *font) |
| DECLSPEC int SDLCALL | TTF_FontLineSkip (TTF_Font *font) |
| DECLSPEC long SDLCALL | TTF_FontFaces (TTF_Font *font) |
| DECLSPEC int SDLCALL | TTF_FontFaceIsFixedWidth (TTF_Font *font) |
| DECLSPEC char *SDLCALL | TTF_FontFaceFamilyName (TTF_Font *font) |
| DECLSPEC char *SDLCALL | TTF_FontFaceStyleName (TTF_Font *font) |
| DECLSPEC int SDLCALL | TTF_GlyphMetrics (TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance) |
| DECLSPEC int SDLCALL | TTF_SizeText (TTF_Font *font, const char *text, int *w, int *h) |
| DECLSPEC int SDLCALL | TTF_SizeUTF8 (TTF_Font *font, const char *text, int *w, int *h) |
| DECLSPEC int SDLCALL | TTF_SizeUNICODE (TTF_Font *font, const Uint16 *text, int *w, int *h) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderText_Solid (TTF_Font *font, const char *text, SDL_Color fg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderUTF8_Solid (TTF_Font *font, const char *text, SDL_Color fg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderUNICODE_Solid (TTF_Font *font, const Uint16 *text, SDL_Color fg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderGlyph_Solid (TTF_Font *font, Uint16 ch, SDL_Color fg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderText_Shaded (TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderUTF8_Shaded (TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderUNICODE_Shaded (TTF_Font *font, const Uint16 *text, SDL_Color fg, SDL_Color bg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderGlyph_Shaded (TTF_Font *font, Uint16 ch, SDL_Color fg, SDL_Color bg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderText_Blended (TTF_Font *font, const char *text, SDL_Color fg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderUTF8_Blended (TTF_Font *font, const char *text, SDL_Color fg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderUNICODE_Blended (TTF_Font *font, const Uint16 *text, SDL_Color fg) |
| DECLSPEC SDL_Surface *SDLCALL | TTF_RenderGlyph_Blended (TTF_Font *font, Uint16 ch, SDL_Color fg) |
| DECLSPEC void SDLCALL | TTF_CloseFont (TTF_Font *font) |
| DECLSPEC void SDLCALL | TTF_Quit (void) |
| DECLSPEC int SDLCALL | TTF_WasInit (void) |
| #define SDL_TTF_MAJOR_VERSION 2 |
| #define SDL_TTF_MINOR_VERSION 0 |
| #define SDL_TTF_PATCHLEVEL 7 |
| #define SDL_TTF_VERSION | ( | X | ) |
Value:
{ \
(X)->major = SDL_TTF_MAJOR_VERSION; \
(X)->minor = SDL_TTF_MINOR_VERSION; \
(X)->patch = SDL_TTF_PATCHLEVEL; \
}
| #define TTF_GetError SDL_GetError |
| #define TTF_MAJOR_VERSION SDL_TTF_MAJOR_VERSION |
| #define TTF_MINOR_VERSION SDL_TTF_MINOR_VERSION |
| #define TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL |
| #define TTF_RenderText | ( | font, | |||
| text, | |||||
| fg, | |||||
| bg | ) | TTF_RenderText_Shaded(font, text, fg, bg) |
| #define TTF_RenderUNICODE | ( | font, | |||
| text, | |||||
| fg, | |||||
| bg | ) | TTF_RenderUNICODE_Shaded(font, text, fg, bg) |
| #define TTF_RenderUTF8 | ( | font, | |||
| text, | |||||
| fg, | |||||
| bg | ) | TTF_RenderUTF8_Shaded(font, text, fg, bg) |
| #define TTF_SetError SDL_SetError |
| #define TTF_STYLE_BOLD 0x01 |
| #define TTF_STYLE_ITALIC 0x02 |
| #define TTF_STYLE_NORMAL 0x00 |
| #define TTF_STYLE_UNDERLINE 0x04 |
| #define TTF_VERSION | ( | X | ) | SDL_TTF_VERSION(X) |
| #define UNICODE_BOM_NATIVE 0xFEFF |
| #define UNICODE_BOM_SWAPPED 0xFFFE |
| typedef struct _TTF_Font TTF_Font |
| DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE | ( | int | swapped | ) |
| DECLSPEC void SDLCALL TTF_CloseFont | ( | TTF_Font * | font | ) |
| DECLSPEC int SDLCALL TTF_FontAscent | ( | TTF_Font * | font | ) |
| DECLSPEC int SDLCALL TTF_FontDescent | ( | TTF_Font * | font | ) |
| DECLSPEC char* SDLCALL TTF_FontFaceFamilyName | ( | TTF_Font * | font | ) |
| DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth | ( | TTF_Font * | font | ) |
| DECLSPEC long SDLCALL TTF_FontFaces | ( | TTF_Font * | font | ) |
| DECLSPEC char* SDLCALL TTF_FontFaceStyleName | ( | TTF_Font * | font | ) |
| DECLSPEC int SDLCALL TTF_FontHeight | ( | TTF_Font * | font | ) |
| DECLSPEC int SDLCALL TTF_FontLineSkip | ( | TTF_Font * | font | ) |
| DECLSPEC int SDLCALL TTF_GetFontStyle | ( | TTF_Font * | font | ) |
| DECLSPEC int SDLCALL TTF_GlyphMetrics | ( | TTF_Font * | font, | |
| Uint16 | ch, | |||
| int * | minx, | |||
| int * | maxx, | |||
| int * | miny, | |||
| int * | maxy, | |||
| int * | advance | |||
| ) |
| DECLSPEC int SDLCALL TTF_Init | ( | void | ) |
| DECLSPEC const SDL_version* SDLCALL TTF_Linked_Version | ( | void | ) |
| DECLSPEC TTF_Font* SDLCALL TTF_OpenFont | ( | const char * | file, | |
| int | ptsize | |||
| ) |
| DECLSPEC TTF_Font* SDLCALL TTF_OpenFontIndex | ( | const char * | file, | |
| int | ptsize, | |||
| long | index | |||
| ) |
| DECLSPEC TTF_Font* SDLCALL TTF_OpenFontIndexRW | ( | SDL_RWops * | src, | |
| int | freesrc, | |||
| int | ptsize, | |||
| long | index | |||
| ) |
| DECLSPEC TTF_Font* SDLCALL TTF_OpenFontRW | ( | SDL_RWops * | src, | |
| int | freesrc, | |||
| int | ptsize | |||
| ) |
| DECLSPEC void SDLCALL TTF_Quit | ( | void | ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderGlyph_Blended | ( | TTF_Font * | font, | |
| Uint16 | ch, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderGlyph_Shaded | ( | TTF_Font * | font, | |
| Uint16 | ch, | |||
| SDL_Color | fg, | |||
| SDL_Color | bg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderGlyph_Solid | ( | TTF_Font * | font, | |
| Uint16 | ch, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderText_Blended | ( | TTF_Font * | font, | |
| const char * | text, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderText_Shaded | ( | TTF_Font * | font, | |
| const char * | text, | |||
| SDL_Color | fg, | |||
| SDL_Color | bg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderText_Solid | ( | TTF_Font * | font, | |
| const char * | text, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderUNICODE_Blended | ( | TTF_Font * | font, | |
| const Uint16 * | text, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderUNICODE_Shaded | ( | TTF_Font * | font, | |
| const Uint16 * | text, | |||
| SDL_Color | fg, | |||
| SDL_Color | bg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderUNICODE_Solid | ( | TTF_Font * | font, | |
| const Uint16 * | text, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderUTF8_Blended | ( | TTF_Font * | font, | |
| const char * | text, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderUTF8_Shaded | ( | TTF_Font * | font, | |
| const char * | text, | |||
| SDL_Color | fg, | |||
| SDL_Color | bg | |||
| ) |
| DECLSPEC SDL_Surface* SDLCALL TTF_RenderUTF8_Solid | ( | TTF_Font * | font, | |
| const char * | text, | |||
| SDL_Color | fg | |||
| ) |
| DECLSPEC void SDLCALL TTF_SetFontStyle | ( | TTF_Font * | font, | |
| int | style | |||
| ) |
| DECLSPEC int SDLCALL TTF_SizeText | ( | TTF_Font * | font, | |
| const char * | text, | |||
| int * | w, | |||
| int * | h | |||
| ) |
| DECLSPEC int SDLCALL TTF_SizeUNICODE | ( | TTF_Font * | font, | |
| const Uint16 * | text, | |||
| int * | w, | |||
| int * | h | |||
| ) |
| DECLSPEC int SDLCALL TTF_SizeUTF8 | ( | TTF_Font * | font, | |
| const char * | text, | |||
| int * | w, | |||
| int * | h | |||
| ) |
| DECLSPEC int SDLCALL TTF_WasInit | ( | void | ) |
1.4.7