Struct egui::style::Interaction
source · pub struct Interaction {
pub resize_grab_radius_side: f32,
pub resize_grab_radius_corner: f32,
pub show_tooltips_only_when_still: bool,
pub tooltip_delay: f32,
pub selectable_labels: bool,
pub multi_widget_text_select: bool,
}
Expand description
How and when interaction happens.
Fields§
§resize_grab_radius_side: f32
Mouse must be this close to the side of a window to resize
resize_grab_radius_corner: f32
Mouse must be this close to the corner of a window to resize
show_tooltips_only_when_still: bool
If false
, tooltips will show up anytime you hover anything, even is mouse is still moving
tooltip_delay: f32
Delay in seconds before showing tooltips after the mouse stops moving
selectable_labels: bool
Can you select the text on a crate::Label
by default?
multi_widget_text_select: bool
Can the user select text that span multiple labels?
The default is true
, but text seelction can be slightly glitchy,
so you may want to disable it.
Implementations§
Trait Implementations§
source§impl Clone for Interaction
impl Clone for Interaction
source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
Returns a copy 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 Interaction
impl Debug for Interaction
source§impl Default for Interaction
impl Default for Interaction
source§impl<'de> Deserialize<'de> for Interactionwhere
Interaction: Default,
impl<'de> Deserialize<'de> for Interactionwhere
Interaction: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Interaction
impl PartialEq for Interaction
source§fn eq(&self, other: &Interaction) -> bool
fn eq(&self, other: &Interaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Interaction
impl Serialize for Interaction
impl StructuralPartialEq for Interaction
Auto Trait Implementations§
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnwindSafe for Interaction
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