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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.