[−][src]Struct fui_core::StyledControl
Fields
data: D
style: 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]
data: D,
style: Box<dyn Style<D>>,
view_context: ViewContext
) -> Rc<RefCell<Self>>
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]
fn setup(&mut self)
[src]
fn handle_event(
&mut self,
drawing_context: &mut dyn DrawingContext,
event_context: &mut dyn EventContext,
event: ControlEvent
)
[src]
&mut self,
drawing_context: &mut dyn DrawingContext,
event_context: &mut dyn EventContext,
event: ControlEvent
)
fn measure(&mut self, drawing_context: &mut dyn DrawingContext, size: Size)
[src]
fn set_rect(&mut self, rect: Rect)
[src]
fn get_rect(&self) -> Rect
[src]
fn hit_test(&self, point: Point) -> HitTestResult
[src]
fn to_primitives(
&self,
drawing_context: &mut dyn DrawingContext
) -> (Vec<Primitive>, Vec<Primitive>)
[src]
&self,
drawing_context: &mut dyn DrawingContext
) -> (Vec<Primitive>, Vec<Primitive>)
impl<D: 'static> ControlObject for StyledControl<D>
[src]
fn get_context(&self) -> &ControlContext
[src]
fn get_context_mut(&mut self) -> &mut ControlContext
[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,
D: Unpin,
impl<D> !UnwindSafe for StyledControl<D>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,