pub struct ButtonOptions {
pub enabled: bool,
pub selected: bool,
}Expand description
Application-owned button availability and selection. Focus remains owned by
Ui; selection never changes tab order, hit regions, or activation.
Disabled takes precedence over selected. The default is enabled/unselected.
use ferravex_render::ui::ButtonOptions;
let selected = ButtonOptions { selected: true, ..Default::default() };
assert!(selected.enabled);Fields§
§enabled: bool§selected: boolTrait Implementations§
Source§impl Clone for ButtonOptions
impl Clone for ButtonOptions
Source§fn clone(&self) -> ButtonOptions
fn clone(&self) -> ButtonOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 ButtonOptions
impl Debug for ButtonOptions
Source§impl Default for ButtonOptions
impl Default for ButtonOptions
Source§fn default() -> ButtonOptions
fn default() -> ButtonOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ButtonOptions
impl PartialEq for ButtonOptions
impl Copy for ButtonOptions
impl Eq for ButtonOptions
impl StructuralPartialEq for ButtonOptions
Auto Trait Implementations§
impl Freeze for ButtonOptions
impl RefUnwindSafe for ButtonOptions
impl Send for ButtonOptions
impl Sync for ButtonOptions
impl Unpin for ButtonOptions
impl UnwindSafe for ButtonOptions
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