package vendor:sdl2/ttf

Index

Variables (0)

This section is empty.

Procedures (74)
Procedure Groups (0)

This section is empty.

Types

Font ¶

Font :: struct($Key: typeid, $Value: typeid) where intrinsics.type_is_valid_map_key(Key) {}

Hinting ¶

Hinting :: enum i32 {
	NORMAL         = 0, 
	LIGHT          = 1, 
	MONO           = 2, 
	NONE           = 3, 
	LIGHT_SUBPIXEL = 4, 
}

Style ¶

Style :: distinct bit_set[StyleFlag; i32]

StyleFlag ¶

StyleFlag :: enum i32 {
	BOLD          = 0, 
	ITALIC        = 1, 
	UNDERLINE     = 2, 
	STRIKETHROUGH = 3, 
}

bool ¶

bool :: sdl2.bool

Constants

HINTING_LIGHT ¶

HINTING_LIGHT :: Hinting.LIGHT

HINTING_LIGHT_SUBPIXEL ¶

HINTING_LIGHT_SUBPIXEL :: Hinting.LIGHT_SUBPIXEL

HINTING_MONO ¶

HINTING_MONO :: Hinting.MONO

HINTING_NONE ¶

HINTING_NONE :: Hinting.NONE

HINTING_NORMAL ¶

HINTING_NORMAL :: Hinting.NORMAL

MAJOR_VERSION ¶

MAJOR_VERSION :: 2

MINOR_VERSION ¶

MINOR_VERSION :: 0

PATCHLEVEL ¶

PATCHLEVEL :: 18

STYLE_BOLD ¶

STYLE_BOLD :: Style{.BOLD}

STYLE_ITALIC ¶

STYLE_ITALIC :: Style{.ITALIC}

STYLE_NORMAL ¶

STYLE_NORMAL :: Style{}

STYLE_STRIKETHROUGH ¶

STYLE_STRIKETHROUGH :: Style{.STRIKETHROUGH}

STYLE_UNDERLINE ¶

STYLE_UNDERLINE :: Style{.UNDERLINE}

UNICODE_BOM_NATIVE ¶

UNICODE_BOM_NATIVE :: 0xFEFF

UNICODE_BOM_SWAPPED ¶

UNICODE_BOM_SWAPPED :: 0xFFFE

Variables

This section is empty.

Procedures

CloseFont ¶

CloseFont :: proc "cdecl" (font: ^Font) ---

FontAscent ¶

FontAscent :: proc "cdecl" (font: ^Font) -> i32 ---

FontDescent ¶

FontDescent :: proc "cdecl" (font: ^Font) -> i32 ---

FontFaceFamilyName ¶

FontFaceFamilyName :: proc "cdecl" (font: ^Font) -> cstring ---

FontFaceIsFixedWidth ¶

FontFaceIsFixedWidth :: proc "cdecl" (font: ^Font) -> i32 ---

FontFaceStyleName ¶

FontFaceStyleName :: proc "cdecl" (font: ^Font) -> cstring ---

FontFaces ¶

FontFaces :: proc "cdecl" (font: ^Font) -> i32 ---

FontHeight ¶

FontHeight :: proc "cdecl" (font: ^Font) -> i32 ---

FontLineSkip ¶

FontLineSkip :: proc "cdecl" (font: ^Font) -> i32 ---

GetFontHinting ¶

GetFontHinting :: proc "cdecl" (font: ^Font) -> Hinting ---

GetFontKerning ¶

GetFontKerning :: proc "cdecl" (font: ^Font) -> i32 ---

GetFontKerningSizeGlyphs ¶

GetFontKerningSizeGlyphs :: proc "cdecl" (font: ^Font, previous_ch, ch: u16) -> i32 ---

GetFontKerningSizeGlyphs32 ¶

GetFontKerningSizeGlyphs32 :: proc "cdecl" (font: ^Font, previous_ch, ch: rune) -> i32 ---

GetFontOutline ¶

GetFontOutline :: proc "cdecl" (font: ^Font) -> i32 ---

GetFontSDF ¶

GetFontSDF :: proc "cdecl" (font: ^Font) -> sdl2.bool ---

GetFontStyle ¶

GetFontStyle :: proc "cdecl" (font: ^Font) -> Style ---

GlyphIsProvided ¶

GlyphIsProvided :: proc "cdecl" (font: ^Font, ch: u16) -> i32 ---

GlyphIsProvided32 ¶

GlyphIsProvided32 :: proc "cdecl" (font: ^Font, ch: rune) -> i32 ---

GlyphMetrics ¶

GlyphMetrics :: proc "cdecl" (
	font:                   ^Font, 
	ch:                     u16, 
	minx, maxx, miny, maxy: ^i32, 
) -> i32 ---

GlyphMetrics32 ¶

GlyphMetrics32 :: proc "cdecl" (
	font:                   ^Font, 
	ch:                     rune, 
	minx, maxx, miny, maxy: ^i32, 
) -> i32 ---

Init ¶

Init :: proc "cdecl" () -> i32 ---

Linked_Version ¶

Linked_Version :: proc "cdecl" () -> ^sdl2.version ---

MeasureText ¶

MeasureText :: proc "cdecl" (font: ^Font, text: cstring, measure_width: i32, extent: ^i32, count: ^i32) -> i32 ---

MeasureUNICODE ¶

MeasureUNICODE :: proc "cdecl" (font: ^Font, text: [^]u16, measure_width: i32, extent: ^i32, count: ^i32) -> i32 ---

MeasureUTF8 ¶

MeasureUTF8 :: proc "cdecl" (font: ^Font, text: cstring, measure_width: i32, extent: ^i32, count: ^i32) -> i32 ---

OpenFont ¶

OpenFont :: proc "cdecl" (file: cstring, ptsize: i32) -> ^Font ---

OpenFontDPI ¶

OpenFontDPI :: proc "cdecl" (file: cstring, ptsize: i32, hdpi, vdpi: u32) -> ^Font ---

OpenFontDPIRW ¶

OpenFontDPIRW :: proc "cdecl" (src: ^sdl2.RWops, freesrc: sdl2.bool, ptsize: i32, hdpi, vdpi: u32) -> ^Font ---

OpenFontIndex ¶

OpenFontIndex :: proc "cdecl" (file: cstring, ptsize: i32, index: i32) -> ^Font ---

OpenFontIndexDPI ¶

OpenFontIndexDPI :: proc "cdecl" (file: cstring, ptsize: i32, index: i32, hdpi, vdpi: u32) -> ^Font ---

OpenFontIndexDPIRW ¶

OpenFontIndexDPIRW :: proc "cdecl" (
	src:     ^sdl2.RWops, 
	freesrc: sdl2.bool, 
	ptsize:  i32, 
	index:   i32, 
	hdpi, 
) -> ^Font ---

OpenFontIndexRW ¶

OpenFontIndexRW :: proc "cdecl" (src: ^sdl2.RWops, freesrc: sdl2.bool, ptsize: i32, index: i32) -> ^Font ---

OpenFontRW ¶

OpenFontRW :: proc "cdecl" (src: ^sdl2.RWops, freesrc: sdl2.bool, ptsize: i32) -> ^Font ---

Quit ¶

Quit :: proc "cdecl" () ---

RenderGlyph32_Blended ¶

