/
Container.hx
45 lines (38 loc) · 1.43 KB
/
Container.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
Base node for containers. A `godot.Container` contains other controls and automatically arranges them in a certain way.
A Control can inherit this to create custom container classes.
**/
@:libType
@:csNative
@:native("Godot.Container")
@:autoBuild(godot.Godot.buildUserClass())
extern class Container extends godot.Control {
/**
`sort_children` signal.
**/
public var onSortChildren(get, never):Signal<Void->Void>;
@:dox(hide) @:noCompletion inline function get_onSortChildren():Signal<Void->Void> {
return new Signal(this, "sort_children", Signal.SignalHandlerVoidVoid.connectSignal, Signal.SignalHandlerVoidVoid.disconnectSignal, Signal.SignalHandlerVoidVoid.isSignalConnected);
}
/**
Notification for when sorting the children, it must be obeyed immediately.
**/
@:native("NotificationSortChildren")
public static var NOTIFICATION_SORT_CHILDREN(default, never):Int;
@:native("new")
public function new():Void;
/**
Queue resort of the contained children. This is called automatically anyway, but can be called upon request.
**/
@:native("QueueSort")
public function queueSort():Void;
/**
Fit a child control in a given rect. This is mainly a helper for creating custom container classes.
**/
@:native("FitChildInRect")
public function fitChildInRect(child:godot.Control, rect:godot.Rect2):Void;
}