ScrollInfo

Added in version 4.12.

class ScrollInfo(**kwargs)

The GtkScrollInfo can be used to provide more accurate data on how a scroll operation should be performed.

Scrolling functions usually allow passing a None scroll info which will cause the default values to be used and just scroll the element into view.

Constructors

class ScrollInfo
classmethod new() ScrollInfo

Creates a new scroll info for scrolling an element into view.

Added in version 4.12.

Methods

class ScrollInfo
get_enable_horizontal() bool

Checks if horizontal scrolling is enabled.

Added in version 4.12.

get_enable_vertical() bool

Checks if vertical scrolling is enabled.

Added in version 4.12.

set_enable_horizontal(horizontal: bool) None

Turns horizontal scrolling on or off.

Added in version 4.12.

Parameters:

horizontal – if scrolling in the horizontal direction should happen

set_enable_vertical(vertical: bool) None

Turns vertical scrolling on or off.

Added in version 4.12.

Parameters:

vertical – if scrolling in the vertical direction should happen