Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GskContainerNode

[12:7] extends: object

A render node that can contain other render nodes.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GskContainerNode (children = null, n_children = null)

    Creates a new GskRenderNode instance for holding the given @children. The new node will acquire a reference to each of the children.

    • @p children is The children of the node.
    • @p n_children is Number of children in the @children array.
  • 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.
  • asRenderNode ()

    Wraps this handle as GskRenderNode.

    • @r A GskRenderNode object.
  • get_child (int idx)

    Gets one of the children of @container.

    • @p idx is the position of the child to get.
    • @r the @idx'th child of @container.
  • get_n_children ()

    Retrieves the number of direct children of @node.

    • @r the number of children of the GskRenderNode.