Struct ExGetStringSize
pub struct ExGetStringSize<'ex> { /* private fields */ }Expand description
Default-param extender for Font::get_string_size_ex.
Implementations§
§impl<'ex> ExGetStringSize<'ex>
impl<'ex> ExGetStringSize<'ex>
pub fn alignment(self, alignment: HorizontalAlignment) -> ExGetStringSize<'ex>
pub fn width(self, width: f32) -> ExGetStringSize<'ex>
pub fn font_size(self, font_size: i32) -> ExGetStringSize<'ex>
pub fn justification_flags( self, justification_flags: JustificationFlag, ) -> ExGetStringSize<'ex>
pub fn direction(self, direction: Direction) -> ExGetStringSize<'ex>
pub fn orientation(self, orientation: Orientation) -> ExGetStringSize<'ex>
pub fn done(self) -> Vector2
Auto Trait Implementations§
impl<'ex> Freeze for ExGetStringSize<'ex>
impl<'ex> RefUnwindSafe for ExGetStringSize<'ex>
impl<'ex> !Send for ExGetStringSize<'ex>
impl<'ex> !Sync for ExGetStringSize<'ex>
impl<'ex> Unpin for ExGetStringSize<'ex>
impl<'ex> UnwindSafe for ExGetStringSize<'ex>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more