mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
2007-10-08 Emmanuele Bassi <ebassi@openedhand.com>
Initial implementation of the UI definition files. (#424) * clutter/json/Makefile.am: * clutter/json/*.[ch]: In-tree copy of JSON-GLib, a GLib-based JSON parser/generator library. We use it in-tree because we might need to change the API. Ideally, we'd depend on it. * clutter/clutter.h: * clutter/clutter-script-private.h: * clutter/clutter-script.[ch]: ClutterScript, the scenegraph generator class. It parses JSON streams in form of buffers and files and builds the scene. * clutter/clutter-debug.h: * clutter/clutter-main.c: Add a "script" debug flag * clutter/Makefile.am: Build glue. * tests/Makefile.am: * tests/test-script.c: Add a test case for the ClutterScript. * configure.ac: Depend on GLib 2.14, so we can use the g_hash_table_get_key() and g_hash_table_get_values() functions for the time being; we can probably reimplement those, but we are going to need 2.14 anyway if we are going to implement a list model using GSequence.
This commit is contained in:
31
clutter/clutter-script-private.h
Normal file
31
clutter/clutter-script-private.h
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef __CLUTTER_SCRIPT_PRIVATE_H__
|
||||
#define __CLUTTER_SCRIPT_PRIVATE_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
#include "clutter-script.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef GType (* GTypeGetFunc) (void);
|
||||
|
||||
typedef struct {
|
||||
gchar *class_name;
|
||||
gchar *id;
|
||||
|
||||
GList *properties;
|
||||
|
||||
GType gtype;
|
||||
GObject *object;
|
||||
} ObjectInfo;
|
||||
|
||||
typedef struct {
|
||||
gchar *property_name;
|
||||
GValue value;
|
||||
} PropertyInfo;
|
||||
|
||||
GObject *clutter_script_construct_object (ClutterScript *script,
|
||||
ObjectInfo *info);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __CLUTTER_SCRIPT_PRIVATE_H__ */
|
Reference in New Issue
Block a user