/* width of image or 0 if it has no width (optional) */ int (* get_width) (GtkCssImage *image); /* height of image or 0 if it has no height (optional) */ int (* get_height) (GtkCssImage *image); /* aspect ratio (width / height) of image or 0 if it has no aspect ratio (optional) */ double (* get_aspect_ratio) (GtkCssImage *image);
/* create "computed value" in CSS terms, returns a new reference */
GtkCssImage *(* compute) (GtkCssImage *image,
guint property_id,
GtkCssComputeContext *context); /* compare two images for equality */
gboolean (* equal) (GtkCssImage *image1,
GtkCssImage *image2); /* transition between start and end image (end may be NULL), returns new reference (optional) */
GtkCssImage *(* transition) (GtkCssImage *start,
GtkCssImage *end,
guint property_id, double progress);
/* draw to 0,0 with the given width and height */ void (* snapshot) (GtkCssImage *image,
GtkSnapshot *snapshot, double width, double height); /* is this image to be considered invalid (see https://drafts.csswg.org/css-images-4/#invalid-image for details) */
gboolean (* is_invalid) (GtkCssImage *image); /* does this image change based on timestamp? (optional) */
gboolean (* is_dynamic) (GtkCssImage *image); /* get image for given timestamp or @image when not dynamic (optional) */
GtkCssImage *(* get_dynamic_image) (GtkCssImage *image,
gint64 monotonic_time); /* parse CSS, return TRUE on success */
gboolean (* parse) (GtkCssImage *image,
GtkCssParser *parser); /* print to CSS */ void (* print) (GtkCssImage *image,
GString *string);
gboolean (* is_computed) (GtkCssImage *image);
gboolean (* contains_current_color) (GtkCssImage *image);
GtkCssImage *( * resolve) (GtkCssImage *image,
GtkCssComputeContext *context,
GtkCssValue *current_color);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.