[][src]Struct imgui::FontGlyphRange

pub struct FontGlyphRange(_);

A set of 16-bit Unicode codepoints

Methods

impl FontGlyphRange[src]

pub fn default() -> FontGlyphRange[src]

The default set of glyph ranges used by imgui.

pub fn chinese_simplified_common() -> FontGlyphRange[src]

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

pub fn chinese_full() -> FontGlyphRange[src]

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

pub fn cyrillic() -> FontGlyphRange[src]

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

pub fn japanese() -> FontGlyphRange[src]

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

pub fn korean() -> FontGlyphRange[src]

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

pub fn thai() -> FontGlyphRange[src]

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

pub fn from_slice(slice: &'static [ImWchar]) -> FontGlyphRange[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 [ImWchar]) -> FontGlyphRange[src]

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

See [FontRangeGlyph::from_slice] for more information.

pub unsafe fn from_ptr(ptr: *const ImWchar) -> FontGlyphRange[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.

Trait Implementations

impl Clone for FontGlyphRange[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for FontGlyphRange[src]

impl PartialEq<FontGlyphRange> for FontGlyphRange[src]

impl Debug for FontGlyphRange[src]

impl Hash for FontGlyphRange[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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