GdkPaintableInterface

The list of functions that can be implemented for the gdk.paintable.Paintable interface.

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

Members

Variables

gIface
GTypeInterface gIface;
getCurrentImage
GdkPaintable* function(GdkPaintable* paintable) getCurrentImage;

return a gdk.paintable.Paintable that does not change over time. This means the gdk.types.PaintableFlags.Size and gdk.types.PaintableFlags.Contents flag are set.

getFlags
GdkPaintableFlags function(GdkPaintable* paintable) getFlags;

Get the flags for this instance. See gdk.types.PaintableFlags for details.

getIntrinsicAspectRatio
double function(GdkPaintable* paintable) getIntrinsicAspectRatio;

The preferred aspect ratio for this object or 0 if none. If both vfunc@Gdk.Paintable.get_intrinsic_width and vfunc@Gdk.Paintable.get_intrinsic_height return non-zero values, this function should return the aspect ratio computed from those.

getIntrinsicHeight
int function(GdkPaintable* paintable) getIntrinsicHeight;

The preferred height for this object to be snapshot at or 0 if none. This is purely a hint. The object must still be able to render at any size.

getIntrinsicWidth
int function(GdkPaintable* paintable) getIntrinsicWidth;

The preferred width for this object to be snapshot at or 0 if none. This is purely a hint. The object must still be able to render at any size.

snapshot
void function(GdkPaintable* paintable, GdkSnapshot* snapshot, double width, double height) snapshot;

Snapshot the paintable. The given @width and @height are guaranteed to be larger than 0.0. The resulting snapshot must modify only the area in the rectangle from (0,0) to (width, height). This is the only function that must be implemented for this interface.