1 /**
2 Checkable button.
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.checkbutton;
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.button;
24 import godot.basebutton;
25 import godot.control;
26 import godot.canvasitem;
27 import godot.node;
28 /**
29 Checkable button.
30 
31 CheckButton is a toggle button displayed as a check field.
32 */
33 @GodotBaseClass struct CheckButton
34 {
35 	enum string _GODOT_internal_name = "CheckButton";
36 public:
37 @nogc nothrow:
38 	union { godot_object _godot_object; Button _GODOT_base; }
39 	alias _GODOT_base this;
40 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
41 	package(godot) __gshared bool _classBindingInitialized = false;
42 	package(godot) static struct _classBinding
43 	{
44 		__gshared:
45 	}
46 	bool opEquals(in CheckButton other) const { return _godot_object.ptr is other._godot_object.ptr; }
47 	CheckButton opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
48 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
49 	mixin baseCasts;
50 	static CheckButton _new()
51 	{
52 		static godot_class_constructor constructor;
53 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("CheckButton");
54 		if(constructor is null) return typeof(this).init;
55 		return cast(CheckButton)(constructor());
56 	}
57 	@disable new(size_t s);
58 }