Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TextureScaleNode

[13:7] extends: object

A render node for a GdkTexture, with control over scaling.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • TextureScaleNode (texture = null, bounds = null, filter = null)

    Creates a node that scales the texture to the size given by the bounds using the filter and then places it at the bounds' position. Note that further scaling and other transformations which are applied to the node will apply linear filtering to the resulting texture, as usual. This node is intended for tight control over scaling applied to a texture, such as in image editors and requires the application to be aware of the whole render tree as further transforms may be applied that conflict with the desired effect of this node.

    • @p texture is the texture to scale.
    • @p bounds is the size of the texture to scale to.
    • @p filter is how to scale the texture.
  • 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_filter ()

    Retrieves the GskScalingFilter used when creating this GskRenderNode.

  • get_texture ()

    Retrieves the GdkTexture used when creating this GskRenderNode.