pub struct CheckboxGroup { /* private fields */ }Implementations§
Source§impl CheckboxGroup
impl CheckboxGroup
pub fn new( options: Vec<impl Into<SharedString>>, selected: Vec<usize>, cx: &mut Context<'_, Self>, ) -> Self
pub fn disabled(self, d: bool, cx: &mut Context<'_, Self>) -> Self
pub fn on_change( self, cb: impl Fn(Vec<usize>, &mut Window, &mut App) + 'static, ) -> Self
pub fn layout(self, layout: CheckboxGroupLayout) -> Self
pub fn vertical(self) -> Self
pub fn horizontal(self) -> Self
pub fn size(self, size: CheckboxGroupSize) -> Self
pub fn large(self) -> Self
pub fn small(self) -> Self
pub fn stretch(self, stretch: bool) -> Self
pub fn block(self, block: bool) -> Self
pub fn option_style(self, style: CheckboxOptionStyle) -> Self
pub fn option_renderer( self, renderer: impl Fn(CheckboxOptionRenderContext) -> AnyElement + 'static, ) -> Self
pub fn card_options(self) -> Self
pub fn is_stretched(&self) -> bool
pub fn layout_kind(&self) -> CheckboxGroupLayout
pub fn size_kind(&self) -> CheckboxGroupSize
pub fn register_key_bindings(_cx: &mut App)
Trait Implementations§
Source§impl Focusable for CheckboxGroup
impl Focusable for CheckboxGroup
Source§fn focus_handle(&self, _cx: &App) -> FocusHandle
fn focus_handle(&self, _cx: &App) -> FocusHandle
Returns the focus handle associated with this view.
Source§impl Render for CheckboxGroup
impl Render for CheckboxGroup
Auto Trait Implementations§
impl !RefUnwindSafe for CheckboxGroup
impl !Send for CheckboxGroup
impl !Sync for CheckboxGroup
impl !UnwindSafe for CheckboxGroup
impl Freeze for CheckboxGroup
impl Unpin for CheckboxGroup
impl UnsafeUnpin for CheckboxGroup
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more