[−][src]Trait ringui::Control
Required Methods
Methods
impl dyn Control
impl dyn Controlpub fn is<T: Control>(&self) -> bool
pub fn is<T: Control>(&self) -> boolReturns true if the boxed type is the same as T
pub fn downcast_ref<T: Control>(&self) -> Option<&T>
pub fn downcast_ref<T: Control>(&self) -> Option<&T>Returns some reference to the boxed value if it is of type T, or
None if it isn't.
pub unsafe fn downcast_ref_unchecked<T: Control>(&self) -> &T
pub unsafe fn downcast_ref_unchecked<T: Control>(&self) -> &TReturns a reference to the boxed value, blindly assuming it to be of type T.
If you are not absolutely certain of T, you must not call this.
pub fn downcast_mut<T: Control>(&mut self) -> Option<&mut T>
pub fn downcast_mut<T: Control>(&mut self) -> Option<&mut T>Returns some mutable reference to the boxed value if it is of type T, or
None if it isn't.
pub unsafe fn downcast_mut_unchecked<T: Control>(&mut self) -> &mut T
pub unsafe fn downcast_mut_unchecked<T: Control>(&mut self) -> &mut TReturns a mutable reference to the boxed value, blindly assuming it to be of type T.
If you are not absolutely certain of T, you must not call this.
impl dyn Control
impl dyn Controlpub fn downcast<T: Control>(self: Box<Self>) -> Result<Box<T>, Box<Self>>
pub fn downcast<T: Control>(self: Box<Self>) -> Result<Box<T>, Box<Self>>Returns the boxed value if it is of type T, or Err(Self) if it isn't.
pub unsafe fn downcast_unchecked<T: Control>(self: Box<Self>) -> Box<T>
pub unsafe fn downcast_unchecked<T: Control>(self: Box<Self>) -> Box<T>Returns the boxed value, blindly assuming it to be of type T.
If you are not absolutely certain of T, you must not call this.
Implementors
impl Control for GroupH[src]
impl Control for GroupHimpl Control for GroupV[src]
impl Control for GroupVimpl Control for Button[src]
impl Control for Buttonimpl Control for Graph[src]
impl Control for Graphimpl Control for Label[src]
impl Control for Labelimpl Control for Panel[src]
impl Control for Panelimpl Control for Scrollbar[src]
impl Control for Scrollbarimpl Control for Separator[src]
impl Control for Separatorimpl Control for Tabs[src]
impl Control for Tabsimpl Control for Toggle[src]
impl Control for Toggleimpl Control for Tree[src]
impl Control for Treeimpl Control for TreeFromDebug[src]
impl Control for TreeFromDebugimpl<E: EnumIter + Any + 'static + Clone> Control for ListBox<E>[src]
impl<E: EnumIter + Any + 'static + Clone> Control for ListBox<E>impl<E: EnumIter + Any + 'static + Clone> Control for ListBoxMulti<E>[src]
impl<E: EnumIter + Any + 'static + Clone> Control for ListBoxMulti<E>impl<E: EnumIter + Any + 'static + Clone> Control for ListBoxOption<E>[src]
impl<E: EnumIter + Any + 'static + Clone> Control for ListBoxOption<E>impl<T: Any + Clone + Debug + 'static> Control for ReadnOnlyRange<T>[src]
impl<T: Any + Clone + Debug + 'static> Control for ReadnOnlyRange<T>impl<T: Any + Debug + 'static + Clone> Control for Slider<T>[src]
impl<T: Any + Debug + 'static + Clone> Control for Slider<T>impl<T: FromStr + ToString + Clone + Debug + 'static> Control for TextBox<T>[src]
impl<T: FromStr + ToString + Clone + Debug + 'static> Control for TextBox<T>