note description: "External of the SDL2_ttf library." author: "Louis Marchand" date: "Thu, 02 Apr 2015 03:35:38 +0000" revision: "2.0" class GAME_TEXT_EXTERNAL create default_create feature -- Fonction SDL_ttf frozen ttf_init: INTEGER_32 external "C :int | <SDL_ttf.h>" alias "TTF_Init" end frozen ttf_wasinit: INTEGER_32 external "C :int | <SDL_ttf.h>" alias "TTF_WasInit" end frozen ttf_quit external "C | <SDL_ttf.h>" alias "TTF_Quit" end frozen ttf_openfontindex (filename: POINTER; taille: INTEGER_32; index: INTEGER_32): POINTER external "C (const char *,int,long):TTF_Font *| <SDL_ttf.h>" alias "TTF_OpenFontIndex" end frozen ttf_openfontindexrw (rwop: POINTER; free_struct: INTEGER_32; taille: INTEGER_32; index: INTEGER_32): POINTER external "C (SDL_RWops *, int, int, long):TTF_Font *| <SDL_ttf.h>" alias "TTF_OpenFontIndexRW" end frozen ttf_closefont (font: POINTER) external "C (TTF_Font *)| <SDL_ttf.h>" alias "TTF_CloseFont" end frozen ttf_rendertext_solid (font: POINTER; text: POINTER; color: POINTER): POINTER external "C inline use <SDL_ttf.h>" alias "TTF_RenderText_Solid((TTF_Font *)$font,(char *)$text,*((SDL_Color *)$color))" end frozen ttf_renderutf8_solid (font: POINTER; text: POINTER; color: POINTER): POINTER external "C inline use <SDL_ttf.h>" alias "TTF_RenderUTF8_Solid((TTF_Font *)$font,(char *)$text,*((SDL_Color *)$color))" end frozen ttf_rendertext_shaded (font: POINTER; text: POINTER; color, bgcolor: POINTER): POINTER external "C inline use <SDL_ttf.h>" alias "TTF_RenderText_Shaded((TTF_Font *)$font,(char *)$text,*((SDL_Color *)$color),*((SDL_Color *)$bgcolor))" end frozen ttf_renderutf8_shaded (font: POINTER; text: POINTER; color, bgcolor: POINTER): POINTER external "C inline use <SDL_ttf.h>" alias "TTF_RenderUTF8_Shaded((TTF_Font *)$font,(char *)$text,*((SDL_Color *)$color),*((SDL_Color *)$bgcolor))" end frozen ttf_rendertext_blended (font: POINTER; text: POINTER; color: POINTER): POINTER external "C inline use <SDL_ttf.h>" alias "TTF_RenderText_Blended((TTF_Font *)$font,(char *)$text,*((SDL_Color *)$color))" end frozen ttf_renderutf8_blended (font: POINTER; text: POINTER; color: POINTER): POINTER external "C inline use <SDL_ttf.h>" alias "TTF_RenderUTF8_Blended((TTF_Font *)$font,(char *)$text,*((SDL_Color *)$color))" end frozen ttf_setfontstyle (font: POINTER; flag: INTEGER_32) external "C (TTF_Font *,int) | <SDL_ttf.h>" alias "TTF_SetFontStyle" end frozen ttf_getfontstyle (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_GetFontStyle" end frozen ttf_setfontoutline (font: POINTER; outline: INTEGER_32) external "C (TTF_Font *, int) | <SDL_ttf.h>" alias "TTF_SetFontOutline" end frozen ttf_getfontoutline (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_GetFontOutline" end frozen ttf_setfonthinting (font: POINTER; hinting: INTEGER_32) external "C (TTF_Font *, int) | <SDL_ttf.h>" alias "TTF_SetFontHinting " end frozen ttf_getfonthinting (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_GetFontHinting " end frozen ttf_setfontkerning (font: POINTER; allowed: INTEGER_32) external "C (TTF_Font *, int) | <SDL_ttf.h>" alias "TTF_SetFontKerning " end frozen ttf_getfontkerning (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_GetFontKerning " end frozen ttf_fontheight (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_FontHeight " end frozen ttf_fontascent (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_FontAscent " end frozen ttf_fontdescent (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_FontDescent " end frozen ttf_fontlineskip (font: POINTER): INTEGER_32 external "C (TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_FontLineSkip " end frozen ttf_fontfaceisfixedwidth (font: POINTER): INTEGER_32 external "C (const TTF_Font *) : int | <SDL_ttf.h>" alias "TTF_FontFaceIsFixedWidth " end frozen ttf_fontfacefamilyname (font: POINTER): POINTER external "C (const TTF_Font *) : char * | <SDL_ttf.h>" alias "TTF_FontFaceFamilyName " end frozen ttf_fontfacestylename (font: POINTER): POINTER external "C (const TTF_Font *) : char * | <SDL_ttf.h>" alias "TTF_FontFaceStyleName " end frozen ttf_glyphisprovided (font: POINTER; ch: NATURAL_16): INTEGER_32 external "C (const TTF_Font *, Uint16) : int | <SDL_ttf.h>" alias "TTF_GlyphIsProvided " end frozen ttf_glyphmetrics (font: POINTER; ch: NATURAL_16; minx, maxx, miny, maxy, advance: POINTER): INTEGER_32 external "C (TTF_Font *, Uint16, int *, int *, int *, int *, int *) : int | <SDL_ttf.h>" alias "TTF_GlyphMetrics " end frozen ttf_sizetext (font, text, w, h: POINTER): INTEGER_32 external "C (TTF_Font *, const char *, int *, int *) : int | <SDL_ttf.h>" alias "TTF_SizeText " end frozen ttf_sizeutf8 (font, text, w, h: POINTER): INTEGER_32 external "C (TTF_Font *, const char *, int *, int *) : int | <SDL_ttf.h>" alias "TTF_SizeUTF8 " end feature -- Constante SDL_ttf frozen ttf_style_underline: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_STYLE_UNDERLINE" end frozen ttf_style_normal: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_STYLE_NORMAL" end frozen ttf_style_bold: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_STYLE_BOLD" end frozen ttf_style_italic: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_STYLE_ITALIC" end frozen ttf_style_strikethrough: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_STYLE_STRIKETHROUGH" end frozen ttf_hinting_normal: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_HINTING_NORMAL" end frozen ttf_hinting_light: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_HINTING_LIGHT" end frozen ttf_hinting_mono: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_HINTING_MONO" end frozen ttf_hinting_none: INTEGER_32 external "C inline use <SDL_ttf.h>" alias "TTF_HINTING_NONE" end end -- class GAME_TEXT_EXTERNAL
Generated by ISE EiffelStudio