Struct OverlayBuilder

Source
pub struct OverlayBuilder<G: GroupExt + Clone = Group, F: Borrow<WrapperFactory> = WrapperFactory> { /* private fields */ }

Implementations§

Source§

impl<G: GroupExt + Clone> OverlayBuilder<G>

Source

pub fn new(group: G) -> Self

Source§

impl<G: GroupExt + Clone, F: Borrow<WrapperFactory>> OverlayBuilder<G, F>

Source

pub fn with_factory(group: G, factory: F) -> Self

Source

pub fn with_left_padding(self, padding: i32) -> Self

Source

pub fn with_top_padding(self, padding: i32) -> Self

Source

pub fn with_right_padding(self, padding: i32) -> Self

Source

pub fn with_bottom_padding(self, padding: i32) -> Self

Source

pub fn with_padding(self, left: i32, top: i32, right: i32, bottom: i32) -> Self

Source

pub fn add<E: LayoutElement + 'static>(&mut self, element: E)

Source

pub fn add_shared(&mut self, element: Rc<dyn LayoutElement>)

Source

pub fn wrap<W: IntoWidget + 'static>(&mut self, widget: W) -> W

Source

pub fn end(self) -> Overlay<G>

Auto Trait Implementations§

§

impl<G, F> Freeze for OverlayBuilder<G, F>
where F: Freeze, G: Freeze,

§

impl<G = Group, F = WrapperFactory> !RefUnwindSafe for OverlayBuilder<G, F>

§

impl<G = Group, F = WrapperFactory> !Send for OverlayBuilder<G, F>

§

impl<G = Group, F = WrapperFactory> !Sync for OverlayBuilder<G, F>

§

impl<G, F> Unpin for OverlayBuilder<G, F>
where F: Unpin, G: Unpin,

§

impl<G = Group, F = WrapperFactory> !UnwindSafe for OverlayBuilder<G, F>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.