Struct aflak_imgui::FontGlyphRange[][src]

pub struct FontGlyphRange(_);

A set of 16-bit Unicode codepoints

Methods

impl FontGlyphRange
[src]

The default set of glyph ranges used by imgui.

A set of glyph ranges appropriate for use with Chinese text.

A set of glyph ranges appropriate for use with Cyrillic text.

A set of glyph ranges appropriate for use with Japanese text.

A set of glyph ranges appropriate for use with Korean text.

A set of glyph ranges appropriate for use with Thai text.

Creates a glyph range from a static slice. The expected format is a series of pairs of non-zero shorts, each representing an inclusive range of codepoints, followed by a single zero terminating the range. The ranges must not overlap.

As the slice is expected to last as long as a font is used, and is written into global state, it must be 'static.

Panics

This function will panic if the given slice is not a valid font range.

Creates a glyph range from a static slice without checking its validity.

See [FontRangeGlyph::from_slice] for more information.

Creates a glyph range from a pointer, without checking its validity or enforcing its lifetime. The memory the pointer points to must be valid for as long as the font is in use.

Trait Implementations

impl Clone for FontGlyphRange
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for FontGlyphRange
[src]

impl PartialEq for FontGlyphRange
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for FontGlyphRange
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for FontGlyphRange
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations