Struct aflak_imgui::FontGlyphRange [−][src]
pub struct FontGlyphRange(_);
A set of 16-bit Unicode codepoints
Methods
impl FontGlyphRange
[src]
impl FontGlyphRange
pub fn default() -> FontGlyphRange
[src]
pub fn default() -> FontGlyphRange
The default set of glyph ranges used by imgui.
pub fn chinese() -> FontGlyphRange
[src]
pub fn chinese() -> FontGlyphRange
A set of glyph ranges appropriate for use with Chinese text.
pub fn cyrillic() -> FontGlyphRange
[src]
pub fn cyrillic() -> FontGlyphRange
A set of glyph ranges appropriate for use with Cyrillic text.
pub fn japanese() -> FontGlyphRange
[src]
pub fn japanese() -> FontGlyphRange
A set of glyph ranges appropriate for use with Japanese text.
pub fn korean() -> FontGlyphRange
[src]
pub fn korean() -> FontGlyphRange
A set of glyph ranges appropriate for use with Korean text.
pub fn thai() -> FontGlyphRange
[src]
pub fn thai() -> FontGlyphRange
A set of glyph ranges appropriate for use with Thai text.
pub fn from_slice(slice: &'static [ImWchar]) -> FontGlyphRange
[src]
pub fn from_slice(slice: &'static [ImWchar]) -> FontGlyphRange
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]
pub unsafe fn from_slice_unchecked(slice: &'static [ImWchar]) -> FontGlyphRange
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]
pub unsafe fn from_ptr(ptr: *const ImWchar) -> FontGlyphRange
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]
impl Clone for FontGlyphRange
fn clone(&self) -> FontGlyphRange
[src]
fn clone(&self) -> FontGlyphRange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for FontGlyphRange
[src]
impl Eq for FontGlyphRange
impl PartialEq for FontGlyphRange
[src]
impl PartialEq for FontGlyphRange
fn eq(&self, other: &FontGlyphRange) -> bool
[src]
fn eq(&self, other: &FontGlyphRange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FontGlyphRange) -> bool
[src]
fn ne(&self, other: &FontGlyphRange) -> bool
This method tests for !=
.
impl Hash for FontGlyphRange
[src]
impl Hash for FontGlyphRange
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for FontGlyphRange
[src]
impl Debug for FontGlyphRange
Auto Trait Implementations
impl !Send for FontGlyphRange
impl !Send for FontGlyphRange
impl !Sync for FontGlyphRange
impl !Sync for FontGlyphRange