C# Class Tao.Sdl.SdlTtf

Datei anzeigen Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
TTF_GetError ( ) : string

Get the current error string

This is the same as SDL_GetError, which returns the last error set as a string which you may use to tell the user what happened when an error status has been returned from an SDL_ttf function call.

Binds to C-function in SDL_ttf.h char *TTF_GetError()

TTF_Linked_Version ( ) : Tao.Sdl.Sdl.SDL_version

Using this you can compare the runtime version to the version that you compiled with.

Binds to C-function call in SDL_ttf.h: const SDL_version * TTF_Linked_Version(void)

TTF_SetError ( string message ) : void

Set the current error string

This is the same as SDL_SetError, which sets the error string which may be fetched with TTF_GetError (or SDL_GetError). This functions acts like printf, except that it is limited to SDL_ERRBUFIZE(1024) chars in length. It only accepts the following format types: %s, %d, %f, %p. No variations are supported, like %.2f would not work. For any more specifics read the SDL docs.

Binds to C-function in SDL_image.h void TTF_SetError(const char *fmt, ...)

TTF_VERSION ( ) : Tao.Sdl.Sdl.SDL_version

This method can be used to fill a version structure with the compile-time version of the SDL_ttf library.

Binds to C-function call in SDL_ttf.h: //#define SDL_TTF_VERSION(X) { (X)->major = SDL_TTF_MAJOR_VERSION; (X)->minor = SDL_TTF_MINOR_VERSION; (X)->patch = SDL_TTF_PATCHLEVEL; }

Private Methods

Method Description
TTF_ByteSwappedUNICODE ( int swapped ) : void
TTF_CloseFont ( IntPtr font ) : void
TTF_FontAscent ( IntPtr font ) : int
TTF_FontDescent ( IntPtr font ) : int
TTF_FontFaceFamilyName ( IntPtr font ) : string
TTF_FontFaceIsFixedWidth ( IntPtr font ) : int
TTF_FontFaceStyleName ( IntPtr font ) : string
TTF_FontFaces ( IntPtr font ) : long
TTF_FontHeight ( IntPtr font ) : int
TTF_FontLineSkip ( IntPtr font ) : int
TTF_GetFontStyle ( IntPtr font ) : int
TTF_GlyphMetrics ( IntPtr font, short ch, int &minx, int &maxx, int &miny, int &maxy, int &advance ) : int
TTF_Init ( ) : int
TTF_Linked_VersionInternal ( ) : IntPtr
TTF_OpenFont ( string file, int ptsize ) : IntPtr
TTF_OpenFontIndex ( string file, int ptsize, long index ) : IntPtr
TTF_OpenFontIndexRW ( IntPtr src, int freesrc, int ptsize, long index ) : IntPtr
TTF_OpenFontRW ( IntPtr src, int freesrc, int ptsize ) : IntPtr
TTF_Quit ( ) : void
TTF_RenderGlyph_Blended ( IntPtr font, short ch, Tao.Sdl.Sdl fg ) : IntPtr
TTF_RenderGlyph_Shaded ( IntPtr font, short ch, Tao.Sdl.Sdl fg, Tao.Sdl.Sdl bg ) : IntPtr
TTF_RenderGlyph_Solid ( IntPtr font, short ch, Tao.Sdl.Sdl fg ) : IntPtr
TTF_RenderText_Blended ( IntPtr font, string text, Tao.Sdl.Sdl fg ) : IntPtr
TTF_RenderText_Shaded ( IntPtr font, string text, Tao.Sdl.Sdl fg, Tao.Sdl.Sdl bg ) : IntPtr
TTF_RenderText_Solid ( IntPtr font, string text, Tao.Sdl.Sdl fg ) : IntPtr
TTF_RenderUNICODE_Blended ( IntPtr font, [ text, Tao.Sdl.Sdl fg ) : IntPtr
TTF_RenderUNICODE_Shaded ( IntPtr font, [ text, Tao.Sdl.Sdl fg, Tao.Sdl.Sdl bg ) : IntPtr
TTF_RenderUNICODE_Solid ( IntPtr font, [ text, Tao.Sdl.Sdl fg ) : IntPtr
TTF_RenderUTF8_Blended ( IntPtr font, string text, Tao.Sdl.Sdl fg ) : IntPtr
TTF_RenderUTF8_Shaded ( IntPtr font, string text, Tao.Sdl.Sdl fg, Tao.Sdl.Sdl bg ) : IntPtr
TTF_RenderUTF8_Solid ( IntPtr font, string text, Tao.Sdl.Sdl fg ) : IntPtr
TTF_SetFontStyle ( IntPtr font, int style ) : void
TTF_SizeText ( IntPtr font, [ text, int &w, int &h ) : int
TTF_SizeUNICODE ( IntPtr font, [ text, int &w, int &h ) : int
TTF_SizeUTF8 ( IntPtr font, [ text, int &w, int &h ) : int
TTF_WasInit ( ) : int

Method Details

TTF_GetError() public static method

Get the current error string
This is the same as SDL_GetError, which returns the last error set as a string which you may use to tell the user what happened when an error status has been returned from an SDL_ttf function call.

Binds to C-function in SDL_ttf.h char *TTF_GetError()

public static TTF_GetError ( ) : string
return string

TTF_Linked_Version() public static method

Using this you can compare the runtime version to the version that you compiled with.

Binds to C-function call in SDL_ttf.h: const SDL_version * TTF_Linked_Version(void)

public static TTF_Linked_Version ( ) : Tao.Sdl.Sdl.SDL_version
return Tao.Sdl.Sdl.SDL_version

TTF_SetError() public static method

Set the current error string
This is the same as SDL_SetError, which sets the error string which may be fetched with TTF_GetError (or SDL_GetError). This functions acts like printf, except that it is limited to SDL_ERRBUFIZE(1024) chars in length. It only accepts the following format types: %s, %d, %f, %p. No variations are supported, like %.2f would not work. For any more specifics read the SDL docs.

Binds to C-function in SDL_image.h void TTF_SetError(const char *fmt, ...)

public static TTF_SetError ( string message ) : void
message string
return void

TTF_VERSION() public static method

This method can be used to fill a version structure with the compile-time version of the SDL_ttf library.

Binds to C-function call in SDL_ttf.h: //#define SDL_TTF_VERSION(X) { (X)->major = SDL_TTF_MAJOR_VERSION; (X)->minor = SDL_TTF_MINOR_VERSION; (X)->patch = SDL_TTF_PATCHLEVEL; }

public static TTF_VERSION ( ) : Tao.Sdl.Sdl.SDL_version
return Tao.Sdl.Sdl.SDL_version