1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = AtkNoOpObject.html
27  * outPack = atk
28  * outFile = NoOpObject
29  * strct   = AtkNoOpObject
30  * realStrct=
31  * ctorStrct=
32  * clss    = NoOpObject
33  * interf  = 
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- atk_no_op_object_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- atk.ObjectAtk
47  * 	- gobject.ObjectG
48  * structWrap:
49  * 	- AtkObject* -> ObjectAtk
50  * 	- GObject* -> ObjectG
51  * module aliases:
52  * local aliases:
53  * overrides:
54  */
55 
56 module atk.NoOpObject;
57 
58 public  import gtkc.atktypes;
59 
60 private import gtkc.atk;
61 private import glib.ConstructionException;
62 private import gobject.ObjectG;
63 
64 private import atk.ObjectAtk;
65 private import gobject.ObjectG;
66 
67 
68 private import atk.ObjectAtk;
69 
70 /**
71  * An AtkNoOpObject is an AtkObject which purports to implement all
72  * ATK interfaces. It is the type of AtkObject which is created if an
73  * accessible object is requested for an object type for which no
74  * factory type is specified.
75  */
76 public class NoOpObject : ObjectAtk
77 {
78 	
79 	/** the main Gtk struct */
80 	protected AtkNoOpObject* atkNoOpObject;
81 	
82 	
83 	/** Get the main Gtk struct */
84 	public AtkNoOpObject* getNoOpObjectStruct()
85 	{
86 		return atkNoOpObject;
87 	}
88 	
89 	
90 	/** the main Gtk struct as a void* */
91 	protected override void* getStruct()
92 	{
93 		return cast(void*)atkNoOpObject;
94 	}
95 	
96 	/**
97 	 * Sets our main struct and passes it to the parent class
98 	 */
99 	public this (AtkNoOpObject* atkNoOpObject)
100 	{
101 		super(cast(AtkObject*)atkNoOpObject);
102 		this.atkNoOpObject = atkNoOpObject;
103 	}
104 	
105 	protected override void setStruct(GObject* obj)
106 	{
107 		super.setStruct(obj);
108 		atkNoOpObject = cast(AtkNoOpObject*)obj;
109 	}
110 	
111 	/**
112 	 */
113 	
114 	/**
115 	 * Provides a default (non-functioning stub) AtkObject.
116 	 * Application maintainers should not use this method.
117 	 * Params:
118 	 * obj = a GObject
119 	 * Returns: a default (non-functioning stub) AtkObject
120 	 */
121 	public static ObjectAtk newNoOpObject(ObjectG obj)
122 	{
123 		// AtkObject * atk_no_op_object_new (GObject *obj);
124 		auto p = atk_no_op_object_new((obj is null) ? null : obj.getObjectGStruct());
125 		
126 		if(p is null)
127 		{
128 			return null;
129 		}
130 		
131 		return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) p);
132 	}
133 }