diff options
author | Benjamin Otte <otte@redhat.com> | 2016-02-13 04:47:51 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-02-13 04:49:08 +0100 |
commit | 93eec3e52f31f958ca7790e0eaa002e6975c4b57 (patch) | |
tree | 3a63cb50fd8d3e8530ccfaf10e6c4f9c083bb437 /gtk/gtkcssnumbervalueprivate.h | |
parent | 0cda3ba3e8fb70d3b88b2b810ee7b988ef5f631d (diff) | |
download | gtk+-93eec3e52f31f958ca7790e0eaa002e6975c4b57.tar.gz |
css: Implement transitions for numbers of different units
We now can transition from 10px to 100%.
Note that this requires a teensy tiny hack in
gtk_css_value_transition(), but so be it.
Diffstat (limited to 'gtk/gtkcssnumbervalueprivate.h')
-rw-r--r-- | gtk/gtkcssnumbervalueprivate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcssnumbervalueprivate.h b/gtk/gtkcssnumbervalueprivate.h index 7cb750f87c..ddded6674c 100644 --- a/gtk/gtkcssnumbervalueprivate.h +++ b/gtk/gtkcssnumbervalueprivate.h @@ -54,6 +54,10 @@ struct _GtkCssNumberValueClass { GtkCssValue * _gtk_css_number_value_new (double value, GtkCssUnit unit); +GtkCssValue * gtk_css_number_value_transition (GtkCssValue *start, + GtkCssValue *end, + guint property_id, + double progress); gboolean gtk_css_number_value_can_parse (GtkCssParser *parser); GtkCssValue * _gtk_css_number_value_parse (GtkCssParser *parser, GtkCssNumberParseFlags flags); |