Package org.gnome.gdk
Class Paintable.PaintableInterface
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInterface
org.gnome.gdk.Paintable.PaintableInterface
- All Implemented Interfaces:
Proxy
- Enclosing interface:
Paintable
The list of functions that can be implemented for the
GdkPaintable
interface.
Note that apart from the Paintable.snapshot(org.gnome.gdk.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 Summary
ConstructorDescriptionAllocate a new PaintableInterface.PaintableInterface
(Arena arena) Allocate a new PaintableInterface.PaintableInterface
(MemorySegment address) Create a PaintableInterface proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideGetCurrentImage
(Arena arena, Method method) Override virtual methodget_current_image
.void
overrideGetFlags
(Arena arena, Method method) Override virtual methodget_flags
.void
overrideGetIntrinsicAspectRatio
(Arena arena, Method method) Override virtual methodget_intrinsic_aspect_ratio
.void
overrideGetIntrinsicHeight
(Arena arena, Method method) Override virtual methodget_intrinsic_height
.void
overrideGetIntrinsicWidth
(Arena arena, Method method) Override virtual methodget_intrinsic_width
.void
overrideSnapshot
(Arena arena, Method method) Override virtual methodsnapshot
.Methods inherited from class org.gnome.gobject.TypeInterface
addPrerequisite, getPlugin, instantiatablePrerequisite, peek, peekParent, prerequisites, readGInstanceType, readGType, writeGInstanceType, writeGType
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PaintableInterface
Create a PaintableInterface proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
PaintableInterface
Allocate a new PaintableInterface.- Parameters:
arena
- to control the memory allocation scope
-
PaintableInterface
public PaintableInterface()Allocate a new PaintableInterface. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideSnapshot
-
overrideGetCurrentImage
-
overrideGetFlags
-
overrideGetIntrinsicWidth
-
overrideGetIntrinsicHeight
-
overrideGetIntrinsicAspectRatio
-