[−][src]Struct imgui::FontGlyphRanges
A set of 16-bit Unicode codepoints
Methods
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.
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.
Trait Implementations
impl PartialEq<FontGlyphRanges> for FontGlyphRanges
[src]
fn eq(&self, other: &FontGlyphRanges) -> bool
[src]
fn ne(&self, other: &FontGlyphRanges) -> bool
[src]
impl Eq for FontGlyphRanges
[src]
impl Clone for FontGlyphRanges
[src]
fn clone(&self) -> FontGlyphRanges
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FontGlyphRanges
[src]
Auto Trait Implementations
impl !Send for FontGlyphRanges
impl Unpin for FontGlyphRanges
impl !Sync for FontGlyphRanges
impl UnwindSafe for FontGlyphRanges
impl RefUnwindSafe for FontGlyphRanges
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,