pub trait HasScrollBars {
    fn get_mode(&self) -> ScrollBarMode;
    fn set_mode(&mut self, mode: ScrollBarMode) -> TkAction;
    fn get_visible_bars(&self) -> (bool, bool);
    fn set_visible_bars(&mut self, bars: (bool, bool)) -> TkAction;

    fn with_auto_bars(self) -> Self
    where
        Self: Sized
, { ... } fn with_fixed_bars(self, horiz: bool, vert: bool) -> Self
    where
        Self: Sized
, { ... } fn with_invisible_bars(self, horiz: bool, vert: bool) -> Self
    where
        Self: Sized
, { ... } }
Expand description

Scroll bar control

Required Methods§

Get mode

Set mode

Get currently visible bars

Returns (horiz, vert) tuple.

Set enabled bars without adjusting mode

Note: if mode is Auto this has no effect.

This requires a TkAction::RESIZE.

Provided Methods§

Set auto mode (inline)

Set fixed bars (inline)

Set invisible bars (inline)

Implementors§