pub struct DynContainer<State: UIStateCl> {
pub inside: Vec<Box<dyn ObjPosForm<State>>>,
pub pos: Position,
pub align_direction: Direction,
pub interval: Position,
}Fields§
§inside: Vec<Box<dyn ObjPosForm<State>>>§pos: Position§align_direction: Direction§interval: PositionImplementations§
Source§impl<State: UIStateCl> DynContainer<State>
impl<State: UIStateCl> DynContainer<State>
pub fn calc_insides(&self) -> Vec<Box<dyn ObjPosForm<State>>>
Trait Implementations§
Source§impl<State: Clone + UIStateCl> Clone for DynContainer<State>
impl<State: Clone + UIStateCl> Clone for DynContainer<State>
Source§fn clone(&self) -> DynContainer<State>
fn clone(&self) -> DynContainer<State>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<State: UIStateCl> Default for DynContainer<State>
impl<State: UIStateCl> Default for DynContainer<State>
Source§impl<State: UIStateCl> Form<State> for DynContainer<State>
impl<State: UIStateCl> Form<State> for DynContainer<State>
fn draw( &mut self, app: &mut App, gfx: &mut Graphics, plugins: &mut Plugins, state: &mut State, )
fn after( &mut self, app: &mut App, gfx: &mut Graphics, plugins: &mut Plugins, state: &mut State, )
fn on_event( &mut self, event: Event, app: &mut App, gfx: &mut Graphics, plugins: &mut Plugins, state: &mut State, )
Auto Trait Implementations§
impl<State> Freeze for DynContainer<State>
impl<State> !RefUnwindSafe for DynContainer<State>
impl<State> !Send for DynContainer<State>
impl<State> !Sync for DynContainer<State>
impl<State> Unpin for DynContainer<State>
impl<State> !UnwindSafe for DynContainer<State>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.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>
Converts
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>
Converts
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 more