1 /** 2 Horizontal box container. 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.hboxcontainer; 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.boxcontainer; 24 import godot.container; 25 import godot.control; 26 import godot.canvasitem; 27 import godot.node; 28 /** 29 Horizontal box container. 30 31 See $(D BoxContainer). 32 */ 33 @GodotBaseClass struct HBoxContainer 34 { 35 enum string _GODOT_internal_name = "HBoxContainer"; 36 public: 37 @nogc nothrow: 38 union { godot_object _godot_object; BoxContainer _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 HBoxContainer other) const { return _godot_object.ptr is other._godot_object.ptr; } 47 HBoxContainer 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 HBoxContainer _new() 51 { 52 static godot_class_constructor constructor; 53 if(constructor is null) constructor = _godot_api.godot_get_class_constructor("HBoxContainer"); 54 if(constructor is null) return typeof(this).init; 55 return cast(HBoxContainer)(constructor()); 56 } 57 @disable new(size_t s); 58 }