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.visualshadernodevec3constant;
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.classdb;
23 import godot.visualshadernode;
24 import godot.resource;
25 import godot.reference;
26 /**
27 
28 */
29 @GodotBaseClass struct VisualShaderNodeVec3Constant
30 {
31 	enum string _GODOT_internal_name = "VisualShaderNodeVec3Constant";
32 public:
33 @nogc nothrow:
34 	union { godot_object _godot_object; VisualShaderNode _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 _classBinding
39 	{
40 		__gshared:
41 		@GodotName("set_constant") GodotMethod!(void, Vector3) setConstant;
42 		@GodotName("get_constant") GodotMethod!(Vector3) getConstant;
43 	}
44 	bool opEquals(in VisualShaderNodeVec3Constant other) const { return _godot_object.ptr is other._godot_object.ptr; }
45 	VisualShaderNodeVec3Constant opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
46 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
47 	mixin baseCasts;
48 	static VisualShaderNodeVec3Constant _new()
49 	{
50 		static godot_class_constructor constructor;
51 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VisualShaderNodeVec3Constant");
52 		if(constructor is null) return typeof(this).init;
53 		return cast(VisualShaderNodeVec3Constant)(constructor());
54 	}
55 	@disable new(size_t s);
56 	/**
57 	
58 	*/
59 	void setConstant(in Vector3 value)
60 	{
61 		checkClassBinding!(typeof(this))();
62 		ptrcall!(void)(_classBinding.setConstant, _godot_object, value);
63 	}
64 	/**
65 	
66 	*/
67 	Vector3 getConstant() const
68 	{
69 		checkClassBinding!(typeof(this))();
70 		return ptrcall!(Vector3)(_classBinding.getConstant, _godot_object);
71 	}
72 	/**
73 	
74 	*/
75 	@property Vector3 constant()
76 	{
77 		return getConstant();
78 	}
79 	/// ditto
80 	@property void constant(Vector3 v)
81 	{
82 		setConstant(v);
83 	}
84 }