pub struct ZoomBox {
pub width: Option<Pixels>,
pub height: Option<Pixels>,
pub padding_x: Option<Pixels>,
pub padding_y: Option<Pixels>,
pub padding_top: Option<Pixels>,
pub padding_bottom: Option<Pixels>,
pub gap: Option<Pixels>,
pub text_size: Option<Pixels>,
pub line_height: Option<Pixels>,
pub radius: Option<Pixels>,
pub slide_x: Option<Pixels>,
pub slide_y: Option<Pixels>,
}Expand description
Everything an entering overlay grows from ZOOM_FROM to full size.
Every field is optional because the overlays differ in what they know about
themselves: a Modal has a width, a Popover only its padding, type and
corner radius. Whatever is supplied is scaled; whatever is not keeps its
size, so a panel sized by its content grows by its chrome alone.
Fields§
§width: Option<Pixels>Width, if known.
height: Option<Pixels>Height, if known.
padding_x: Option<Pixels>Horizontal padding, if known.
padding_y: Option<Pixels>Vertical padding, if known.
padding_top: Option<Pixels>Top padding, if known; applied after padding_y.
padding_bottom: Option<Pixels>Bottom padding, if known; applied after padding_y.
gap: Option<Pixels>Gap between children, if known.
text_size: Option<Pixels>Font size, if known.
line_height: Option<Pixels>Line height, if known.
radius: Option<Pixels>Corner radius, if known.
slide_x: Option<Pixels>Optional placement-relative entry offset. A positive value starts on the corresponding physical side and eases back to zero with the panel.
slide_y: Option<Pixels>Vertical counterpart of slide_x.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZoomBox
impl RefUnwindSafe for ZoomBox
impl Send for ZoomBox
impl Sync for ZoomBox
impl Unpin for ZoomBox
impl UnsafeUnpin for ZoomBox
impl UnwindSafe for ZoomBox
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().