Struct avrox_display::gfx::primitives::position::Beginning
source · pub struct Beginning {}
Expand description
Render elements at the beginning (top or left) of the available space
Trait Implementations§
source§impl Position for Beginning
impl Position for Beginning
fn get_x_offset(_component_width: XCoord, _available_width: XCoord) -> XCoord
fn get_y_offset(_component_height: YCoord, _available_height: YCoord) -> YCoord
fn map_x( original: XCoord, _component_width: XCoord, _available_width: XCoord ) -> GfxResult<XCoord>
fn map_y( original: YCoord, _component_height: YCoord, _available_height: YCoord ) -> GfxResult<YCoord>
fn reverse_map_x( resulting: XCoord, component_width: XCoord, available_width: XCoord ) -> XCoord
fn reverse_map_y( resulting: XCoord, component_height: YCoord, available_height: YCoord ) -> YCoord
Auto Trait Implementations§
impl Freeze for Beginning
impl RefUnwindSafe for Beginning
impl Send for Beginning
impl Sync for Beginning
impl Unpin for Beginning
impl UnwindSafe for Beginning
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