pub struct ScrollBar { /* private fields */ }Expand description
Scroll chrome helper matching FUI-AS ScrollBar.
This is not a retained Node; attach render to a retained
tree. It follows the active theme automatically. Per-instance theme
callbacks belong on the rendered FlexBox, avoiding a root/state ownership
cycle in this helper.
Implementations§
Source§impl ScrollBar
impl ScrollBar
pub fn new(scroll_state: ScrollState, orientation: Orientation) -> Self
pub fn thickness(&self) -> f32
pub fn render(&self) -> FlexBox
pub fn track_width(&self, value: f32) -> &Self
pub fn track_thickness(&self, value: f32) -> &Self
pub fn thumb_width(&self, value: f32) -> &Self
pub fn thumb_thickness(&self, value: f32) -> &Self
pub fn thumb_min_height(&self, value: f32) -> &Self
pub fn track_corner_radius(&self, radius: f32) -> &Self
pub fn thumb_corner_radius(&self, radius: f32) -> &Self
pub fn track_color(&self, color: u32) -> &Self
pub fn thumb_color(&self, color: u32) -> &Self
pub fn bind_scroll_handle(&self, handle: u64)
pub fn clear_scroll_handle(&self, handle: u64)
pub fn chrome_visible(&self, visible: bool)
pub fn refresh_now(&self)
pub fn can_start_thumb_drag(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ScrollBar
impl !Send for ScrollBar
impl !Sync for ScrollBar
impl !UnwindSafe for ScrollBar
impl Freeze for ScrollBar
impl Unpin for ScrollBar
impl UnsafeUnpin for ScrollBar
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