:right-sidebar: True ScrollInfo =================================================================== .. currentmodule:: gi.repository.Gtk .. versionadded:: 4.12 .. class:: ScrollInfo(**kwargs) :no-contents-entry: :Constructors: :: new() -> Gtk.ScrollInfo Constructors ------------ .. rst-class:: interim-class .. class:: ScrollInfo :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.ScrollInfo Creates a new scroll info for scrolling an element into view. .. versionadded:: 4.12 Methods ------- .. rst-class:: interim-class .. class:: ScrollInfo :no-index: .. method:: get_enable_horizontal() -> bool Checks if horizontal scrolling is enabled. .. versionadded:: 4.12 .. method:: get_enable_vertical() -> bool Checks if vertical scrolling is enabled. .. versionadded:: 4.12 .. method:: set_enable_horizontal(horizontal: bool) -> None Turns horizontal scrolling on or off. .. versionadded:: 4.12 :param horizontal: if scrolling in the horizontal direction should happen .. method:: set_enable_vertical(vertical: bool) -> None Turns vertical scrolling on or off. .. versionadded:: 4.12 :param vertical: if scrolling in the vertical direction should happen