Class Paintable.PaintableInterface

All Implemented Interfaces:
Proxy
Enclosing interface:
Paintable

public static class Paintable.PaintableInterface extends TypeInterface

The list of functions that can be implemented for the GdkPaintable interface.

Note that apart from the Paintable.snapshot(Snapshot, double, double) function, no virtual function of this interface is mandatory to implement, though it is a good idea to implement Paintable.getCurrentImage() for non-static paintables and Paintable.getFlags() if the image is not dynamic as the default implementation returns no flags and that will make the implementation likely quite slow.

  • Constructor Details

    • PaintableInterface

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

    • getMemoryLayout

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

      public void overrideSnapshot(Arena arena, @Nullable Method method)
      Override virtual method snapshot.
      Parameters:
      method - the method to invoke
    • overrideGetCurrentImage

      public void overrideGetCurrentImage(Arena arena, @Nullable Method method)
      Override virtual method get_current_image.
      Parameters:
      method - the method to invoke
    • overrideGetFlags

      public void overrideGetFlags(Arena arena, @Nullable Method method)
      Override virtual method get_flags.
      Parameters:
      method - the method to invoke
    • overrideGetIntrinsicWidth

      public void overrideGetIntrinsicWidth(Arena arena, @Nullable Method method)
      Override virtual method get_intrinsic_width.
      Parameters:
      method - the method to invoke
    • overrideGetIntrinsicHeight

      public void overrideGetIntrinsicHeight(Arena arena, @Nullable Method method)
      Override virtual method get_intrinsic_height.
      Parameters:
      method - the method to invoke
    • overrideGetIntrinsicAspectRatio

      public void overrideGetIntrinsicAspectRatio(Arena arena, @Nullable Method method)
      Override virtual method get_intrinsic_aspect_ratio.
      Parameters:
      method - the method to invoke