Struct imgui::FontGlyphRanges [−][src]
pub struct FontGlyphRanges(_);
Expand description
A set of Unicode codepoints
Implementations
The default set of glyph ranges used by imgui.
A set of glyph ranges appropriate for use with simplified common Chinese text.
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.
A set of glyph ranges appropriate for use with Vietnamese text.
Creates a glyph range from a static slice. The expected format is a series of pairs of non-zero codepoints, each representing an inclusive range, 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 FontGlyphRanges::from_slice
for more information.
Safety
It is up to the caller to guarantee the slice contents are valid.
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.
Safety
It is up to the caller to guarantee the pointer is not null, remains valid forever, and points to valid data.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FontGlyphRanges
impl !Send for FontGlyphRanges
impl !Sync for FontGlyphRanges
impl Unpin for FontGlyphRanges
impl UnwindSafe for FontGlyphRanges
Blanket Implementations
Mutably borrows from an owned value. Read more