package vendor:sdl2/ttf

⌘K
Ctrl+K
or
/

    Index

    Variables (0)

    This section is empty.

    Procedures (74)
    Procedure Groups (0)

    This section is empty.

    Types

    Hinting ¶

    Hinting :: enum i32 {
    	NORMAL         = 0, 
    	LIGHT          = 1, 
    	MONO           = 2, 
    	NONE           = 3, 
    	LIGHT_SUBPIXEL = 4, 
    }
    Related Procedures With Parameters
    Related Procedures With Returns
    Related Constants

    Style ¶

    Style :: distinct bit_set[StyleFlag; i32]
    Related Procedures With Parameters
    Related Procedures With Returns
    Related Constants

    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 "c" (font: ^Font) ---

    FontAscent ¶

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

    FontDescent ¶

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

    FontFaceFamilyName ¶

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

    FontFaceIsFixedWidth ¶

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

    FontFaceStyleName ¶

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

    FontFaces ¶

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

    FontHeight ¶

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

    FontLineSkip ¶

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

    GetFontHinting ¶

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

    GetFontKerning ¶

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

    GetFontKerningSizeGlyphs ¶

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

    GetFontKerningSizeGlyphs32 ¶

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

    GetFontOutline ¶

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

    GetFontSDF ¶

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

    GetFontStyle ¶

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

    GlyphIsProvided ¶

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

    GlyphIsProvided32 ¶

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

    GlyphMetrics ¶

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

    GlyphMetrics32 ¶

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

    Init ¶

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

    Linked_Version ¶

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

    MeasureText ¶

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

    MeasureUNICODE ¶

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

    MeasureUTF8 ¶

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

    OpenFont ¶

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

    OpenFontDPI ¶

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

    OpenFontDPIRW ¶

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

    OpenFontIndex ¶

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

    OpenFontIndexDPI ¶

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

    OpenFontIndexDPIRW ¶

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

    OpenFontIndexRW ¶

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

    OpenFontRW ¶

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

    Quit ¶

    Quit :: proc "c" () ---

    RenderGlyph32_Blended ¶

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

    RenderGlyph32_Shaded ¶

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

    RenderGlyph32_Solid ¶

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

    RenderGlyph_Blended ¶

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

    RenderGlyph_Shaded ¶

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

    RenderGlyph_Solid ¶

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

    RenderText ¶

    RenderText :: proc "c" (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 "c" (font: ^Font, text: cstring, fg: sdl2.Color) -> ^sdl2.Surface ---

    RenderText_Blended_Wrapped ¶

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

    RenderText_Shaded ¶

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

    RenderText_Shaded_Wrapped ¶

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

    RenderText_Solid ¶

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

    RenderText_Solid_Wrapped ¶

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

    RenderUNICODE ¶

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

    RenderUNICODE_Blended ¶

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

    RenderUNICODE_Blended_Wrapped ¶

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

    RenderUNICODE_Shaded ¶

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

    RenderUNICODE_Shaded_Wrapped ¶

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

    RenderUNICODE_Solid ¶

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

    RenderUNICODE_Solid_Wrapped ¶

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

    RenderUTF8 ¶

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

    RenderUTF8_Blended ¶

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

    RenderUTF8_Blended_Wrapped ¶

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

    RenderUTF8_Shaded ¶

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

    RenderUTF8_Shaded_Wrapped ¶

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

    RenderUTF8_Solid ¶

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

    RenderUTF8_Solid_Wrapped ¶

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

    SetDirection ¶

    SetDirection :: proc "c" (direction: i32) -> i32 ---

    SetFontHinting ¶

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

    SetFontKerning ¶

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

    SetFontOutline ¶

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

    SetFontSDF ¶

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

    SetFontSize ¶

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

    SetFontSizeDPI ¶

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

    SetFontStyle ¶

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

    SetScript ¶

    SetScript :: proc "c" (script: i32) -> i32 ---

    SizeText ¶

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

    SizeUNICODE ¶

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

    SizeUTF8 ¶

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

    WasInit ¶

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

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-20 21:10:47.871154300 +0000 UTC