pub struct SliderGeometry {
pub radius: f32,
/* private fields */
}Expand description
Shared thumb travel for hit mapping and painting.
Fields§
§radius: f32Implementations§
Source§impl SliderGeometry
impl SliderGeometry
pub fn new(bounds: Rect, orientation: Orientation) -> Self
pub fn for_node(bounds: Rect, node: &Node) -> Self
Sourcepub fn with_layout_direction(
bounds: Rect,
node: &Node,
direction: LayoutDirection,
) -> Self
pub fn with_layout_direction( bounds: Rect, node: &Node, direction: LayoutDirection, ) -> Self
Resolve both painting and pointer positions using the effective direction.
pub fn position(&self, fraction: f64) -> Point
pub fn thumb_bounds(&self, index: usize, fraction: f64) -> Rect
pub fn fraction_at(&self, point: Point) -> Option<f64>
Auto Trait Implementations§
impl Forget for SliderGeometry
impl Freeze for SliderGeometry
impl Move for SliderGeometry
impl RefUnwindSafe for SliderGeometry
impl Send for SliderGeometry
impl Sync for SliderGeometry
impl Unpin for SliderGeometry
impl UnsafeUnpin for SliderGeometry
impl UnwindSafe for SliderGeometry
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