var searchIndex = {}; searchIndex["sdl2_ttf"] = {"doc":"A binding for SDL2_ttf.","items":[[3,"FontStyle","sdl2_ttf","",null,null],[3,"GlyphMetrics","","Glyph Metrics",null,null],[12,"minx","","",0,null],[12,"maxx","","",0,null],[12,"miny","","",0,null],[12,"maxy","","",0,null],[12,"advance","","",0,null],[3,"Sdl2TtfContext","","A context manager for SDL2_TTF to manage C code init and quit",null,null],[3,"Font","","The opaque holder of a loaded font.",null,null],[4,"Hinting","","",null,null],[13,"Normal","","",1,null],[13,"Light","","",1,null],[13,"Mono","","",1,null],[13,"None","","",1,null],[4,"Error","","An error for when sdl2_ttf is attempted initialized twice",null,null],[13,"InitializationError","","",2,null],[13,"AlreadyInitializedError","","",2,null],[4,"Text","","A renderable piece of text in the UTF8 or Latin-1 format",null,null],[13,"Latin1","","",3,null],[13,"Utf8","","",3,null],[13,"Char","","",3,null],[4,"RenderMode","","The supported text rendering modes and their parameters",null,null],[13,"Solid","","",4,null],[12,"foreground","sdl2_ttf::RenderMode","",4,null],[13,"Shaded","sdl2_ttf","",4,null],[12,"foreground","sdl2_ttf::RenderMode","",4,null],[12,"background","","",4,null],[13,"Blended","sdl2_ttf","",4,null],[12,"foreground","sdl2_ttf::RenderMode","",4,null],[5,"get_linked_version","sdl2_ttf","Returns the version of the dynamically linked SDL_ttf library",null,{"inputs":[],"output":{"name":"version"}}],[5,"init","","Initialize the truetype font API and returns a context manager which will clean up the library\nonce it goes out of scope. You can't really use it, but keep the reference alive :)",null,{"inputs":[],"output":{"name":"result"}}],[5,"has_been_initialized","","Returns whether the underlying library has been initialized",null,{"inputs":[],"output":{"name":"bool"}}],[5,"solid","","Constructor for solid font rendering",null,{"inputs":[{"name":"t"}],"output":{"name":"rendermode"}}],[5,"blended","","Constructor for blended font rendering",null,{"inputs":[{"name":"t"}],"output":{"name":"rendermode"}}],[5,"shaded","","Constructor for shaded font rendering",null,{"inputs":[{"name":"t"},{"name":"u"}],"output":{"name":"rendermode"}}],[17,"STYLE_NORMAL","","",null,null],[17,"STYLE_BOLD","","",null,null],[17,"STYLE_ITALIC","","",null,null],[17,"STYLE_UNDERLINE","","",null,null],[17,"STYLE_STRIKETHROUGH","","",null,null],[8,"RWopsFontExt","","Extension trait for RWops to more easily load fonts",null,null],[10,"load_font","","Load src for use as a font.",5,null],[10,"load_font_index","","Load src for use as a font.",5,null],[11,"hash","","",6,null],[11,"cmp","","",6,null],[11,"partial_cmp","","",6,null],[11,"lt","","",6,null],[11,"le","","",6,null],[11,"gt","","",6,null],[11,"ge","","",6,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"fmt","","",6,null],[11,"empty","","Returns an empty set of flags.",6,{"inputs":[],"output":{"name":"fontstyle"}}],[11,"all","","Returns the set containing all flags.",6,{"inputs":[],"output":{"name":"fontstyle"}}],[11,"bits","","Returns the raw value of the flags currently stored.",6,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",6,{"inputs":[{"name":"c_int"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",6,{"inputs":[{"name":"c_int"}],"output":{"name":"fontstyle"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",6,null],[11,"is_all","","Returns `true` if all flags are currently set.",6,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",6,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",6,null],[11,"insert","","Inserts the specified flags in-place.",6,null],[11,"remove","","Removes the specified flags in-place.",6,null],[11,"toggle","","Toggles the specified flags in-place.",6,null],[11,"bitor","","Returns the union of the two sets of flags.",6,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",6,null],[11,"bitand","","Returns the intersection between the two sets of flags.",6,null],[11,"sub","","Returns the set difference of the two sets of flags.",6,null],[11,"not","","Returns the complement of this set of flags.",6,null],[11,"eq","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"drop","","",7,null],[11,"fmt","","",2,null],[11,"description","","",2,null],[11,"cause","","",2,null],[11,"fmt","","",2,null],[11,"eq","","",8,null],[11,"ne","","",8,null],[11,"drop","","",8,null],[11,"from","","",3,{"inputs":[{"name":"str"}],"output":{"name":"text"}}],[11,"from","","",3,{"inputs":[{"name":"char"}],"output":{"name":"text"}}],[11,"from","","",3,null],[11,"from_file","","Load file for use as a font, at ptsize size.",8,{"inputs":[{"name":"path"},{"name":"i32"}],"output":{"name":"sdlresult"}}],[11,"from_file_index","","Load file, face index, for use as a font, at ptsize size.",8,{"inputs":[{"name":"path"},{"name":"i32"},{"name":"i32"}],"output":{"name":"sdlresult"}}],[11,"get_style","","Get font render style",8,null],[11,"set_style","","Set font render style.",8,null],[11,"get_outline","","Get font outline width.",8,null],[11,"set_outline","","Set font outline width.",8,null],[11,"get_hinting","","Get freetype hinter setting.",8,null],[11,"set_hinting","","Set freetype hinter setting.",8,null],[11,"get_kerning","","Get freetype kerning setting.",8,null],[11,"set_kerning","","Set freetype kerning setting.",8,null],[11,"height","","Get font maximum total height.",8,null],[11,"ascent","","Get font highest ascent (height above base).",8,null],[11,"descent","","Get font lowest descent (height below base).",8,null],[11,"line_skip","","Get font recommended line spacing.",8,null],[11,"faces","","Get the number of faces in a font.",8,null],[11,"face_is_fixed_width","","Get whether font is monospaced or not.",8,null],[11,"face_family_name","","Get current font face family name string.",8,null],[11,"face_style_name","","Get current font face style name string.",8,null],[11,"index_of_char","","Get individual font glyph availability.",8,null],[11,"metrics_of_char","","Get individual font glyph metrics.",8,null],[11,"size","","Get the size of the given text piece when rendered using this font",8,null],[11,"render","","Attempt to render the given text to a SDL surface with the given mode.\nThe text argument can be either a &str, a &[u8] latin-1 array or a char\n(This is because the Into trait has been implemented for these types)",8,null]],"paths":[[3,"GlyphMetrics"],[4,"Hinting"],[4,"Error"],[4,"Text"],[4,"RenderMode"],[8,"RWopsFontExt"],[3,"FontStyle"],[3,"Sdl2TtfContext"],[3,"Font"]]}; initSearch(searchIndex);