package vendor:sdl2/ttf
⌘K
Ctrl+K
or
/
Index
Variables (0)
This section is empty.
Procedures (74)
- CloseFont
- FontAscent
- FontDescent
- FontFaceFamilyName
- FontFaceIsFixedWidth
- FontFaceStyleName
- FontFaces
- FontHeight
- FontLineSkip
- GetFontHinting
- GetFontKerning
- GetFontKerningSizeGlyphs
- GetFontKerningSizeGlyphs32
- GetFontOutline
- GetFontSDF
- GetFontStyle
- GlyphIsProvided
- GlyphIsProvided32
- GlyphMetrics
- GlyphMetrics32
- Init
- Linked_Version
- MeasureText
- MeasureUNICODE
- MeasureUTF8
- OpenFont
- OpenFontDPI
- OpenFontDPIRW
- OpenFontIndex
- OpenFontIndexDPI
- OpenFontIndexDPIRW
- OpenFontIndexRW
- OpenFontRW
- Quit
- RenderGlyph32_Blended
- RenderGlyph32_Shaded
- RenderGlyph32_Solid
- RenderGlyph_Blended
- RenderGlyph_Shaded
- RenderGlyph_Solid
- RenderText
- RenderText_Blended
- RenderText_Blended_Wrapped
- RenderText_Shaded
- RenderText_Shaded_Wrapped
- RenderText_Solid
- RenderText_Solid_Wrapped
- RenderUNICODE
- RenderUNICODE_Blended
- RenderUNICODE_Blended_Wrapped
- RenderUNICODE_Shaded
- RenderUNICODE_Shaded_Wrapped
- RenderUNICODE_Solid
- RenderUNICODE_Solid_Wrapped
- RenderUTF8
- RenderUTF8_Blended
- RenderUTF8_Blended_Wrapped
- RenderUTF8_Shaded
- RenderUTF8_Shaded_Wrapped
- RenderUTF8_Solid
- RenderUTF8_Solid_Wrapped
- SetDirection
- SetFontHinting
- SetFontKerning
- SetFontOutline
- SetFontSDF
- SetFontSize
- SetFontSizeDPI
- SetFontStyle
- SetScript
- SizeText
- SizeUNICODE
- SizeUTF8
- WasInit
Procedure Groups (0)
This section is empty.
Types
Hinting ¶
Hinting :: enum i32 { NORMAL = 0, LIGHT = 1, MONO = 2, NONE = 3, LIGHT_SUBPIXEL = 4, }
StyleFlag ¶
StyleFlag :: enum i32 { BOLD = 0, ITALIC = 1, UNDERLINE = 2, STRIKETHROUGH = 3, }
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 ---
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 ---
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 ---
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 ---
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 ---
RenderText ¶
For compatibility with previous versions, here are the old functions
SetDirection ¶
SetDirection :: proc "c" (direction: i32) -> i32 ---
SetFontOutline ¶
SetFontOutline :: proc "c" (font: ^Font, outline: i32) ---
SetFontSize ¶
SetFontSize :: proc "c" (font: ^Font, ptsize: i32) -> i32 ---
SetFontSizeDPI ¶
SetFontSizeDPI :: proc "c" (font: ^Font, ptsize: i32, hdpi, vdpi: u32) -> i32 ---
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 ---
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2023-06 (vendor "odin") Windows_amd64 @ 2023-06-02 21:08:33.062788900 +0000 UTC