18
18
* Lesser General Public License for more details.
20
20
* You should have received a copy of the GNU Lesser General Public
21
* License along with this library; if not, write to the
22
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23
* Boston, MA 02111-1307, USA.
21
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
26
26
#ifndef __CLUTTER_SCRIPT_PRIVATE_H__
27
27
#define __CLUTTER_SCRIPT_PRIVATE_H__
29
29
#include <glib-object.h>
30
#include "json/json-types.h"
30
#include "clutter-json.h"
31
31
#include "clutter-color.h"
32
32
#include "clutter-types.h"
33
33
#include "clutter-script.h"
37
#define CLUTTER_TYPE_SCRIPT_PARSER (clutter_script_parser_get_type ())
38
#define CLUTTER_SCRIPT_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_SCRIPT_PARSER, ClutterScriptParser))
39
#define CLUTTER_IS_SCRIPT_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_SCRIPT_PARSER))
41
typedef struct _ClutterScriptParser ClutterScriptParser;
42
typedef struct _JsonParserClass ClutterScriptParserClass;
44
struct _ClutterScriptParser
46
JsonParser parent_instance;
49
ClutterScript *script;
37
52
typedef GType (* GTypeGetFunc) (void);
84
103
GType clutter_script_get_type_from_symbol (const gchar *symbol);
85
104
GType clutter_script_get_type_from_class (const gchar *name);
87
GObject *clutter_script_construct_object (ClutterScript *script,
106
gulong clutter_script_resolve_animation_mode (JsonNode *node);
90
108
gboolean clutter_script_enum_from_string (GType gtype,
91
109
const gchar *string,
103
121
gboolean clutter_script_parse_color (ClutterScript *script,
105
123
ClutterColor *color);
106
GObject *clutter_script_parse_alpha (ClutterScript *script,
124
GObject *_clutter_script_parse_alpha (ClutterScript *script,
127
void _clutter_script_construct_object (ClutterScript *script,
129
void _clutter_script_apply_properties (ClutterScript *script,
132
gchar *_clutter_script_generate_fake_id (ClutterScript *script);
134
void _clutter_script_warn_missing_attribute (ClutterScript *script,
136
const gchar *attribute);
138
void _clutter_script_warn_invalid_value (ClutterScript *script,
139
const gchar *attribute,
140
const gchar *expected,
143
ObjectInfo *_clutter_script_get_object_info (ClutterScript *script,
144
const gchar *script_id);
146
guint _clutter_script_get_last_merge_id (ClutterScript *script);
148
void _clutter_script_add_object_info (ClutterScript *script,