Package org.gnome.gtk
Class ScrollInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.ScrollInfo
- All Implemented Interfaces:
Proxy
The
GtkScrollInfo
can be used to provide more accurate data on how a scroll
operation should be performed.
Scrolling functions usually allow passing a null
scroll info which will cause
the default values to be used and just scroll the element into view.
-
Constructor Summary
ConstructorDescriptionCreates a new scroll info for scrolling an element into view.ScrollInfo
(MemorySegment address) Create a ScrollInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if horizontal scrolling is enabled.boolean
Checks if vertical scrolling is enabled.static Type
getType()
Get the GType of the ScrollInfo classref()
Increases the reference count of aGtkScrollInfo
by one.void
setEnableHorizontal
(boolean horizontal) Turns horizontal scrolling on or off.void
setEnableVertical
(boolean vertical) Turns vertical scrolling on or off.void
unref()
Decreases the reference count of aGtkScrollInfo
by one.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ScrollInfo
Create a ScrollInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ScrollInfo
public ScrollInfo()Creates a new scroll info for scrolling an element into view.
-
-
Method Details
-
getType
-
getEnableHorizontal
public boolean getEnableHorizontal()Checks if horizontal scrolling is enabled.- Returns:
true
if horizontal scrolling is enabled.
-
getEnableVertical
public boolean getEnableVertical()Checks if vertical scrolling is enabled.- Returns:
true
if vertical scrolling is enabled.
-
ref
Increases the reference count of aGtkScrollInfo
by one.- Returns:
- the passed in
GtkScrollInfo
.
-
setEnableHorizontal
public void setEnableHorizontal(boolean horizontal) Turns horizontal scrolling on or off.- Parameters:
horizontal
- if scrolling in the horizontal direction should happen
-
setEnableVertical
public void setEnableVertical(boolean vertical) Turns vertical scrolling on or off.- Parameters:
vertical
- if scrolling in the vertical direction should happen
-
unref
public void unref()Decreases the reference count of aGtkScrollInfo
by one.If the resulting reference count is zero, frees the self.
-