1 /**
2 
3 
4 Copyright:
5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.  
6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)  
7 Copyright (c) 2017-2018 Godot-D contributors  
8 
9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
10 
11 
12 */
13 module godot.audioeffectstereoenhance;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.traits;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.globalenums;
22 import godot.object;
23 import godot.classdb;
24 import godot.audioeffect;
25 import godot.resource;
26 /**
27 
28 */
29 @GodotBaseClass struct AudioEffectStereoEnhance
30 {
31 	package(godot) enum string _GODOT_internal_name = "AudioEffectStereoEnhance";
32 public:
33 @nogc nothrow:
34 	union { /** */ godot_object _godot_object; /** */ AudioEffect _GODOT_base; }
35 	alias _GODOT_base this;
36 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
37 	package(godot) __gshared bool _classBindingInitialized = false;
38 	package(godot) static struct GDNativeClassBinding
39 	{
40 		__gshared:
41 		@GodotName("get_pan_pullout") GodotMethod!(double) getPanPullout;
42 		@GodotName("get_surround") GodotMethod!(double) getSurround;
43 		@GodotName("get_time_pullout") GodotMethod!(double) getTimePullout;
44 		@GodotName("set_pan_pullout") GodotMethod!(void, double) setPanPullout;
45 		@GodotName("set_surround") GodotMethod!(void, double) setSurround;
46 		@GodotName("set_time_pullout") GodotMethod!(void, double) setTimePullout;
47 	}
48 	/// 
49 	pragma(inline, true) bool opEquals(in AudioEffectStereoEnhance other) const
50 	{ return _godot_object.ptr is other._godot_object.ptr; }
51 	/// 
52 	pragma(inline, true) typeof(null) opAssign(typeof(null) n)
53 	{ _godot_object.ptr = n; return null; }
54 	/// 
55 	pragma(inline, true) bool opEquals(typeof(null) n) const
56 	{ return _godot_object.ptr is n; }
57 	/// 
58 	size_t toHash() const @trusted { return cast(size_t)_godot_object.ptr; }
59 	mixin baseCasts;
60 	/// Construct a new instance of AudioEffectStereoEnhance.
61 	/// Note: use `memnew!AudioEffectStereoEnhance` instead.
62 	static AudioEffectStereoEnhance _new()
63 	{
64 		static godot_class_constructor constructor;
65 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("AudioEffectStereoEnhance");
66 		if(constructor is null) return typeof(this).init;
67 		return cast(AudioEffectStereoEnhance)(constructor());
68 	}
69 	@disable new(size_t s);
70 	/**
71 	
72 	*/
73 	double getPanPullout() const
74 	{
75 		checkClassBinding!(typeof(this))();
76 		return ptrcall!(double)(GDNativeClassBinding.getPanPullout, _godot_object);
77 	}
78 	/**
79 	
80 	*/
81 	double getSurround() const
82 	{
83 		checkClassBinding!(typeof(this))();
84 		return ptrcall!(double)(GDNativeClassBinding.getSurround, _godot_object);
85 	}
86 	/**
87 	
88 	*/
89 	double getTimePullout() const
90 	{
91 		checkClassBinding!(typeof(this))();
92 		return ptrcall!(double)(GDNativeClassBinding.getTimePullout, _godot_object);
93 	}
94 	/**
95 	
96 	*/
97 	void setPanPullout(in double amount)
98 	{
99 		checkClassBinding!(typeof(this))();
100 		ptrcall!(void)(GDNativeClassBinding.setPanPullout, _godot_object, amount);
101 	}
102 	/**
103 	
104 	*/
105 	void setSurround(in double amount)
106 	{
107 		checkClassBinding!(typeof(this))();
108 		ptrcall!(void)(GDNativeClassBinding.setSurround, _godot_object, amount);
109 	}
110 	/**
111 	
112 	*/
113 	void setTimePullout(in double amount)
114 	{
115 		checkClassBinding!(typeof(this))();
116 		ptrcall!(void)(GDNativeClassBinding.setTimePullout, _godot_object, amount);
117 	}
118 	/**
119 	
120 	*/
121 	@property double panPullout()
122 	{
123 		return getPanPullout();
124 	}
125 	/// ditto
126 	@property void panPullout(double v)
127 	{
128 		setPanPullout(v);
129 	}
130 	/**
131 	
132 	*/
133 	@property double surround()
134 	{
135 		return getSurround();
136 	}
137 	/// ditto
138 	@property void surround(double v)
139 	{
140 		setSurround(v);
141 	}
142 	/**
143 	
144 	*/
145 	@property double timePulloutMs()
146 	{
147 		return getTimePullout();
148 	}
149 	/// ditto
150 	@property void timePulloutMs(double v)
151 	{
152 		setTimePullout(v);
153 	}
154 }