RenderGlyph32_Blended :: proc "cdecl" (font: ^Font, ch: rune, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderGlyph32_Shaded ¶

RenderGlyph32_Shaded :: proc "cdecl" (font: ^Font, ch: rune, fg, bg: sdl2.Color) -> ^sdl2.Surface ---

RenderGlyph32_Solid ¶

RenderGlyph32_Solid :: proc "cdecl" (font: ^Font, ch: rune, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderGlyph_Blended ¶

RenderGlyph_Blended :: proc "cdecl" (font: ^Font, ch: u16, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderGlyph_Shaded ¶

RenderGlyph_Shaded :: proc "cdecl" (font: ^Font, ch: u16, fg, bg: sdl2.Color) -> ^sdl2.Surface ---

RenderGlyph_Solid ¶

RenderGlyph_Solid :: proc "cdecl" (font: ^Font, ch: u16, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderText ¶

RenderText :: proc "cdecl" (font: ^Font, text: cstring, fg, bg: sdl2.Color) -> ^sdl2.Surface {…}
 

For compatibility with previous versions, here are the old functions

RenderText_Blended ¶

RenderText_Blended :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderText_Blended_Wrapped ¶

RenderText_Blended_Wrapped :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderText_Shaded ¶

RenderText_Shaded :: proc "cdecl" (font: ^Font, text: cstring, fg, bg: sdl2.Color) -> ^sdl2.Surface ---

RenderText_Shaded_Wrapped ¶

RenderText_Shaded_Wrapped :: proc "cdecl" (font: ^Font, text: cstring, fg, bg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderText_Solid ¶

RenderText_Solid :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderText_Solid_Wrapped ¶

RenderText_Solid_Wrapped :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderUNICODE ¶

RenderUNICODE :: proc "cdecl" (font: ^Font, text: [^]u16, fg, bg: sdl2.Color) -> ^sdl2.Surface {…}

RenderUNICODE_Blended ¶

RenderUNICODE_Blended :: proc "cdecl" (font: ^Font, text: [^]u16, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderUNICODE_Blended_Wrapped ¶

RenderUNICODE_Blended_Wrapped :: proc "cdecl" (font: ^Font, text: [^]u16, fg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderUNICODE_Shaded ¶

RenderUNICODE_Shaded :: proc "cdecl" (font: ^Font, text: [^]u16, fg, bg: sdl2.Color) -> ^sdl2.Surface ---

RenderUNICODE_Shaded_Wrapped ¶

RenderUNICODE_Shaded_Wrapped :: proc "cdecl" (font: ^Font, text: [^]u16, fg, bg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderUNICODE_Solid ¶

RenderUNICODE_Solid :: proc "cdecl" (font: ^Font, text: [^]u16, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderUNICODE_Solid_Wrapped ¶

RenderUNICODE_Solid_Wrapped :: proc "cdecl" (font: ^Font, text: [^]u16, fg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderUTF8 ¶

RenderUTF8 :: proc "cdecl" (font: ^Font, text: cstring, fg, bg: sdl2.Color) -> ^sdl2.Surface {…}

RenderUTF8_Blended ¶

RenderUTF8_Blended :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderUTF8_Blended_Wrapped ¶

RenderUTF8_Blended_Wrapped :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderUTF8_Shaded ¶

RenderUTF8_Shaded :: proc "cdecl" (font: ^Font, text: cstring, fg, bg: sdl2.Color) -> ^sdl2.Surface ---

RenderUTF8_Shaded_Wrapped ¶

RenderUTF8_Shaded_Wrapped :: proc "cdecl" (font: ^Font, text: cstring, fg, bg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

RenderUTF8_Solid ¶

RenderUTF8_Solid :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color) -> ^sdl2.Surface ---

RenderUTF8_Solid_Wrapped ¶

RenderUTF8_Solid_Wrapped :: proc "cdecl" (font: ^Font, text: cstring, fg: sdl2.Color, wrapLength: u32) -> ^sdl2.Surface ---

SetDirection ¶

SetDirection :: proc "cdecl" (key: i32) -> i32 ---

SetFontHinting ¶

SetFontHinting :: proc "cdecl" (font: ^Font, hinting: Hinting) ---

SetFontKerning ¶

SetFontKerning :: proc "cdecl" (font: ^Font, allowed: sdl2.bool) ---

SetFontOutline ¶

SetFontOutline :: proc "cdecl" (font: ^Font, outline: i32) ---

SetFontSDF ¶

SetFontSDF :: proc "cdecl" (font: ^Font, on_off: sdl2.bool) -> i32 ---

SetFontSize ¶

SetFontSize :: proc "cdecl" (font: ^Font, ptsize: i32) -> i32 ---

SetFontSizeDPI ¶

SetFontSizeDPI :: proc "cdecl" (font: ^Font, ptsize: i32, hdpi, vdpi: u32) -> i32 ---

SetFontStyle ¶

SetFontStyle :: proc "cdecl" (font: ^Font, style: Style) ---

SetScript ¶

SetScript :: proc "cdecl" (key: i32) -> i32 ---

SizeText ¶

SizeText :: proc "cdecl" (font: ^Font, text: cstring, w, h: ^i32) -> i32 ---

SizeUNICODE ¶

SizeUNICODE :: proc "cdecl" (font: ^Font, text: [^]u16, w, h: ^i32) -> i32 ---

SizeUTF8 ¶

SizeUTF8 :: proc "cdecl" (font: ^Font, text: cstring, w, h: ^i32) -> i32 ---

WasInit ¶

WasInit :: proc "cdecl" () -> i32 ---

Procedure Groups

This section is empty.

Source Files

Generation Information

Generated with odin version dev-2022-10 (vendor "odin") Windows_amd64 @ 2022-10-05 21:11:47.633049200 +0000 UTC