Klasse TextureScaleNode

Alle implementierten Schnittstellen:
PointerInterface

public class TextureScaleNode extends RenderNode
A render node for a `GdkTexture`, with control over scaling.

https://docs.gtk.org/gsk4/class.TextureScaleNode.html

  • Konstruktordetails

    • TextureScaleNode

      public TextureScaleNode(PointerContainer pointer)
    • TextureScaleNode

      public TextureScaleNode(@Nonnull Texture texture, @Nonnull Rect bounds, int 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.
      Parameter:
      texture - the texture to scale
      bounds - the size of the texture to scale to
      filter - how to scale the texture
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getFilter

      public int getFilter()
      Retrieves the `GskScalingFilter` used when creating this `GskRenderNode`.
      Gibt zurück:
      the `GskScalingFilter`
    • getTexture

      public Texture getTexture()
      Retrieves the `GdkTexture` used when creating this `GskRenderNode`.
      Gibt zurück:
      the `GdkTexture`
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()