Gnome::Gtk4::N-ScrollInfo
Description
The Gnome::Gtk4::N-ScrollInfo can be used to provide more accurate data on how a scroll operation should be performed.
Scrolling functions usually allow passing a undefined scroll info which will cause the default values to be used and just scroll the element into view.
Class initialization
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-scrollinfo
Creates a new scroll info for scrolling an element into view.
method new-scrollinfo ( --> Gnome::Gtk4::ScrollInfo \)
Methods
get-enable-horizontal
Checks if horizontal scrolling is enabled.
method get-enable-horizontal (--> Bool )
Return value; True
if horizontal scrolling is enabled..
get-enable-vertical
Checks if vertical scrolling is enabled.
method get-enable-vertical (--> Bool )
Return value; True
if vertical scrolling is enabled..
ref
Increases the reference count of a Gnome::Gtk4::N-ScrollInfo by one.
method ref (--> N-Object )
Return value; the passed in Gnome::Gtk4::N-ScrollInfo..
set-enable-horizontal
Turns horizontal scrolling on or off.
method set-enable-horizontal ( Bool() $horizontal )
$horizontal; if scrolling in the horizontal direction should happen.
set-enable-vertical
Turns vertical scrolling on or off.
method set-enable-vertical ( Bool() $vertical )
$vertical; if scrolling in the vertical direction should happen.
unref
Decreases the reference count of a Gnome::Gtk4::N-ScrollInfo by one.
If the resulting reference count is zero, frees the self.
method unref ( )