pub struct ControlRegistry { /* private fields */ }Implementations§
Source§impl ControlRegistry
impl ControlRegistry
pub fn register_control( &mut self, window: AppWindowId, frame_id: FrameId, id: ControlId, control: ControlEntry, )
pub fn register_label( &mut self, window: AppWindowId, frame_id: FrameId, id: ControlId, label: LabelEntry, )
pub fn register_description( &mut self, window: AppWindowId, frame_id: FrameId, id: ControlId, description: DescriptionEntry, )
pub fn register_error( &mut self, window: AppWindowId, frame_id: FrameId, id: ControlId, error: ErrorEntry, )
pub fn control_for( &self, window: AppWindowId, id: &ControlId, ) -> Option<&ControlEntry>
pub fn label_for( &self, window: AppWindowId, id: &ControlId, ) -> Option<&LabelEntry>
pub fn description_for( &self, window: AppWindowId, id: &ControlId, ) -> Option<&DescriptionEntry>
pub fn error_for( &self, window: AppWindowId, id: &ControlId, ) -> Option<&ErrorEntry>
pub fn described_by_for( &self, window: AppWindowId, id: &ControlId, ) -> Option<GlobalElementId>
Trait Implementations§
Source§impl Clone for ControlRegistry
impl Clone for ControlRegistry
Source§fn clone(&self) -> ControlRegistry
fn clone(&self) -> ControlRegistry
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 Debug for ControlRegistry
impl Debug for ControlRegistry
Source§impl Default for ControlRegistry
impl Default for ControlRegistry
Source§fn default() -> ControlRegistry
fn default() -> ControlRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ControlRegistry
impl !RefUnwindSafe for ControlRegistry
impl !Send for ControlRegistry
impl !Sync for ControlRegistry
impl Unpin for ControlRegistry
impl UnsafeUnpin for ControlRegistry
impl !UnwindSafe for ControlRegistry
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