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.visualshadernodevectorop;
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 VisualShaderNodeVectorOp
30 {
31 	enum string _GODOT_internal_name = "VisualShaderNodeVectorOp";
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_operator") GodotMethod!(void, long) setOperator;
42 		@GodotName("get_operator") GodotMethod!(VisualShaderNodeVectorOp.Operator) getOperator;
43 	}
44 	bool opEquals(in VisualShaderNodeVectorOp other) const { return _godot_object.ptr is other._godot_object.ptr; }
45 	VisualShaderNodeVectorOp 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 VisualShaderNodeVectorOp _new()
49 	{
50 		static godot_class_constructor constructor;
51 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VisualShaderNodeVectorOp");
52 		if(constructor is null) return typeof(this).init;
53 		return cast(VisualShaderNodeVectorOp)(constructor());
54 	}
55 	@disable new(size_t s);
56 	/// 
57 	enum Operator : int
58 	{
59 		/**
60 		
61 		*/
62 		opAdd = 0,
63 		/**
64 		
65 		*/
66 		opSub = 1,
67 		/**
68 		
69 		*/
70 		opMul = 2,
71 		/**
72 		
73 		*/
74 		opDiv = 3,
75 		/**
76 		
77 		*/
78 		opMod = 4,
79 		/**
80 		
81 		*/
82 		opPow = 5,
83 		/**
84 		
85 		*/
86 		opMax = 6,
87 		/**
88 		
89 		*/
90 		opMin = 7,
91 		/**
92 		
93 		*/
94 		opCross = 8,
95 	}
96 	/// 
97 	enum Constants : int
98 	{
99 		opAdd = 0,
100 		opSub = 1,
101 		opMul = 2,
102 		opDiv = 3,
103 		opMod = 4,
104 		opPow = 5,
105 		opMax = 6,
106 		opMin = 7,
107 		opCross = 8,
108 	}
109 	/**
110 	
111 	*/
112 	void setOperator(in long op)
113 	{
114 		checkClassBinding!(typeof(this))();
115 		ptrcall!(void)(_classBinding.setOperator, _godot_object, op);
116 	}
117 	/**
118 	
119 	*/
120 	VisualShaderNodeVectorOp.Operator getOperator() const
121 	{
122 		checkClassBinding!(typeof(this))();
123 		return ptrcall!(VisualShaderNodeVectorOp.Operator)(_classBinding.getOperator, _godot_object);
124 	}
125 	/**
126 	
127 	*/
128 	@property VisualShaderNodeVectorOp.Operator operator()
129 	{
130 		return getOperator();
131 	}
132 	/// ditto
133 	@property void operator(long v)
134 	{
135 		setOperator(v);
136 	}
137 }