[−][src]Struct imgui::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 Eq for FontGlyphRange
[src]
impl PartialEq<FontGlyphRange> for FontGlyphRange
[src]
fn eq(&self, other: &FontGlyphRange) -> bool
[src]
fn ne(&self, other: &FontGlyphRange) -> bool
[src]
impl Clone for FontGlyphRange
[src]
fn clone(&self) -> FontGlyphRange
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FontGlyphRange
[src]
impl Hash for FontGlyphRange
[src]
Auto Trait Implementations
impl !Send for FontGlyphRange
impl !Sync for FontGlyphRange
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,