pub struct Radio { /* private fields */ }Implementations§
Source§impl Radio
impl Radio
pub fn new() -> Self
pub fn set_checked(self, checked: bool) -> Self
pub fn on_checked<F>(self, callback: F) -> Self
pub fn on_unchecked<F>(self, callback: F) -> Self
Trait Implementations§
Source§impl Widget for Radio
impl Widget for Radio
type Ret = Entity
type Data = bool
fn on_build(&mut self, state: &mut State, entity: Entity) -> Self::Ret
fn on_event(&mut self, state: &mut State, entity: Entity, event: &mut Event)
fn widget_name(&self) -> String
Source§fn build<F>(
self,
state: &mut State,
parent: impl AsEntity,
builder: F,
) -> Self::Ret
fn build<F>( self, state: &mut State, parent: impl AsEntity, builder: F, ) -> Self::Ret
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids
fn bind<L, F>(self, lens: L, converter: F) -> Wrapper<L, Self>
fn bind2<L>(self, lens: L) -> LensWrap<L, Self>where
L: Lens,
fn on_update(&mut self, state: &mut State, entity: Entity, data: &Self::Data)
fn on_style( &mut self, state: &mut State, entity: Entity, property: (String, PropType), )
fn on_draw( &mut self, state: &mut State, entity: Entity, canvas: &mut Canvas<OpenGl>, )
Auto Trait Implementations§
impl Freeze for Radio
impl !RefUnwindSafe for Radio
impl !Send for Radio
impl !Sync for Radio
impl Unpin for Radio
impl UnsafeUnpin for Radio
impl !UnwindSafe for Radio
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