void _rut_pointalism_grid_init_type (void) { static RutRefableVTable refable_vtable = { rut_refable_simple_ref, rut_refable_simple_unref, _rut_pointalism_grid_free }; static RutComponentableVTable componentable_vtable = { .copy = _rut_pointalism_grid_copy }; static RutPrimableVTable primable_vtable = { .get_primitive = rut_pointalism_grid_get_primitive }; static RutMeshableVTable meshable_vtable = { .get_mesh = rut_pointalism_grid_get_pick_mesh }; static RutIntrospectableVTable introspectable_vtable = { rut_simple_introspectable_lookup_property, rut_simple_introspectable_foreach_property }; RutType *type = &rut_pointalism_grid_type; #define TYPE RutPointalismGrid rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_interface (type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (TYPE, ref_count), &refable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_COMPONENTABLE, offsetof (TYPE, component), &componentable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_PRIMABLE, 0, /* no associated properties */ &primable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_MESHABLE, 0, /* no associated properties */ &meshable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_INTROSPECTABLE, 0, &introspectable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_SIMPLE_INTROSPECTABLE, offsetof (TYPE, introspectable), NULL); #undef TYPE }
void _rut_shape_init_type (void) { rut_type_init (&rut_shape_type, "RigShape"); rut_type_add_interface (&rut_shape_type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (RutShape, ref_count), &_rut_shape_ref_countable_vtable); rut_type_add_interface (&rut_shape_type, RUT_INTERFACE_ID_COMPONENTABLE, offsetof (RutShape, component), &_rut_shape_componentable_vtable); rut_type_add_interface (&rut_shape_type, RUT_INTERFACE_ID_PRIMABLE, 0, /* no associated properties */ &_rut_shape_primable_vtable); rut_type_add_interface (&rut_shape_type, RUT_INTERFACE_ID_PICKABLE, 0, /* no associated properties */ &_rut_shape_pickable_vtable); rut_type_add_interface (&rut_shape_type, RUT_INTERFACE_ID_INTROSPECTABLE, 0, /* no implied properties */ &_rut_shape_introspectable_vtable); rut_type_add_interface (&rut_shape_type, RUT_INTERFACE_ID_SIMPLE_INTROSPECTABLE, offsetof (RutShape, introspectable), NULL); /* no implied vtable */ }
static void _rut_fold_init_type (void) { static RutRefableVTable refable_vtable = { rut_refable_simple_ref, rut_refable_simple_unref, _rut_fold_free }; static RutGraphableVTable graphable_vtable = { NULL, /* child removed */ NULL, /* child added */ NULL /* parent changed */ }; static RutSizableVTable sizable_vtable = { rut_composite_sizable_set_size, rut_composite_sizable_get_size, rut_composite_sizable_get_preferred_width, rut_composite_sizable_get_preferred_height, rut_composite_sizable_add_preferred_size_callback }; static RutIntrospectableVTable introspectable_vtable = { rut_simple_introspectable_lookup_property, rut_simple_introspectable_foreach_property }; RutType *type = &rut_fold_type; #define TYPE RutFold rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_interface (type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (TYPE, ref_count), &refable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_GRAPHABLE, offsetof (TYPE, graphable), &graphable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_SIZABLE, 0, /* no implied properties */ &sizable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_COMPOSITE_SIZABLE, offsetof (TYPE, vbox), NULL); /* no vtable */ rut_type_add_interface (type, RUT_INTERFACE_ID_INTROSPECTABLE, 0, /* no implied properties */ &introspectable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_SIMPLE_INTROSPECTABLE, offsetof (TYPE, introspectable), NULL); /* no implied vtable */ #undef TYPE }
void _rut_diamond_slice_init_type (void) { rut_type_init (&rut_diamond_slice_type, "RigDiamondSlice"); rut_type_add_interface (&rut_diamond_slice_type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (RutDiamondSlice, ref_count), &_diamond_slice_ref_countable_vtable); }
void _rut_shape_model_init_type (void) { rut_type_init (&rut_shape_model_type, "RigShapeModel"); rut_type_add_interface (&rut_shape_model_type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (RutShapeModel, ref_count), &_shape_model_ref_countable_vtable); }
static void _rig_pb_stream_init_type(void) { rut_type_t *type = &rig_pb_stream_type; #define TYPE rig_pb_stream_t rut_type_init(type, C_STRINGIFY(TYPE), _stream_free); #undef TYPE }
static void _rig_transition_type_init (void) { rut_type_init (&rig_transition_type, "RigTransition"); rut_type_add_interface (&rig_transition_type, RUT_INTERFACE_ID_INTROSPECTABLE, 0, /* no implied properties */ &_rig_transition_introspectable_vtable); rut_type_add_interface (&rig_transition_type, RUT_INTERFACE_ID_SIMPLE_INTROSPECTABLE, offsetof (RigTransition, introspectable), NULL); /* no implied vtable */ }
static void _rut_button_init_type (void) { static RutRefableVTable refable_vtable = { rut_refable_simple_ref, rut_refable_simple_unref, _rut_button_free }; static RutGraphableVTable graphable_vtable = { NULL, /* child remove */ NULL, /* child add */ NULL /* parent changed */ }; static RutPaintableVTable paintable_vtable = { _rut_button_paint }; static RutSizableVTable sizable_vtable = { rut_button_set_size, rut_button_get_size, rut_button_get_preferred_width, rut_button_get_preferred_height, NULL /* add_preferred_size_callback */ }; RutType *type = &rut_button_type; #define TYPE RutButton rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_interface (type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (TYPE, ref_count), &refable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_GRAPHABLE, offsetof (TYPE, graphable), &graphable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_PAINTABLE, offsetof (TYPE, paintable), &paintable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_SIZABLE, 0, /* no implied properties */ &sizable_vtable); #undef TYPE }
static void _rut_bin_init_type (void) { rut_type_init (&rut_bin_type, "RigBin"); rut_type_add_interface (&rut_bin_type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (RutBin, ref_count), &_rut_bin_ref_countable_vtable); rut_type_add_interface (&rut_bin_type, RUT_INTERFACE_ID_GRAPHABLE, offsetof (RutBin, graphable), &_rut_bin_graphable_vtable); rut_type_add_interface (&rut_bin_type, RUT_INTERFACE_ID_SIZABLE, 0, /* no implied properties */ &_rut_bin_sizable_vtable); }
void _rut_asset_type_init (void) { rut_type_init (&rut_asset_type, "RigAsset"); rut_type_add_interface (&rut_asset_type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (RutAsset, ref_count), &_rut_asset_ref_countable); #if 0 rut_type_add_interface (&_asset_type, RUT_INTERFACE_ID_INTROSPECTABLE, 0, /* no implied properties */ &_asset_introspectable_vtable); rut_type_add_interface (&_asset_type, RUT_INTERFACE_ID_SIMPLE_INTROSPECTABLE, offsetof (Asset, introspectable), NULL); /* no implied vtable */ #endif }
static void _rig_rpc_peer_init_type (void) { static RutRefableVTable refable_vtable = { rut_refable_simple_ref, rut_refable_simple_unref, _rig_rpc_peer_free }; RutType *type = &rig_rpc_peer_type; #define TYPE RigRPCPeer rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_interface (type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (TYPE, ref_count), &refable_vtable); #undef TYPE }
void _rut_camera_init_type (void) { static RutRefableVTable refable_vtable = { rut_refable_simple_ref, rut_refable_simple_unref, _rut_camera_free }; static RutComponentableVTable componentable_vtable = { .copy = _rut_camera_copy }; static RutIntrospectableVTable introspectable_vtable = { rut_simple_introspectable_lookup_property, rut_simple_introspectable_foreach_property }; RutType *type = &rut_camera_type; #define TYPE RutCamera rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_interface (type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (TYPE, ref_count), &refable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_COMPONENTABLE, offsetof (TYPE, component), &componentable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_INTROSPECTABLE, 0, /* no implied properties */ &introspectable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_SIMPLE_INTROSPECTABLE, offsetof (TYPE, introspectable), NULL); /* no implied vtable */ #undef TYPE }
void _rut_diamond_init_type (void) { rut_type_init (&rut_diamond_type, "RigDiamond"); rut_type_add_interface (&rut_diamond_type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (RutDiamond, ref_count), &_rut_diamond_ref_countable_vtable); rut_type_add_interface (&rut_diamond_type, RUT_INTERFACE_ID_COMPONENTABLE, offsetof (RutDiamond, component), &_rut_diamond_componentable_vtable); rut_type_add_interface (&rut_diamond_type, RUT_INTERFACE_ID_PRIMABLE, 0, /* no associated properties */ &_rut_diamond_primable_vtable); rut_type_add_interface (&rut_diamond_type, RUT_INTERFACE_ID_PICKABLE, 0, /* no associated properties */ &_rut_diamond_pickable_vtable); }
void _rut_light_init_type (void) { rut_type_init (&rut_light_type, "RigLight"); rut_type_add_interface (&rut_light_type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (RutLight, ref_count), &_rut_light_ref_countable_vtable); rut_type_add_interface (&rut_light_type, RUT_INTERFACE_ID_COMPONENTABLE, offsetof (RutLight, component), &_rut_light_componentable_vtable); rut_type_add_interface (&rut_light_type, RUT_INTERFACE_ID_INTROSPECTABLE, 0, /* no implied properties */ &_rut_light_introspectable_vtable); rut_type_add_interface (&rut_light_type, RUT_INTERFACE_ID_SIMPLE_INTROSPECTABLE, offsetof (RutLight, introspectable), NULL); /* no implied vtable */ }
void _rut_pointalism_grid_slice_init_type (void) { static RutRefableVTable refable_vtable = { rut_refable_simple_ref, rut_refable_simple_unref, _pointalism_grid_slice_free }; RutType *type = &rut_pointalism_grid_slice_type; #define TYPE RutPointalismGridSlice rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_interface (type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (TYPE, ref_count), &refable_vtable); #undef TYPE }
static void _rut_graph_init_type (void) { static RutGraphableVTable graphable_vtable = { NULL, /* child remove */ NULL, /* child add */ NULL /* parent changed */ }; RutType *type = &rut_graph_type; #define TYPE RutGraph rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_refable (type, ref_count, _rut_graph_free); rut_type_add_interface (type, RUT_INTERFACE_ID_GRAPHABLE, offsetof (TYPE, graphable), &graphable_vtable); #undef TYPE }
static void _rut_transform_init_type (void) { static RutRefCountableVTable refable_vtable = { rut_refable_simple_ref, rut_refable_simple_unref, _rut_transform_free }; static RutGraphableVTable graphable_vtable = { NULL, /* child remove */ NULL, /* child add */ NULL /* parent changed */ }; static RutTransformableVTable transformable_vtable = { rut_transform_get_matrix }; RutType *type = &rut_transform_type; #define TYPE RutTransform rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_interface (type, RUT_INTERFACE_ID_REF_COUNTABLE, offsetof (TYPE, ref_count), &refable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_GRAPHABLE, offsetof (TYPE, graphable), &graphable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_TRANSFORMABLE, 0, &transformable_vtable); #undef TYPE }
static void _rut_rectangle_init_type(void) { static rut_graphable_vtable_t graphable_vtable = { NULL, /* child remove */ NULL, /* child add */ NULL /* parent changed */ }; static rut_paintable_vtable_t paintable_vtable = { _rut_rectangle_paint }; static rut_sizable_vtable_t sizable_vtable = { rut_rectangle_set_size, rut_rectangle_get_size, rut_simple_sizable_get_preferred_width, rut_simple_sizable_get_preferred_height, NULL /* add_preferred_size_callback */ }; rut_type_t *type = &rut_rectangle_type; #define TYPE rut_rectangle_t rut_type_init(type, C_STRINGIFY(TYPE), _rut_rectangle_free); rut_type_add_trait(type, RUT_TRAIT_ID_GRAPHABLE, offsetof(TYPE, graphable), &graphable_vtable); rut_type_add_trait(type, RUT_TRAIT_ID_PAINTABLE, offsetof(TYPE, paintable), &paintable_vtable); rut_type_add_trait(type, RUT_TRAIT_ID_SIZABLE, 0, /* no implied properties */ &sizable_vtable); #undef TYPE }
static void _rut_fold_init_type(void) { static rut_graphable_vtable_t graphable_vtable = { NULL, /* child removed */ NULL, /* child added */ NULL /* parent changed */ }; static rut_sizable_vtable_t sizable_vtable = { rut_composite_sizable_set_size, rut_composite_sizable_get_size, rut_composite_sizable_get_preferred_width, rut_composite_sizable_get_preferred_height, rut_composite_sizable_add_preferred_size_callback }; rut_type_t *type = &rut_fold_type; #define TYPE rut_fold_t rut_type_init(type, C_STRINGIFY(TYPE), _rut_fold_free); rut_type_add_trait(type, RUT_TRAIT_ID_GRAPHABLE, offsetof(TYPE, graphable), &graphable_vtable); rut_type_add_trait(type, RUT_TRAIT_ID_SIZABLE, 0, /* no implied properties */ &sizable_vtable); rut_type_add_trait(type, RUT_TRAIT_ID_COMPOSITE_SIZABLE, offsetof(TYPE, vbox), NULL); /* no vtable */ rut_type_add_trait(type, RUT_TRAIT_ID_INTROSPECTABLE, offsetof(TYPE, introspectable), NULL); /* no implied vtable */ #undef TYPE }
static void _rut_prop_inspector_init_type (void) { static RutGraphableVTable graphable_vtable = { NULL, /* child removed */ NULL, /* child addded */ NULL /* parent changed */ }; static RutSizableVTable sizable_vtable = { rut_composite_sizable_set_size, rut_composite_sizable_get_size, rut_composite_sizable_get_preferred_width, rut_composite_sizable_get_preferred_height, rut_composite_sizable_add_preferred_size_callback }; RutType *type = &rut_prop_inspector_type; #define TYPE RutPropInspector rut_type_init (type, G_STRINGIFY (TYPE)); rut_type_add_refable (type, ref_count, _rut_prop_inspector_free); rut_type_add_interface (type, RUT_INTERFACE_ID_GRAPHABLE, offsetof (TYPE, graphable), &graphable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_SIZABLE, 0, /* no implied properties */ &sizable_vtable); rut_type_add_interface (type, RUT_INTERFACE_ID_COMPOSITE_SIZABLE, offsetof (TYPE, top_stack), NULL); /* no vtable */ #undef TYPE }
void _rut_mesh_init_type(void) { rut_type_init(&rut_mesh_type, "rut_mesh_t", _rut_mesh_free); }
void _rut_buffer_init_type(void) { rut_type_init(&rut_buffer_type, "rut_buffer_t", _rut_buffer_free); }
void _rut_attribute_init_type(void) { rut_type_init(&rut_attribute_type, "rut_attribute_t", _rut_attribute_free); }