1 /* contentrenderer.c generated by valac, the Vala compiler
2 * generated from contentrenderer.vala, do not modify */
3
4 /* contentrenderer.vala
5 *
6 * Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 * Author:
23 * Didier 'Ptitjes Villevalois <ptitjes@free.fr>
24 */
25
26 #include "valadoc.h"
27 #include <glib.h>
28
29 enum {
30 VALADOC_CONTENT_CONTENT_RENDERER_0_PROPERTY,
31 VALADOC_CONTENT_CONTENT_RENDERER_NUM_PROPERTIES
32 };
33 static GParamSpec* valadoc_content_content_renderer_properties[VALADOC_CONTENT_CONTENT_RENDERER_NUM_PROPERTIES];
34
35 static gpointer valadoc_content_content_renderer_parent_class = NULL;
36
37 static void valadoc_content_content_renderer_real_render (ValadocContentContentRenderer* self,
38 ValadocContentContentElement* element);
39 static void valadoc_content_content_renderer_real_render_children (ValadocContentContentRenderer* self,
40 ValadocContentContentElement* element);
41 static GType valadoc_content_content_renderer_get_type_once (void);
42
43 static void
valadoc_content_content_renderer_real_render(ValadocContentContentRenderer * self,ValadocContentContentElement * element)44 valadoc_content_content_renderer_real_render (ValadocContentContentRenderer* self,
45 ValadocContentContentElement* element)
46 {
47 g_critical ("Type `%s' does not implement abstract method `valadoc_content_content_renderer_render'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
48 return;
49 }
50
51 void
valadoc_content_content_renderer_render(ValadocContentContentRenderer * self,ValadocContentContentElement * element)52 valadoc_content_content_renderer_render (ValadocContentContentRenderer* self,
53 ValadocContentContentElement* element)
54 {
55 g_return_if_fail (self != NULL);
56 VALADOC_CONTENT_CONTENT_RENDERER_GET_CLASS (self)->render (self, element);
57 }
58
59 static void
valadoc_content_content_renderer_real_render_children(ValadocContentContentRenderer * self,ValadocContentContentElement * element)60 valadoc_content_content_renderer_real_render_children (ValadocContentContentRenderer* self,
61 ValadocContentContentElement* element)
62 {
63 g_critical ("Type `%s' does not implement abstract method `valadoc_content_content_renderer_render_children'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
64 return;
65 }
66
67 void
valadoc_content_content_renderer_render_children(ValadocContentContentRenderer * self,ValadocContentContentElement * element)68 valadoc_content_content_renderer_render_children (ValadocContentContentRenderer* self,
69 ValadocContentContentElement* element)
70 {
71 g_return_if_fail (self != NULL);
72 VALADOC_CONTENT_CONTENT_RENDERER_GET_CLASS (self)->render_children (self, element);
73 }
74
75 ValadocContentContentRenderer*
valadoc_content_content_renderer_construct(GType object_type)76 valadoc_content_content_renderer_construct (GType object_type)
77 {
78 ValadocContentContentRenderer * self = NULL;
79 self = (ValadocContentContentRenderer*) valadoc_content_content_visitor_construct (object_type);
80 return self;
81 }
82
83 static void
valadoc_content_content_renderer_class_init(ValadocContentContentRendererClass * klass,gpointer klass_data)84 valadoc_content_content_renderer_class_init (ValadocContentContentRendererClass * klass,
85 gpointer klass_data)
86 {
87 valadoc_content_content_renderer_parent_class = g_type_class_peek_parent (klass);
88 ((ValadocContentContentRendererClass *) klass)->render = (void (*) (ValadocContentContentRenderer*, ValadocContentContentElement*)) valadoc_content_content_renderer_real_render;
89 ((ValadocContentContentRendererClass *) klass)->render_children = (void (*) (ValadocContentContentRenderer*, ValadocContentContentElement*)) valadoc_content_content_renderer_real_render_children;
90 }
91
92 static void
valadoc_content_content_renderer_instance_init(ValadocContentContentRenderer * self,gpointer klass)93 valadoc_content_content_renderer_instance_init (ValadocContentContentRenderer * self,
94 gpointer klass)
95 {
96 }
97
98 static GType
valadoc_content_content_renderer_get_type_once(void)99 valadoc_content_content_renderer_get_type_once (void)
100 {
101 static const GTypeInfo g_define_type_info = { sizeof (ValadocContentContentRendererClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_content_content_renderer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocContentContentRenderer), 0, (GInstanceInitFunc) valadoc_content_content_renderer_instance_init, NULL };
102 GType valadoc_content_content_renderer_type_id;
103 valadoc_content_content_renderer_type_id = g_type_register_static (VALADOC_CONTENT_TYPE_CONTENT_VISITOR, "ValadocContentContentRenderer", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
104 return valadoc_content_content_renderer_type_id;
105 }
106
107 GType
valadoc_content_content_renderer_get_type(void)108 valadoc_content_content_renderer_get_type (void)
109 {
110 static volatile gsize valadoc_content_content_renderer_type_id__volatile = 0;
111 if (g_once_init_enter (&valadoc_content_content_renderer_type_id__volatile)) {
112 GType valadoc_content_content_renderer_type_id;
113 valadoc_content_content_renderer_type_id = valadoc_content_content_renderer_get_type_once ();
114 g_once_init_leave (&valadoc_content_content_renderer_type_id__volatile, valadoc_content_content_renderer_type_id);
115 }
116 return valadoc_content_content_renderer_type_id__volatile;
117 }
118
119