Package: gdk
VTable gdk:paintable-vtable
Declaration(gobject:define-vtable ("GdkPaintable" paintable) (:skip parent-instance (:struct g:type-interface)) ;; Methods of the GdkPaintable interface (snapshot (:void (paintable (g:object paintable)) (snapshot (g:object snapshot)) (width :double) (height :double))) (get-current-image ((g:object paintable) (paintable (g:object paintable)))) (get-flags (paintable-flags (paintable (g:object paintable)))) (get-intrinsic-width (:int (paintable (g:object paintable)))) (get-intrinsic-height (:int (paintable (g:object paintable)))) (get-intrinsic-aspect-ratio (:double (paintable (g:object paintable))))) Values
Details The list of functions that can be implemented for the gdk:paintable
interface. Note that apart from the gdk:paintable-snapshot-impl method, no method of this interface is mandatory to implement, though it is a good idea to implement the gdk:paintable-get-current-image-impl method for non-static paintables and the gdk:paintable-get-flags-impl method if the paintable is not dynamic as the default implementation returns no flags and that will make the implementation likely quite slow. Examples;; Implementation of a NUCLEAR-ICON subclass (gobject:define-gobject-subclass "NuclearIcon" nuclear-icon (:superclass g:object :export t :interfaces ("GdkPaintable")) ((rotation nuclear-icon-rotation "rotation" "gdouble" t t))) | See also |
2025-05-09