pub struct ScrollbarDrawRect {
pub origin: Vec2,
pub size: Vec2,
pub color: Color,
pub radius: f32,
}Expand description
One rounded solid rect of an overlay scrollbar (track or thumb).
Fields§
§origin: Vec2Top-left in window coordinates.
size: Vec2Width x height in logical pixels.
color: ColorSolid fill (fade alpha already folded in).
radius: f32Corner radius (pill = half the bar thickness).
Trait Implementations§
Source§impl Clone for ScrollbarDrawRect
impl Clone for ScrollbarDrawRect
Source§fn clone(&self) -> ScrollbarDrawRect
fn clone(&self) -> ScrollbarDrawRect
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 ScrollbarDrawRect
impl Debug for ScrollbarDrawRect
Source§impl PartialEq for ScrollbarDrawRect
impl PartialEq for ScrollbarDrawRect
Source§fn eq(&self, other: &ScrollbarDrawRect) -> bool
fn eq(&self, other: &ScrollbarDrawRect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ScrollbarDrawRect
impl StructuralPartialEq for ScrollbarDrawRect
Auto Trait Implementations§
impl Freeze for ScrollbarDrawRect
impl RefUnwindSafe for ScrollbarDrawRect
impl Send for ScrollbarDrawRect
impl Sync for ScrollbarDrawRect
impl Unpin for ScrollbarDrawRect
impl UnsafeUnpin for ScrollbarDrawRect
impl UnwindSafe for ScrollbarDrawRect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.