pub struct PaneControlsConfig {
pub button_size: f32,
pub button_gap: f32,
pub padding: f32,
pub rounding: f32,
pub offset_x: f32,
pub offset_y: f32,
}Expand description
Configuration for pane controls
Fields§
Button size (square)
Gap between buttons
padding: f32Padding inside the control bar
rounding: f32Corner radius for the control bar background
offset_x: f32Offset from pane corner
offset_y: f32Offset vertical, in egui logical points.
Trait Implementations§
Source§impl Clone for PaneControlsConfig
impl Clone for PaneControlsConfig
Source§fn clone(&self) -> PaneControlsConfig
fn clone(&self) -> PaneControlsConfig
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 PaneControlsConfig
impl Debug for PaneControlsConfig
Auto Trait Implementations§
impl Freeze for PaneControlsConfig
impl RefUnwindSafe for PaneControlsConfig
impl Send for PaneControlsConfig
impl Sync for PaneControlsConfig
impl Unpin for PaneControlsConfig
impl UnsafeUnpin for PaneControlsConfig
impl UnwindSafe for PaneControlsConfig
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