forked from AuroraMiddleware/gtk
css: Add GtkCssTransformValue
The value implements the 2D parts of CSS transforms. See http://www.w3.org/TR/css3-transforms/ For the specification. All it does is give us an expressive way to define Cairo matrices (and their transforms)
This commit is contained in:
parent
a56637b330
commit
965cd4a9c0
@ -483,6 +483,7 @@ gtk_private_h_sources = \
|
||||
gtkcssstringvalueprivate.h \
|
||||
gtkcssstylefuncsprivate.h \
|
||||
gtkcssstylepropertyprivate.h \
|
||||
gtkcsstransformvalueprivate.h \
|
||||
gtkcsstransitionprivate.h \
|
||||
gtkcsstypedvalueprivate.h \
|
||||
gtkcssunsetvalueprivate.h \
|
||||
@ -734,6 +735,7 @@ gtk_base_c_sources = \
|
||||
gtkcssstylefuncs.c \
|
||||
gtkcssstyleproperty.c \
|
||||
gtkcssstylepropertyimpl.c \
|
||||
gtkcsstransformvalue.c \
|
||||
gtkcsstransition.c \
|
||||
gtkcsstypedvalue.c \
|
||||
gtkcssunsetvalue.c \
|
||||
|
1049
gtk/gtkcsstransformvalue.c
Normal file
1049
gtk/gtkcsstransformvalue.c
Normal file
File diff suppressed because it is too large
Load Diff
36
gtk/gtkcsstransformvalueprivate.h
Normal file
36
gtk/gtkcsstransformvalueprivate.h
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright © 2014 Red Hat Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* 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, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors: Benjamin Otte <otte@gnome.org>
|
||||
*/
|
||||
|
||||
#ifndef __GTK_CSS_TRANSFORM_VALUE_PRIVATE_H__
|
||||
#define __GTK_CSS_TRANSFORM_VALUE_PRIVATE_H__
|
||||
|
||||
#include "gtkcssparserprivate.h"
|
||||
#include "gtkcssvalueprivate.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GtkCssValue * _gtk_css_transform_value_new_none (void);
|
||||
GtkCssValue * _gtk_css_transform_value_parse (GtkCssParser *parser);
|
||||
|
||||
gboolean _gtk_css_transform_value_apply (const GtkCssValue *transform,
|
||||
cairo_t *cr);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_CSS_TRANSFORM_VALUE_PRIVATE_H__ */
|
Loading…
Reference in New Issue
Block a user