[−][src]Struct mergui::MFont
Implementations
impl MFont
[src]
pub async fn load_ttf<'_>(
gfx: &'_ Graphics,
path: &'static str,
size: f32
) -> Result<MFont>
[src]
gfx: &'_ Graphics,
path: &'static str,
size: f32
) -> Result<MFont>
pub fn from_font(
font: &VectorFont,
gfx: &Graphics,
font_size: f32
) -> Result<MFont>
[src]
font: &VectorFont,
gfx: &Graphics,
font_size: f32
) -> Result<MFont>
pub fn layout_glyphs(
&self,
gfx: &mut Graphics,
text: &str,
max_width: Option<f32>,
callback: impl FnMut(&mut Graphics, LayoutGlyph)
) -> Result<Vector>
[src]
&self,
gfx: &mut Graphics,
text: &str,
max_width: Option<f32>,
callback: impl FnMut(&mut Graphics, LayoutGlyph)
) -> Result<Vector>
pub fn draw(
&self,
gfx: &mut Graphics,
text: &str,
color: Color,
offset: Vector
) -> Result<Vector>
[src]
&self,
gfx: &mut Graphics,
text: &str,
color: Color,
offset: Vector
) -> Result<Vector>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MFont
impl !Send for MFont
impl !Sync for MFont
impl Unpin for MFont
impl !UnwindSafe for MFont
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,