[−][src]Struct drawing::TextureFont
Trait Implementations
impl<D: Device> Font<D> for TextureFont<D>
[src]
fn create(_device: &mut D, bytes: Vec<u8>) -> Result<Self>
[src]
fn draw(
&mut self,
device: &mut D,
target: &D::RenderTarget,
color: &Color,
text: &str,
pos: Point,
clipping_rect: Rect,
font_params: FontParams,
transform: UnknownToDeviceTransform
) -> Result<()>
[src]
&mut self,
device: &mut D,
target: &D::RenderTarget,
color: &Color,
text: &str,
pos: Point,
clipping_rect: Rect,
font_params: FontParams,
transform: UnknownToDeviceTransform
) -> Result<()>
fn get_dimensions(
&mut self,
device: &mut D,
params: FontParams,
text: &str
) -> Result<(u16, u16)>
[src]
&mut self,
device: &mut D,
params: FontParams,
text: &str
) -> Result<(u16, u16)>
fn get_dimensions_each_char(
&mut self,
device: &mut D,
params: FontParams,
text: &str
) -> Result<(Vec<i16>, u16)>
[src]
&mut self,
device: &mut D,
params: FontParams,
text: &str
) -> Result<(Vec<i16>, u16)>
Auto Trait Implementations
impl<D> RefUnwindSafe for TextureFont<D> where
<D as Device>::Texture: RefUnwindSafe,
<D as Device>::Texture: RefUnwindSafe,
impl<D> Send for TextureFont<D> where
<D as Device>::Texture: Send,
<D as Device>::Texture: Send,
impl<D> Sync for TextureFont<D> where
<D as Device>::Texture: Sync,
<D as Device>::Texture: Sync,
impl<D> Unpin for TextureFont<D> where
<D as Device>::Texture: Unpin,
<D as Device>::Texture: Unpin,
impl<D> UnwindSafe for TextureFont<D> where
<D as Device>::Texture: UnwindSafe,
<D as Device>::Texture: UnwindSafe,
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, 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>,