[−][src]Struct imgui::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.
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 Clone for FontGlyphRanges
[src]
fn clone(&self) -> FontGlyphRanges
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FontGlyphRanges
[src]
impl Eq for FontGlyphRanges
[src]
impl PartialEq<FontGlyphRanges> for FontGlyphRanges
[src]
fn eq(&self, other: &FontGlyphRanges) -> bool
[src]
fn ne(&self, other: &FontGlyphRanges) -> bool
[src]
impl StructuralEq for FontGlyphRanges
[src]
impl StructuralPartialEq for FontGlyphRanges
[src]
Auto Trait Implementations
impl RefUnwindSafe for FontGlyphRanges
impl !Send for FontGlyphRanges
impl !Sync for FontGlyphRanges
impl Unpin for FontGlyphRanges
impl UnwindSafe for FontGlyphRanges
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,