About all my projects
Gnome::Gsk4::T-rendernode

Gnome::Gsk4::T-rendernode

Class initialization

new

Initialization of a type class is simple and only needed when the standalone functions are used.

method new ( )

Record N-Shadow

class N-Shadow:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {

  has N-Object $.color;
  has gfloat $.dx;
  has gfloat $.dy;
  has gfloat $.radius;
}
  • color; the color of the shadow

  • dx; the horizontal offset of the shadow

  • dy; the vertical offset of the shadow

  • radius; the radius of the shadow

Record N-ParseLocation

class N-ParseLocation:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {

  has gsize $.bytes;
  has gsize $.chars;
  has gsize $.lines;
  has gsize $.line-bytes;
  has gsize $.line-chars;
}
  • bytes; the offset of the location in the parse buffer, as bytes

  • chars; the offset of the location in the parse buffer, as characters

  • lines; the line of the location in the parse buffer

  • line-bytes; the position in the line, as bytes

  • line-chars; the position in the line, as characters

Record N-ColorStop

class N-ColorStop:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {

  has gfloat $.offset;
  has N-Object $.color;
}
  • offset; the offset of the color stop

  • color; the color at the given offset

Callback Functions

ParseErrorFunc

Signature

:(  N-Object $start, N-Object $end, N-Object $error, gpointer $user-data  )
  • start; start of the error location

  • end; end of the error location

  • error; the error

  • user-data; user data

Standalone Functions

value-dup-render-node

Retrieves the Gnome::Gsk4::RenderNode stored inside the given value, and acquires a reference to it.

method value-dup-render-node ( N-Object $value --> N-Object )
  • $value; a Value initialized with type GSK_TYPE_RENDER_NODE

Return value; a Gnome::Gsk4::RenderNode.

value-get-render-node

Retrieves the Gnome::Gsk4::RenderNode stored inside the given value.

method value-get-render-node ( N-Object $value --> N-Object )
  • $value; a Gnome::GObject::N-Value initialized with type GSK_TYPE_RENDER_NODE

Return value; a Gnome::Gsk4::RenderNode.

value-set-render-node

Stores the given Gnome::Gsk4::RenderNode inside value.

The Value will acquire a reference to the node.

method value-set-render-node ( N-Object $value, N-Object() $node )
  • $value; a Value initialized with type GSK_TYPE_RENDER_NODE

  • $node; a Gnome::Gsk4::RenderNode.

value-take-render-node

Stores the given Gnome::Gsk4::RenderNode inside value.

This function transfers the ownership of the node to the Gnome::GObject::N-Value.

method value-take-render-node ( N-Object $value, N-Object() $node )
  • $value; a Value initialized with type GSK_TYPE_RENDER_NODE

  • $node; (transfer ownership: full) a Gnome::Gsk4::RenderNode.