[][src]Struct imgui::FontGlyphRanges

pub struct FontGlyphRanges(_);

A set of 16-bit Unicode codepoints

Implementations

impl FontGlyphRanges[src]

pub fn default() -> FontGlyphRanges[src]

The default set of glyph ranges used by imgui.

pub fn chinese_simplified_common() -> FontGlyphRanges[src]

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

pub fn chinese_full() -> FontGlyphRanges[src]

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

pub fn cyrillic() -> FontGlyphRanges[src]

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

pub fn japanese() -> FontGlyphRanges[src]

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

pub fn korean() -> FontGlyphRanges[src]

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

pub fn thai() -> FontGlyphRanges[src]

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

pub fn vietnamese() -> FontGlyphRanges[src]

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

pub fn from_slice(slice: &'static [u16]) -> FontGlyphRanges[src]

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.

pub unsafe fn from_slice_unchecked(slice: &'static [u16]) -> FontGlyphRanges[src]

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

See [FontRangeGlyph::from_slice] for more information.

Safety

It is up to the caller to guarantee the slice contents are valid.

pub unsafe fn from_ptr(ptr: *const u16) -> FontGlyphRanges[src]

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

impl Clone for FontGlyphRanges[src]

impl Debug for FontGlyphRanges[src]

impl Eq for FontGlyphRanges[src]

impl PartialEq<FontGlyphRanges> for FontGlyphRanges[src]

impl StructuralEq for FontGlyphRanges[src]

impl StructuralPartialEq for FontGlyphRanges[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.