Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <gdkpaintable.h>
Data Fields | |
GTypeInterface | g_iface |
void(* | snapshot )(GdkPaintable *paintable, GdkSnapshot *snapshot, double width, double height) |
GdkPaintable *(* | get_current_image )(GdkPaintable *paintable) |
GdkPaintableFlags(* | get_flags )(GdkPaintable *paintable) |
int(* | get_intrinsic_width )(GdkPaintable *paintable) |
int(* | get_intrinsic_height )(GdkPaintable *paintable) |
double(* | get_intrinsic_aspect_ratio )(GdkPaintable *paintable) |
GdkPaintableInterface: @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. @get_current_image: return a GdkPaintable
that does not change over time. This means the GDK_PAINTABLE_STATIC_SIZE
and GDK_PAINTABLE_STATIC_CONTENTS
flag are set. @get_flags: Get the flags for this instance. See [flags.nosp@m.@Gdk.nosp@m..Pain.nosp@m.tabl.nosp@m.eFlag.nosp@m.s] for details. @get_intrinsic_width: 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. @get_intrinsic_height: 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. @get_intrinsic_aspect_ratio: The preferred aspect ratio for this object or 0 if none. If both [vfunc.nosp@m.@Gdk.nosp@m..Pain.nosp@m.tabl.nosp@m.e.get.nosp@m._int.nosp@m.rinsi.nosp@m.c_wi.nosp@m.dth] and [vfunc.nosp@m.@Gdk.nosp@m..Pain.nosp@m.tabl.nosp@m.e.get.nosp@m._int.nosp@m.rinsi.nosp@m.c_he.nosp@m.ight] return non-zero values, this function should return the aspect ratio computed from those.
The list of functions that can be implemented for the GdkPaintable
interface.
Note that apart from the [vfunc.nosp@m.@Gdk.nosp@m..Pain.nosp@m.tabl.nosp@m.e.sna.nosp@m.psho.nosp@m.t] function, no virtual function of this interface is mandatory to implement, though it is a good idea to implement [vfunc.nosp@m.@Gdk.nosp@m..Pain.nosp@m.tabl.nosp@m.e.get.nosp@m._cur.nosp@m.rent_.nosp@m.imag.nosp@m.e] for non-static paintables and [vfunc.nosp@m.@Gdk.nosp@m..Pain.nosp@m.tabl.nosp@m.e.get.nosp@m._fla.nosp@m.gs] if the image is not dynamic as the default implementation returns no flags and that will make the implementation likely quite slow.
Definition at line 85 of file gdkpaintable.h.
GTypeInterface _GdkPaintableInterface::g_iface |
Definition at line 88 of file gdkpaintable.h.
GdkPaintable *(* _GdkPaintableInterface::get_current_image) (GdkPaintable *paintable) |
Definition at line 97 of file gdkpaintable.h.
GdkPaintableFlags(* _GdkPaintableInterface::get_flags) (GdkPaintable *paintable) |
Definition at line 100 of file gdkpaintable.h.
double(* _GdkPaintableInterface::get_intrinsic_aspect_ratio) (GdkPaintable *paintable) |
Definition at line 106 of file gdkpaintable.h.
int(* _GdkPaintableInterface::get_intrinsic_height) (GdkPaintable *paintable) |
Definition at line 104 of file gdkpaintable.h.
int(* _GdkPaintableInterface::get_intrinsic_width) (GdkPaintable *paintable) |
Definition at line 102 of file gdkpaintable.h.
void(* _GdkPaintableInterface::snapshot) (GdkPaintable *paintable, GdkSnapshot *snapshot, double width, double height) |
Definition at line 92 of file gdkpaintable.h.