pub struct HandleConfig {
pub size: f32,
pub color: [u8; 4],
pub selected_color: [u8; 4],
pub show_handles: bool,
}Expand description
Configuration for selection handle appearance and hit testing.
Fields§
§size: f32Handle diameter in pixels.
color: [u8; 4]Ring color of a handle as RGBA bytes (Color32::PLACEHOLDER.to_array(): the theme’s
accent).
selected_color: [u8; 4]Fill color of the handle being dragged as RGBA bytes
(Color32::PLACEHOLDER.to_array(): the theme’s accent).
show_handles: boolWhether to render handles at all (can be disabled for screenshot mode, etc.).
Trait Implementations§
Source§impl Clone for HandleConfig
impl Clone for HandleConfig
Source§fn clone(&self) -> HandleConfig
fn clone(&self) -> HandleConfig
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 HandleConfig
impl Debug for HandleConfig
Auto Trait Implementations§
impl Freeze for HandleConfig
impl RefUnwindSafe for HandleConfig
impl Send for HandleConfig
impl Sync for HandleConfig
impl Unpin for HandleConfig
impl UnsafeUnpin for HandleConfig
impl UnwindSafe for HandleConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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