module lib.sdl2.ttf

Code Map

module lib.sdl2.ttf;


enum SDL_TTF_MAJOR_VERSION;
enum SDL_TTF_MINOR_VERSION;
enum SDL_TTF_PATCHLEVEL;
enum UNICODE_BOM_NATIVE;
enum UNICODE_BOM_SWAPPED;
enum TTF_STYLE_NORMAL;
enum TTF_STYLE_BOLD;
enum TTF_STYLE_ITALIC;
enum TTF_STYLE_UNDERLINE;
enum TTF_STYLE_STRIKETHROUGH;
enum TTF_HINTING_NORMAL;
enum TTF_HINTING_LIGHT;
enum TTF_HINTING_MONO;
enum TTF_HINTING_NONE;

struct TTF_Font
{
}

fn TTF_ByteSwappedUNICODE(swapped: i32);
fn TTF_Init() i32;
fn TTF_OpenFont(file: const(const(char)*), ptsize: i32) TTF_Font*;
fn TTF_OpenFontIndex(file: const(const(char)*), ptsize: i32, index: i32) TTF_Font*;
fn TTF_OpenFontRW(src: SDL_RWops*, freesrc: i32, ptsize: i32) TTF_Font*;
fn TTF_OpenFontIndexRW(src: SDL_RWops*, freesrc: i32, ptsize: i32, index: i32) TTF_Font*;
fn TTF_GetFontStyle(font: const(const(TTF_Font)*)) i32;
fn TTF_SetFontStyle(font: TTF_Font*, style: i32);
fn TTF_GetFontOutline(font: const(const(TTF_Font)*)) i32;
fn TTF_SetFontOutline(font: TTF_Font*, outline: i32);
fn TTF_GetFontHinting(font: const(const(TTF_Font)*)) i32;
fn TTF_SetFontHinting(font: TTF_Font*, hinting: i32);
fn TTF_FontHeight(font: const(const(TTF_Font)*)) i32;
fn TTF_FontAscent(font: const(const(TTF_Font)*)) i32;
fn TTF_FontDescent(font: const(const(TTF_Font)*)) i32;
fn TTF_FontLineSkip(font: const(const(TTF_Font)*)) i32;
fn TTF_GetFontKerning(font: const(const(TTF_Font)*)) i32;
fn TTF_SetFontKerning(font: TTF_Font*, allowed: i32);
fn TTF_FontFaces(font: const(const(TTF_Font)*)) i64;
fn TTF_FontFaceIsFixedWidth(font: const(const(TTF_Font)*)) i32;
fn TTF_FontFaceFamilyName(font: const(const(TTF_Font)*)) char*;
fn TTF_FontFaceStyleName(font: const(const(TTF_Font)*)) char*;
fn TTF_GlyphIsProvided(font: const(const(TTF_Font)*), ch: Uint16) i32;
fn TTF_GlyphMetrics(font: TTF_Font*, ch: Uint16, minx: i32*, maxx: i32*, miny: i32*, maxy: i32*, advance: i32*) i32;
fn TTF_SizeText(font: TTF_Font*, text: const(const(char)*), w: i32*, h: i32*) i32;
fn TTF_SizeUTF8(font: TTF_Font*, text: const(const(char)*), w: i32*, h: i32*) i32;
fn TTF_SizeUNICODE(font: TTF_Font*, text: const(const(Uint16)*), w: i32*, h: i32*) i32;
fn TTF_RenderText_Solid(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color) SDL_Surface*;
fn TTF_RenderUTF8_Solid(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color) SDL_Surface*;
fn TTF_RenderUNICODE_Solid(font: TTF_Font*, text: const(const(Uint16)*), fg: SDL_Color) SDL_Surface*;
fn TTF_RenderGlyph_Solid(font: TTF_Font*, ch: Uint16, fg: SDL_Color) SDL_Surface*;
fn TTF_RenderText_Shaded(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color, bg: SDL_Color) SDL_Surface*;
fn TTF_RenderUTF8_Shaded(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color, bg: SDL_Color) SDL_Surface*;
fn TTF_RenderUNICODE_Shaded(font: TTF_Font*, text: const(const(Uint16)*), fg: SDL_Color, bg: SDL_Color) SDL_Surface*;
fn TTF_RenderGlyph_Shaded(font: TTF_Font*, ch: Uint16, fg: SDL_Color, bg: SDL_Color) SDL_Surface*;
fn TTF_RenderText_Blended(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color) SDL_Surface*;
fn TTF_RenderUTF8_Blended(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color) SDL_Surface*;
fn TTF_RenderUNICODE_Blended(font: TTF_Font*, text: const(const(Uint16)*), fg: SDL_Color) SDL_Surface*;
fn TTF_RenderText_Blended_Wrapped(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color, wrapLength: Uint32) SDL_Surface*;
fn TTF_RenderUTF8_Blended_Wrapped(font: TTF_Font*, text: const(const(char)*), fg: SDL_Color, wrapLength: Uint32) SDL_Surface*;
fn TTF_RenderUNICODE_Blended_Wrapped(font: TTF_Font*, text: const(const(Uint16)*), fg: SDL_Color, wrapLength: Uint32) SDL_Surface*;
fn TTF_RenderGlyph_Blended(font: TTF_Font*, ch: Uint16, fg: SDL_Color) SDL_Surface*;
fn TTF_CloseFont(font: TTF_Font*);
fn TTF_Quit();
fn TTF_WasInit() i32;
fn TTF_GetFontKerningSize(font: TTF_Font*, prev_index: i32, index: i32) i32;
fn TTF_GetFontKerningSizeGlyphs(font: TTF_Font*, previous_ch: Uint16, ch: Uint16) i32;