pub enum DeltaResize {
TopLeft(i16, i16),
TopCenter(i16, i16),
TopRight(i16, i16),
CenterLeft(i16, i16),
Center(i16, i16),
CenterRight(i16, i16),
BottomLeft(i16, i16),
BottomCenter(i16, i16),
BottomRight(i16, i16),
}Expand description
Delta resize handle with anchor point specification.
This enum represents different resize operations for widgets, specifying both the size delta and the anchor point to use during resizing. Each variant represents a different corner or edge of a widget.
§Variants
TopLeft(w, h): Resize from top-left cornerTopCenter(w, h): Resize from top edge (centered)TopRight(w, h): Resize from top-right cornerCenterLeft(w, h): Resize from left edge (centered)Center(w, h): Resize from centerCenterRight(w, h): Resize from right edge (centered)BottomLeft(w, h): Resize from bottom-left cornerBottomCenter(w, h): Resize from bottom edge (centered)BottomRight(w, h): Resize from bottom-right corner
Variants§
TopLeft(i16, i16)
Resize from top-left corner with width and height deltas.
TopCenter(i16, i16)
Resize from top edge (centered) with width and height deltas.
TopRight(i16, i16)
Resize from top-right corner with width and height deltas.
CenterLeft(i16, i16)
Resize from left edge (centered) with width and height deltas.
Center(i16, i16)
Resize from center with width and height deltas.
CenterRight(i16, i16)
Resize from right edge (centered) with width and height deltas.
BottomLeft(i16, i16)
Resize from bottom-left corner with width and height deltas.
BottomCenter(i16, i16)
Resize from bottom edge (centered) with width and height deltas.
BottomRight(i16, i16)
Resize from bottom-right corner with width and height deltas.
Implementations§
Source§impl DeltaResize
impl DeltaResize
pub const fn unwrap(&self) -> (i32, i32, AnchorPoint)
Sourcepub const fn transform(&self, size: &Size) -> (Size, AnchorPoint)
pub const fn transform(&self, size: &Size) -> (Size, AnchorPoint)
Trait Implementations§
Source§impl Clone for DeltaResize
impl Clone for DeltaResize
Source§fn clone(&self) -> DeltaResize
fn clone(&self) -> DeltaResize
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more