pub struct ControlContext { /* private fields */ }Implementations§
Source§impl ControlContext
impl ControlContext
pub fn new(view_context: ViewContext) -> Self
pub fn get_self_weak(&self) -> Weak<RefCell<dyn ControlObject>>
pub fn get_self_rc(&self) -> Rc<RefCell<dyn ControlObject>>
pub fn set_self(&mut self, self_weak: Weak<RefCell<dyn ControlObject>>)
pub fn get_parent(&self) -> Option<Rc<RefCell<dyn ControlObject>>>
pub fn set_parent(&mut self, parent_rc: &Rc<RefCell<dyn ControlObject>>)
pub fn get_children(&self) -> &Children
pub fn set_children_collection_changed_event_subscription( &mut self, s: Option<Subscription>, )
pub fn get_attached_values(&self) -> &TypeMap
pub fn set_attached_values(&mut self, attached_values: TypeMap)
pub fn get_services(&self) -> &Option<Services>
pub fn set_services(&mut self, services: Option<Services>)
pub fn get_rect(&self) -> Rect
pub fn set_rect(&mut self, rect: Rect)
pub fn is_dirty(&self) -> bool
pub fn set_is_dirty(&mut self, is_dirty: bool)
pub fn dirty_watch_property<T>(&mut self, property: &Property<T>)
pub fn dirty_watch_attached_properties(&mut self)
Auto Trait Implementations§
impl Freeze for ControlContext
impl !RefUnwindSafe for ControlContext
impl !Send for ControlContext
impl !Sync for ControlContext
impl Unpin for ControlContext
impl !UnwindSafe for ControlContext
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