1 /**
2 Vertical slider.
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.vslider;
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.slider;
25 import godot.range;
26 import godot.control;
27 import godot.canvasitem;
28 import godot.node;
29 /**
30 Vertical slider.
31 
32 See $(D Slider). This one goes from bottom (min) to top (max).
33 $(B Note:) The $(D Range.changed) and $(D Range.valueChanged) signals are part of the $(D Range) class which this class inherits from.
34 */
35 @GodotBaseClass struct VSlider
36 {
37 	package(godot) enum string _GODOT_internal_name = "VSlider";
38 public:
39 @nogc nothrow:
40 	union { /** */ godot_object _godot_object; /** */ Slider _GODOT_base; }
41 	alias _GODOT_base this;
42 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
43 	package(godot) __gshared bool _classBindingInitialized = false;
44 	package(godot) static struct GDNativeClassBinding
45 	{
46 		__gshared:
47 	}
48 	/// 
49 	pragma(inline, true) bool opEquals(in VSlider 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 VSlider.
61 	/// Note: use `memnew!VSlider` instead.
62 	static VSlider _new()
63 	{
64 		static godot_class_constructor constructor;
65 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VSlider");
66 		if(constructor is null) return typeof(this).init;
67 		return cast(VSlider)(constructor());
68 	}
69 	@disable new(size_t s);
70 }