Intial import
[gnome.introspection-doc-generator] / JSDOC / Introspect / Union.js
1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3 GI      = imports.gi.GIRepository;
4 GLib    = imports.gi.GLib;
5 xml     = imports.libxml;
6 //GObject = imports.gi.GObject;
7
8 console = imports['console.js'].console;
9 JSDOC   = imports['JSDOC.js'].JSDOC;
10 Roo     = imports['Roo.js'].Roo;
11
12 Introspect = imports['JSDOC/Introspect.js'].Introspect;
13 Base = imports['JSDOC/Introspect/Base.js'].Base;
14
15 /**
16  * Union
17  */
18
19 Union = function(ns, name) {
20     Base.call(this, ns, name);
21    
22 }
23
24 Roo.extend(Union, Base, {
25     titleType: 'Union',
26     _loaded : false,
27     load : function()
28     {
29         if (this._loaded) {
30             return; // already loaded..
31         }
32         // my props..
33         var props = [];
34         this.genericBuildList('union', 'field', props, 'properties');
35         
36         if (GI.union_info_get_size (this.getBI()) > 0 ) { 
37             
38             this.constructors.push({
39                 name : '',
40                 params: [],
41                 returns :  [],
42                 isConstructor : true,
43                 isStatic : false,
44                 memberOf : this.alias,
45                 exceptions : [],
46                 desc : ''
47             });
48         }
49         var methods = [];
50         this.genericBuildList('union', 'method', methods, 'methods');
51           
52         this._loaded  = true;
53     },
54      
55
56 });