pub struct EuvSelectOption {
pub value: &'static str,
pub label: &'static str,
pub group: &'static str,
pub disabled: bool,
}Expand description
One entry of the euv_select option list.
Carries the machine value written into the selection signal, the label the user reads, the caption of the group the option belongs to, and whether the option can be picked at all.
Fields§
§value: &'static strThe machine value written into the selection signal when picked.
label: &'static strThe display label shown for this option.
group: &'static strThe caption of the group this option belongs to.
An empty caption places the option in the ungrouped block at the top of the panel, which is rendered without a caption row.
disabled: boolWhether the option is disabled.
A disabled option is drawn with the muted treatment and cannot be picked, so it never writes into the selection signal.
Implementations§
Source§impl EuvSelectOption
impl EuvSelectOption
pub fn get_value(&self) -> &'static str
pub fn get_mut_value(&mut self) -> &mut &'static str
pub fn set_value(&mut self, val: &'static str) -> &mut Self
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&mut self, val: &'static str) -> &mut Self
pub fn get_group(&self) -> &'static str
pub fn get_mut_group(&mut self) -> &mut &'static str
pub fn set_group(&mut self, val: &'static str) -> &mut Self
pub fn get_disabled(&self) -> bool
pub fn get_mut_disabled(&mut self) -> &mut bool
pub fn set_disabled(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvSelectOption
impl Clone for EuvSelectOption
impl Copy for EuvSelectOption
Source§impl Debug for EuvSelectOption
impl Debug for EuvSelectOption
Auto Trait Implementations§
impl Freeze for EuvSelectOption
impl RefUnwindSafe for EuvSelectOption
impl Send for EuvSelectOption
impl Sync for EuvSelectOption
impl Unpin for EuvSelectOption
impl UnsafeUnpin for EuvSelectOption
impl UnwindSafe for EuvSelectOption
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