pub struct ScrollBar { /* private fields */ }Available on macOS only.
Implementations§
Source§impl ScrollBar
impl ScrollBar
pub fn new(parent: impl AsContainer) -> Result<Self>
pub fn is_visible(&self) -> Result<bool>
pub fn set_visible(&mut self, v: bool) -> Result<()>
pub fn is_enabled(&self) -> Result<bool>
pub fn set_enabled(&mut self, v: bool) -> Result<()>
pub fn preferred_size(&self) -> Result<Size>
pub fn loc(&self) -> Result<Point>
pub fn set_loc(&mut self, p: Point) -> Result<()>
pub fn size(&self) -> Result<Size>
pub fn set_size(&mut self, v: Size) -> Result<()>
pub fn tooltip(&self) -> Result<String>
pub fn set_tooltip(&mut self, s: impl AsRef<str>) -> Result<()>
pub fn orient(&self) -> Result<Orient>
pub fn set_orient(&mut self, v: Orient) -> Result<()>
pub fn minimum(&self) -> Result<usize>
pub fn set_minimum(&mut self, v: usize) -> Result<()>
pub fn maximum(&self) -> Result<usize>
pub fn set_maximum(&mut self, v: usize) -> Result<()>
pub fn page(&self) -> Result<usize>
pub fn set_page(&mut self, v: usize) -> Result<()>
pub fn pos(&self) -> Result<usize>
pub fn set_pos(&mut self, v: usize) -> Result<()>
pub async fn wait_change(&self)
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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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