Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GtkScrollInfo

[14:7] extends: object

Provides detailed information 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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GtkScrollInfo (Handle = null)

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

    • @p Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • get_enable_horizontal ()

    Checks if horizontal scrolling is enabled.

    • @r %TRUE if horizontal scrolling is enabled..
  • get_enable_vertical ()

    Checks if vertical scrolling is enabled.

    • @r %TRUE if vertical scrolling is enabled..
  • ref ()

    Increases the reference count of a GtkScrollInfo by one.

    • @r the passed in GtkScrollInfo..
  • set_enable_horizontal (bool horizontal)

    Turns horizontal scrolling on or off.

    • @p horizontal is if scrolling in the horizontal direction should happen.
    • @r None.
  • set_enable_vertical (bool vertical)

    Turns vertical scrolling on or off.

    • @p vertical is if scrolling in the vertical direction should happen.
    • @r None.
  • unref ()

    Decreases the reference count of a GtkScrollInfo by one. If the resulting reference count is zero, frees the self.

    • @r None.