[−][src]Trait ringui::Control
Required Methods
Methods
impl dyn Control
impl dyn Control
pub fn is<T: Control>(&self) -> bool
pub fn is<T: Control>(&self) -> bool
Returns 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) -> &T
Returns 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 T
Returns 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 Control
pub 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 GroupH
impl Control for GroupV
[src]
impl Control for GroupV
impl Control for Button
[src]
impl Control for Button
impl Control for Graph
[src]
impl Control for Graph
impl Control for Label
[src]
impl Control for Label
impl Control for Panel
[src]
impl Control for Panel
impl Control for Scrollbar
[src]
impl Control for Scrollbar
impl Control for Separator
[src]
impl Control for Separator
impl Control for Tabs
[src]
impl Control for Tabs
impl Control for Toggle
[src]
impl Control for Toggle
impl Control for Tree
[src]
impl Control for Tree
impl Control for TreeFromDebug
[src]
impl Control for TreeFromDebug
impl<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>