Sync API with GLib GDir head
[gnome.introspection-doc-generator] / JSDOC / Introspect / Interface.js
1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3  
4
5 imports['Object.js'].load(Object);
6
7 console = imports['console.js'].console;
8
9  
10
11 Introspect = imports['JSDOC/Introspect.js'].Introspect;
12 Base = imports['JSDOC/Introspect/Base.js'].Base;
13
14
15
16 /**
17  * Interface
18  */
19
20 Interface = Object.define(
21     function(ns, name) {
22         Base.call(this, ns, name);
23        
24     },
25
26     Base, 
27     {
28          titleType: 'Interface',
29         _loaded : false,
30         load : function()
31         {
32             if (this._loaded) {
33                 return; // already loaded..
34             }
35             // my props..
36             var props = [];
37             this.genericBuildList('interface', 'property', props, 'properties');
38            
39            
40             var signals = [];
41             this.genericBuildList('interface', 'signal', signals, 'signals');
42           
43             
44             var methods = [];
45             this.genericBuildList('interface', 'method', methods, 'methods');
46             
47             
48             Introspect.ifaceList[this.alias] = Introspect.ifaceList[this.alias] || [];
49             this.implementedBy = Introspect.ifaceList[this.alias];
50             
51               
52            
53             this._loaded  = true;
54         },
55          
56
57 });