About my projects, examples and tutorials
Gnome::Gtk4::N-ScrollInfo

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 an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-scrollinfo§

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

method new-scrollinfo ( --> Gnome::Gtk4::ScrollInfo )
Code

Methods§

get-enable-horizontal§

Checks if horizontal scrolling is enabled.

method get-enable-horizontal (--> Bool )
Code

Return value; True if horizontal scrolling is enabled..

get-enable-vertical§

Checks if vertical scrolling is enabled.

method get-enable-vertical (--> Bool )
Code

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 )
Code

Return value; the passed in Gnome::Gtk4::N-ScrollInfo..

set-enable-horizontal§

Turns horizontal scrolling on or off.

method set-enable-horizontal ( Bool() $horizontal )
Code
  • $horizontal; if scrolling in the horizontal direction should happen.

set-enable-vertical§

Turns vertical scrolling on or off.

method set-enable-vertical ( Bool() $vertical )
Code
  • $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 ( )
Code