Class TextureScaleNode

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class TextureScaleNode extends RenderNode
A render node for a GdkTexture, with control over scaling.
Since:
4.10
  • Constructor Details

    • TextureScaleNode

      public TextureScaleNode(MemorySegment address)
      Create a TextureScaleNode instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • TextureScaleNode

      public TextureScaleNode(Texture texture, Rect bounds, ScalingFilter filter)

      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.

      Parameters:
      texture - the texture to scale
      bounds - the size of the texture to scale to
      filter - how to scale the texture
      Since:
      4.10
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the TextureScaleNode class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected TextureScaleNode asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class RenderNode
      Returns:
      the instance as if it were its parent type
    • getFilter

      public ScalingFilter getFilter()
      Retrieves the GskScalingFilter used when creating this GskRenderNode.
      Returns:
      the GskScalingFilter
      Since:
      4.10
    • getTexture

      public Texture getTexture()
      Retrieves the GdkTexture used when creating this GskRenderNode.
      Returns:
      the GdkTexture
      Since:
      4.10