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.styleboxline;
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.stylebox;
24 import godot.resource;
25 import godot.reference;
26 /**
27 
28 */
29 @GodotBaseClass struct StyleBoxLine
30 {
31 	enum string _GODOT_internal_name = "StyleBoxLine";
32 public:
33 @nogc nothrow:
34 	union { godot_object _godot_object; StyleBox _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_color") GodotMethod!(void, Color) setColor;
42 		@GodotName("get_color") GodotMethod!(Color) getColor;
43 		@GodotName("set_thickness") GodotMethod!(void, long) setThickness;
44 		@GodotName("get_thickness") GodotMethod!(long) getThickness;
45 		@GodotName("set_grow_begin") GodotMethod!(void, double) setGrowBegin;
46 		@GodotName("get_grow_begin") GodotMethod!(double) getGrowBegin;
47 		@GodotName("set_grow_end") GodotMethod!(void, double) setGrowEnd;
48 		@GodotName("get_grow_end") GodotMethod!(double) getGrowEnd;
49 		@GodotName("set_vertical") GodotMethod!(void, bool) setVertical;
50 		@GodotName("is_vertical") GodotMethod!(bool) isVertical;
51 	}
52 	bool opEquals(in StyleBoxLine other) const { return _godot_object.ptr is other._godot_object.ptr; }
53 	StyleBoxLine opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
54 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
55 	mixin baseCasts;
56 	static StyleBoxLine _new()
57 	{
58 		static godot_class_constructor constructor;
59 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("StyleBoxLine");
60 		if(constructor is null) return typeof(this).init;
61 		return cast(StyleBoxLine)(constructor());
62 	}
63 	@disable new(size_t s);
64 	/**
65 	
66 	*/
67 	void setColor(in Color color)
68 	{
69 		checkClassBinding!(typeof(this))();
70 		ptrcall!(void)(_classBinding.setColor, _godot_object, color);
71 	}
72 	/**
73 	
74 	*/
75 	Color getColor() const
76 	{
77 		checkClassBinding!(typeof(this))();
78 		return ptrcall!(Color)(_classBinding.getColor, _godot_object);
79 	}
80 	/**
81 	
82 	*/
83 	void setThickness(in long thickness)
84 	{
85 		checkClassBinding!(typeof(this))();
86 		ptrcall!(void)(_classBinding.setThickness, _godot_object, thickness);
87 	}
88 	/**
89 	
90 	*/
91 	long getThickness() const
92 	{
93 		checkClassBinding!(typeof(this))();
94 		return ptrcall!(long)(_classBinding.getThickness, _godot_object);
95 	}
96 	/**
97 	
98 	*/
99 	void setGrowBegin(in double offset)
100 	{
101 		checkClassBinding!(typeof(this))();
102 		ptrcall!(void)(_classBinding.setGrowBegin, _godot_object, offset);
103 	}
104 	/**
105 	
106 	*/
107 	double getGrowBegin() const
108 	{
109 		checkClassBinding!(typeof(this))();
110 		return ptrcall!(double)(_classBinding.getGrowBegin, _godot_object);
111 	}
112 	/**
113 	
114 	*/
115 	void setGrowEnd(in double offset)
116 	{
117 		checkClassBinding!(typeof(this))();
118 		ptrcall!(void)(_classBinding.setGrowEnd, _godot_object, offset);
119 	}
120 	/**
121 	
122 	*/
123 	double getGrowEnd() const
124 	{
125 		checkClassBinding!(typeof(this))();
126 		return ptrcall!(double)(_classBinding.getGrowEnd, _godot_object);
127 	}
128 	/**
129 	
130 	*/
131 	void setVertical(in bool vertical)
132 	{
133 		checkClassBinding!(typeof(this))();
134 		ptrcall!(void)(_classBinding.setVertical, _godot_object, vertical);
135 	}
136 	/**
137 	
138 	*/
139 	bool isVertical() const
140 	{
141 		checkClassBinding!(typeof(this))();
142 		return ptrcall!(bool)(_classBinding.isVertical, _godot_object);
143 	}
144 	/**
145 	
146 	*/
147 	@property Color color()
148 	{
149 		return getColor();
150 	}
151 	/// ditto
152 	@property void color(Color v)
153 	{
154 		setColor(v);
155 	}
156 	/**
157 	
158 	*/
159 	@property double growBegin()
160 	{
161 		return getGrowBegin();
162 	}
163 	/// ditto
164 	@property void growBegin(double v)
165 	{
166 		setGrowBegin(v);
167 	}
168 	/**
169 	
170 	*/
171 	@property double growEnd()
172 	{
173 		return getGrowEnd();
174 	}
175 	/// ditto
176 	@property void growEnd(double v)
177 	{
178 		setGrowEnd(v);
179 	}
180 	/**
181 	
182 	*/
183 	@property long thickness()
184 	{
185 		return getThickness();
186 	}
187 	/// ditto
188 	@property void thickness(long v)
189 	{
190 		setThickness(v);
191 	}
192 	/**
193 	
194 	*/
195 	@property bool vertical()
196 	{
197 		return isVertical();
198 	}
199 	/// ditto
200 	@property void vertical(bool v)
201 	{
202 		setVertical(v);
203 	}
204 }