pub struct ImagePlacement {
pub x: Option<u16>,
pub y: Option<u16>,
pub width: Option<u16>,
pub height: Option<u16>,
pub z_index: Option<i32>,
}Expand description
Image placement options
Fields§
§x: Option<u16>X position in cells
y: Option<u16>Y position in cells
width: Option<u16>Width in cells (None = auto)
height: Option<u16>Height in cells (None = auto)
z_index: Option<i32>Z-index for layering
Implementations§
Source§impl ImagePlacement
impl ImagePlacement
Sourcepub fn with_width(self, width: u16) -> Self
pub fn with_width(self, width: u16) -> Self
Set the width
Sourcepub fn with_height(self, height: u16) -> Self
pub fn with_height(self, height: u16) -> Self
Set the height
Sourcepub fn with_z_index(self, z: i32) -> Self
pub fn with_z_index(self, z: i32) -> Self
Set z-index
Trait Implementations§
Source§impl Clone for ImagePlacement
impl Clone for ImagePlacement
Source§impl Debug for ImagePlacement
impl Debug for ImagePlacement
Auto Trait Implementations§
impl Forget for ImagePlacement
impl Freeze for ImagePlacement
impl Move for ImagePlacement
impl RefUnwindSafe for ImagePlacement
impl Send for ImagePlacement
impl Sync for ImagePlacement
impl Unpin for ImagePlacement
impl UnsafeUnpin for ImagePlacement
impl UnwindSafe for ImagePlacement
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