[−][src]Struct tge::prelude::Font
Implementations
impl Font
[src]
pub fn from_bytes(engine: &mut Engine, bytes: Vec<u8>) -> GameResult<Self>
[src]
pub fn load(engine: &mut Engine, path: impl AsRef<Path>) -> GameResult<Self>
[src]
pub fn filter(&self) -> Filter
[src]
pub fn set_filter(&mut self, filter: Filter)
[src]
pub fn is_fit_hidpi(&self) -> bool
[src]
pub fn set_fit_hidpi(&mut self, fit_hidpi: bool)
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Font
impl !Send for Font
impl !Sync for Font
impl Unpin for Font
impl !UnwindSafe for Font
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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>,