* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* Authors: Benjamin Otte <otte@gnome.org>
*/
typedef struct _GtkCssStyleProperty GtkCssStyleProperty;
typedef struct _GtkCssStylePropertyClass GtkCssStylePropertyClass;
-typedef void (* GtkCssStylePropertyComputeFunc)(GtkCssStyleProperty *property,
- GValue *computed,
- GtkStyleContext *context,
- const GValue *specified);
+typedef GtkCssValue * (* GtkCssStylePropertyParseFunc) (GtkCssStyleProperty *property,
+ GtkCssParser *parser);
+typedef void (* GtkCssStylePropertyQueryFunc) (GtkCssStyleProperty *property,
+ const GtkCssValue *cssvalue,
+ GValue *value);
+typedef GtkCssValue * (* GtkCssStylePropertyAssignFunc) (GtkCssStyleProperty *property,
+ const GValue *value);
struct _GtkCssStyleProperty
{
GtkStyleProperty parent;
- GValue initial_value;
+ GtkCssValue *initial_value;
guint id;
guint inherit :1;
+ guint animated :1;
+ guint affects_size :1;
- GtkCssStylePropertyComputeFunc compute_value;
+ GtkCssStylePropertyParseFunc parse_value;
+ GtkCssStylePropertyQueryFunc query_value;
+ GtkCssStylePropertyAssignFunc assign_value;
};
struct _GtkCssStylePropertyClass
GtkCssStyleProperty * _gtk_css_style_property_lookup_by_id (guint id);
gboolean _gtk_css_style_property_is_inherit (GtkCssStyleProperty *property);
+gboolean _gtk_css_style_property_is_animated (GtkCssStyleProperty *property);
+gboolean _gtk_css_style_property_affects_size (GtkCssStyleProperty *property);
guint _gtk_css_style_property_get_id (GtkCssStyleProperty *property);
-const GValue * _gtk_css_style_property_get_initial_value
+GtkCssValue * _gtk_css_style_property_get_initial_value
(GtkCssStyleProperty *property);
-void _gtk_css_style_property_compute_value (GtkCssStyleProperty *property,
- GValue *computed,
- GtkStyleContext *context,
- const GValue *specified);
-
void _gtk_css_style_property_print_value (GtkCssStyleProperty *property,
- const GValue *value,
+ GtkCssValue *value,
GString *string);