pub struct ButtonField {
pub button_type: ButtonType,
pub options: Vec<String>,
pub no_toggle_to_off: bool,
pub is_radio: bool,
pub is_pushbutton: bool,
pub radios_in_unison: bool,
}Expand description
/FT /Btn — pushbutton, checkbox, or radio button.
Fields§
§options: Vec<String>/Opt — for radio groups, the export value of each child
widget in declaration order.
no_toggle_to_off: boolBit 15 — NoToggleToOff (radio): one button must always be on.
is_radio: boolBit 16 — Radio: this is a radio group (else checkbox).
Bit 17 — Pushbutton: action button, no value.
radios_in_unison: boolBit 26 — RadiosInUnison: radios with same /V toggle together.
Trait Implementations§
Source§impl Clone for ButtonField
impl Clone for ButtonField
Source§fn clone(&self) -> ButtonField
fn clone(&self) -> ButtonField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ButtonField
impl Debug for ButtonField
Source§impl Default for ButtonField
impl Default for ButtonField
Source§fn default() -> ButtonField
fn default() -> ButtonField
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ButtonField
impl RefUnwindSafe for ButtonField
impl Send for ButtonField
impl Sync for ButtonField
impl Unpin for ButtonField
impl UnsafeUnpin for ButtonField
impl UnwindSafe for ButtonField
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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