Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GtkCustomLayout

[15:7] extends: object

Uses closures for size negotiation. A GtkCustomLayout uses closures matching to the old GtkWidget virtual functions for size negotiation, as a convenience API to ease the porting towards the corresponding GtkLayoutManager virtual functions.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GtkCustomLayout (request_mode = null, measure = null, allocate = null)

    Creates a new legacy layout manager. Legacy layout managers map to the old GtkWidget size negotiation virtual functions, and are meant to be used during the transition from layout containers to layout manager delegates.

    • @p request_mode is a function to retrieve the GtkSizeRequestMode of the widget using the layout; the default request mode is %GTK_SIZE_REQUEST_CONSTANT_SIZE.
    • @p measure is a function to measure the widget using the layout manager.
    • @p allocate is a function to allocate the children of the widget using the layout manager.
  • 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.
  • asLayoutManager ()

    Wraps this handle as GtkLayoutManager.

    • @r A GtkLayoutManager object.