CL_GlyphBuffer::get_width - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_GlyphBuffer::get_width

Returns the width of the entire buffer, or a sub-Range.

    	int get_width(
    		bool ignore_invis = true);

    	int get_width(
    		int idx, bool ignore_invis = true);

    	int get_width(
    		Range range, bool ignore_invis = true);

Parameters:

range
  A subsection of the glyphs vector to get the width of.
idx
  The vector index of a single glyph to get the width of.
ignore_invis
  If true, ignores invisible glyphs (glyphs without an actual visual glyph in the font)

Return value:

The width in pixels.

See also:

CL_GlyphBuffer

Questions or comments, write to the ClanLib mailing list.