Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: StrokeNode

[13:7] extends: object

A render node that will fill the area determined by stroking the the given [struct@Gsk.Path] using the [struct@Gsk.Stroke] attributes.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • StrokeNode (child = null, path = null, stroke = null)

    Creates a #GskRenderNode that will fill the outline generated by stroking the given @path using the attributes defined in @stroke. The area is filled with @child. GSK aims to follow the SVG semantics for stroking paths. E.g. zero-length contours will get round or square line caps drawn, regardless whether they are closed or not.

    • @p child is The node to stroke the area with.
    • @p path is The path describing the area to stroke.
    • @p stroke is The stroke attributes to use.
  • 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 RenderNode.

    • @r A RenderNode object.
  • get_child ()

    Gets the child node that is getting drawn by the given @node.

  • get_path ()

    Retrieves the path that will be stroked with the contents of the @node.

  • get_stroke ()

    Retrieves the stroke attributes used in this @node.