module SDL2::TTF
The SDL_ttf interface. API prototypes are linked to this module.
Constants
- SDL_TTF_MODULE
- UNICODE_BOM_NATIVE
- UNICODE_BOM_SWAPPED
Public Instance Methods
TTF_ByteSwappedUNICODE()
click to toggle source
# File lib/sdl2/ttf.rb, line 27 api :TTF_ByteSwappedUNICODE, [:int], :void
TTF_CloseFont()
click to toggle source
# File lib/sdl2/ttf.rb, line 196 api :TTF_CloseFont, [Font.by_ref], :void
TTF_FontAscent()
click to toggle source
# File lib/sdl2/ttf.rb, line 90 api :TTF_FontAscent, [Font.by_ref], :int
TTF_FontDescent()
click to toggle source
# File lib/sdl2/ttf.rb, line 93 api :TTF_FontDescent, [Font.by_ref], :int
TTF_FontFaceFamilyName()
click to toggle source
# File lib/sdl2/ttf.rb, line 111 api :TTF_FontFaceFamilyName, [Font.by_ref], :string
TTF_FontFaceIsFixedWidth()
click to toggle source
# File lib/sdl2/ttf.rb, line 108 api :TTF_FontFaceIsFixedWidth, [Font.by_ref], :int
TTF_FontFaceStyleName()
click to toggle source
# File lib/sdl2/ttf.rb, line 114 api :TTF_FontFaceStyleName, [Font.by_ref], :string
TTF_FontFaces()
click to toggle source
# File lib/sdl2/ttf.rb, line 105 api :TTF_FontFaces, [Font.by_ref], :long
TTF_FontHeight()
click to toggle source
# File lib/sdl2/ttf.rb, line 87 api :TTF_FontHeight, [Font.by_ref], :int
TTF_FontLineSkip()
click to toggle source
# File lib/sdl2/ttf.rb, line 96 api :TTF_FontLineSkip, [Font.by_ref], :int
TTF_GetFontHinting()
click to toggle source
# File lib/sdl2/ttf.rb, line 80 api :TTF_GetFontHinting, [Font.by_ref], :hinting
TTF_GetFontKerning()
click to toggle source
# File lib/sdl2/ttf.rb, line 99 api :TTF_GetFontKerning, [Font.by_ref], :int
TTF_GetFontKerningSize()
click to toggle source
# File lib/sdl2/ttf.rb, line 205 api :TTF_GetFontKerningSize, [Font.by_ref, :int, :int], :int
TTF_GetFontOutline()
click to toggle source
# File lib/sdl2/ttf.rb, line 64 api :TTF_GetFontOutline, [Font.by_ref], :int
TTF_GetFontStyle()
click to toggle source
# File lib/sdl2/ttf.rb, line 58 api :TTF_GetFontStyle, [Font.by_ref], :int
TTF_GlyphIsProvided()
click to toggle source
# File lib/sdl2/ttf.rb, line 118 api :TTF_GlyphIsProvided, [Font.by_ref, :uint16], :int
TTF_GlyphMetrics()
click to toggle source
# File lib/sdl2/ttf.rb, line 122 api :TTF_GlyphMetrics, [ Font.by_ref, :uint16, TypedPointer::Int.by_ref, TypedPointer::Int.by_ref, TypedPointer::Int.by_ref, TypedPointer::Int.by_ref, TypedPointer::Int.by_ref
TTF_Init()
click to toggle source
# File lib/sdl2/ttf.rb, line 31 api :TTF_Init, [], :int, {error: true, filter: OK_WHEN_ZERO}
TTF_Linked_Version()
click to toggle source
# File lib/sdl2/ttf.rb, line 20 api :TTF_Linked_Version, [], Version.ptr
TTF_OpenFont()
click to toggle source
# File lib/sdl2/ttf.rb, line 34 api :TTF_OpenFont, [:string, :int], Font.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_OpenFontIndex()
click to toggle source
# File lib/sdl2/ttf.rb, line 37 api :TTF_OpenFontIndex, [:string, :int, :long], Font.ptr
TTF_OpenFontIndexRW()
click to toggle source
# File lib/sdl2/ttf.rb, line 43 api :TTF_OpenFontIndexRW, [RWops.by_ref, :int, :int, :long], Font.ptr
TTF_OpenFontRW()
click to toggle source
# File lib/sdl2/ttf.rb, line 40 api :TTF_OpenFontRW, [RWops.by_ref, :int, :int], Font.ptr
TTF_Quit()
click to toggle source
# File lib/sdl2/ttf.rb, line 199 api :TTF_Quit, [], :void
TTF_RenderGlyph_Blended()
click to toggle source
# File lib/sdl2/ttf.rb, line 192 api :TTF_RenderGlyph_Blended, [Font.by_ref, :uint16, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderGlyph_Shaded()
click to toggle source
# File lib/sdl2/ttf.rb, line 168 api :TTF_RenderGlyph_Shaded, [Font.by_ref, :uint16, Color.by_value, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderGlyph_Solid()
click to toggle source
# File lib/sdl2/ttf.rb, line 154 api :TTF_RenderGlyph_Solid, [Font.by_ref, :uint16, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderText_Blended()
click to toggle source
# File lib/sdl2/ttf.rb, line 172 api :TTF_RenderText_Blended, [Font.by_ref, :string, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderText_Blended_Wrapped()
click to toggle source
# File lib/sdl2/ttf.rb, line 182 api :TTF_RenderText_Blended_Wrapped, [Font.by_ref, :string, Color.by_value, :uint32], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderText_Shaded()
click to toggle source
# File lib/sdl2/ttf.rb, line 158 api :TTF_RenderText_Shaded, [Font.by_ref, :string, Color.by_value, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderText_Solid()
click to toggle source
# File lib/sdl2/ttf.rb, line 144 api :TTF_RenderText_Solid, [Font.by_ref, :string, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUNICODE_Blended()
click to toggle source
# File lib/sdl2/ttf.rb, line 178 api :TTF_RenderUNICODE_Blended, [Font.by_ref, :string, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUNICODE_Blended_Wrapped()
click to toggle source
# File lib/sdl2/ttf.rb, line 188 api :TTF_RenderUNICODE_Blended_Wrapped, [Font.by_ref, :string, Color.by_value, :uint32], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUNICODE_Shaded()
click to toggle source
# File lib/sdl2/ttf.rb, line 164 api :TTF_RenderUNICODE_Shaded, [Font.by_ref, :string, Color.by_value, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUNICODE_Solid()
click to toggle source
# File lib/sdl2/ttf.rb, line 150 api :TTF_RenderUNICODE_Solid, [Font.by_ref, :string, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUTF8_Blended()
click to toggle source
# File lib/sdl2/ttf.rb, line 175 api :TTF_RenderUTF8_Blended, [Font.by_ref, :string, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUTF8_Blended_Wrapped()
click to toggle source
# File lib/sdl2/ttf.rb, line 185 api :TTF_RenderUTF8_Blended_Wrapped, [Font.by_ref, :string, Color.by_value, :uint32], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUTF8_Shaded()
click to toggle source
# File lib/sdl2/ttf.rb, line 161 api :TTF_RenderUTF8_Shaded, [Font.by_ref, :string, Color.by_value, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_RenderUTF8_Solid()
click to toggle source
# File lib/sdl2/ttf.rb, line 147 api :TTF_RenderUTF8_Solid, [Font.by_ref, :string, Color.by_value], Surface.ptr, {error: true, filter: OK_WHEN_NOT_NULL}
TTF_SetFontHinting()
click to toggle source
# File lib/sdl2/ttf.rb, line 83 api :TTF_SetFontHinting, [Font.by_ref, :int], :void
TTF_SetFontKerning()
click to toggle source
# File lib/sdl2/ttf.rb, line 102 api :TTF_SetFontKerning, [Font.by_ref], :int
TTF_SetFontOutline()
click to toggle source
# File lib/sdl2/ttf.rb, line 67 api :TTF_SetFontOutline, [Font.by_ref, :int], :void
TTF_SetFontStyle()
click to toggle source
# File lib/sdl2/ttf.rb, line 61 api :TTF_SetFontStyle, [Font.by_ref, :int], :void
TTF_SizeText()
click to toggle source
# File lib/sdl2/ttf.rb, line 134 api :TTF_SizeText, [Font.by_ref, :string, TypedPointer::Int.by_ref, TypedPointer::Int.by_ref], :int
TTF_SizeUNICODE()
click to toggle source
# File lib/sdl2/ttf.rb, line 140 api :TTF_SizeUNICODE, [Font.by_ref, :string, TypedPointer::Int.by_ref, TypedPointer::Int.by_ref], :int
TTF_SizeUTF8()
click to toggle source
# File lib/sdl2/ttf.rb, line 137 api :TTF_SizeUTF8, [Font.by_ref, :string, TypedPointer::Int.by_ref, TypedPointer::Int.by_ref], :int
TTF_WasInit()
click to toggle source
# File lib/sdl2/ttf.rb, line 202 api :TTF_WasInit, [], :int