Class MemoryTexture

All Implemented Interfaces:
PointerInterface

public class MemoryTexture extends Texture
A `GdkTexture` representing image data in memory.

https://docs.gtk.org/gdk4/class.MemoryTexture.html

  • Constructor Details

    • MemoryTexture

      public MemoryTexture(PointerContainer pointer)
    • MemoryTexture

      public MemoryTexture(int width, int height, int format, @Nonnull Bytes bytes, long stride)
      Creates a new texture for a blob of image data.

      The `GBytes` must contain @stride × @height pixels
      in the given format.
      Parameters:
      width - the width of the texture
      height - the height of the texture
      format - the format of the data
      bytes - the `GBytes` containing the pixel data
      stride - rowstride for the data
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • asPaintable

      public Paintable asPaintable()
      Implements interface Paintable. Call this to get access to interface functions.
      Overrides:
      asPaintable in class Texture
      Returns:
      Paintable
    • asIcon

      public Icon asIcon()
      Implements interface Icon. Call this to get access to interface functions.
      Overrides:
      asIcon in class Texture
      Returns:
      Icon
    • asLoadableIcon

      public LoadableIcon asLoadableIcon()
      Implements interface LoadableIcon. Call this to get access to interface functions.
      Overrides:
      asLoadableIcon in class Texture
      Returns:
      LoadableIcon
    • 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()