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.visualshadernodeuniform;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.meta;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.object;
22 import godot.visualshadernode;
23 import godot.resource;
24 import godot.reference;
25 /**
26 
27 */
28 @GodotBaseClass struct VisualShaderNodeUniform
29 {
30 	enum string _GODOT_internal_name = "VisualShaderNodeUniform";
31 public:
32 @nogc nothrow:
33 	union { godot_object _godot_object; VisualShaderNode _GODOT_base; }
34 	alias _GODOT_base this;
35 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
36 	package(godot) __gshared bool _classBindingInitialized = false;
37 	package(godot) static struct _classBinding
38 	{
39 		__gshared:
40 		@GodotName("set_uniform_name") GodotMethod!(void, String) setUniformName;
41 		@GodotName("get_uniform_name") GodotMethod!(String) getUniformName;
42 	}
43 	bool opEquals(in VisualShaderNodeUniform other) const { return _godot_object.ptr is other._godot_object.ptr; }
44 	VisualShaderNodeUniform opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
45 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
46 	mixin baseCasts;
47 	static VisualShaderNodeUniform _new()
48 	{
49 		static godot_class_constructor constructor;
50 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VisualShaderNodeUniform");
51 		if(constructor is null) return typeof(this).init;
52 		return cast(VisualShaderNodeUniform)(constructor());
53 	}
54 	@disable new(size_t s);
55 	/**
56 	
57 	*/
58 	void setUniformName(StringArg0)(in StringArg0 name)
59 	{
60 		checkClassBinding!(typeof(this))();
61 		ptrcall!(void)(_classBinding.setUniformName, _godot_object, name);
62 	}
63 	/**
64 	
65 	*/
66 	String getUniformName() const
67 	{
68 		checkClassBinding!(typeof(this))();
69 		return ptrcall!(String)(_classBinding.getUniformName, _godot_object);
70 	}
71 	/**
72 	
73 	*/
74 	@property String uniformName()
75 	{
76 		return getUniformName();
77 	}
78 	/// ditto
79 	@property void uniformName(String v)
80 	{
81 		setUniformName(v);
82 	}
83 }