pub struct Center<W>where
W: Widget,{
pub child: W,
}Fields
child: WImplementations
Trait Implementations
sourceimpl<W> SingleChildWidget for Center<W>where
W: Widget,
impl<W> SingleChildWidget for Center<W>where
W: Widget,
fn build(
&'w self,
&'w _BuildContext<'w, Center<W>>
) -> <Center<W> as WidgetDerive>::Widget<'w>
fn layout(
&self,
ctx: &mut _RenderContext<'_, Center<W>>,
constraints: Constraints
) -> Size
fn paint(
&self,
ctx: &mut _RenderContext<'_, Center<W>>,
canvas: &mut CairoRenderContext<'_>,
offset: &Offset
)
sourceimpl<W> Widget for Center<W>where
W: Widget,
impl<W> Widget for Center<W>where
W: Widget,
sourcefn unique_type(&self) -> TypeId
fn unique_type(&self) -> TypeId
Implementation should return the same unique TypeId for given structure definition,
even if that structure contains generic parameters. This is used to preserve state
between generic widgets. Read more
fn kind(&'frui self) -> WidgetKind<'frui>
Auto Trait Implementations
impl<W> Immutable for Center<W>where
W: Immutable,
impl<W> RefUnwindSafe for Center<W>where
W: RefUnwindSafe,
impl<W> Send for Center<W>where
W: Send,
impl<W> Sync for Center<W>where
W: Sync,
impl<W> Unpin for Center<W>where
W: Unpin,
impl<W> UnwindSafe for Center<W>where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more