[][src]Struct fui_core::StyledControl

pub struct StyledControl<D> {
    pub data: D,
    pub style: Box<dyn Style<D>>,
    pub control_context: ControlContext,
}

Fields

data: Dstyle: Box<dyn Style<D>>control_context: ControlContext

Implementations

impl<D: 'static> StyledControl<D>[src]

pub fn new(
    data: D,
    style: Box<dyn Style<D>>,
    view_context: ViewContext
) -> Rc<RefCell<Self>>
[src]

pub fn get_context(&self) -> &ControlContext[src]

pub fn get_context_mut(&mut self) -> &mut ControlContext[src]

Trait Implementations

impl<D: 'static> ControlBehavior for StyledControl<D>[src]

impl<D: 'static> ControlObject for StyledControl<D>[src]

Auto Trait Implementations

impl<D> !RefUnwindSafe for StyledControl<D>

impl<D> !Send for StyledControl<D>

impl<D> !Sync for StyledControl<D>

impl<D> Unpin for StyledControl<D> where
    D: Unpin

impl<D> !UnwindSafe for StyledControl<D>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any