/
AspectRatioContainer.hx
65 lines (51 loc) · 2.13 KB
/
AspectRatioContainer.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
Arranges child controls in a way to preserve their aspect ratio automatically whenever the container is resized. Solves the problem where the container size is dynamic and the contents' size needs to adjust accordingly without losing proportions.
**/
@:libType
@:csNative
@:native("Godot.AspectRatioContainer")
@:autoBuild(godot.Godot.buildUserClass())
extern class AspectRatioContainer extends godot.Container {
/**
Specifies the vertical relative position of child controls.
**/
@:native("AlignmentVertical")
public var alignmentVertical:godot.AspectRatioContainer_AlignMode;
/**
Specifies the horizontal relative position of child controls.
**/
@:native("AlignmentHorizontal")
public var alignmentHorizontal:godot.AspectRatioContainer_AlignMode;
/**
The stretch mode used to align child controls.
**/
@:native("StretchMode")
public var stretchMode:godot.AspectRatioContainer_StretchModeEnum;
/**
The aspect ratio to enforce on child controls. This is the width divided by the height. The ratio depends on the `godot.AspectRatioContainer.stretchMode`.
**/
@:native("Ratio")
public var ratio:Single;
@:native("new")
public function new():Void;
@:native("SetRatio")
public function setRatio(ratio:Single):Void;
@:native("GetRatio")
public function getRatio():Single;
@:native("SetStretchMode")
public function setStretchMode(stretchMode:godot.AspectRatioContainer_StretchModeEnum):Void;
@:native("GetStretchMode")
public function getStretchMode():godot.AspectRatioContainer_StretchModeEnum;
@:native("SetAlignmentHorizontal")
public function setAlignmentHorizontal(alignmentHorizontal:godot.AspectRatioContainer_AlignMode):Void;
@:native("GetAlignmentHorizontal")
public function getAlignmentHorizontal():godot.AspectRatioContainer_AlignMode;
@:native("SetAlignmentVertical")
public function setAlignmentVertical(alignmentVertical:godot.AspectRatioContainer_AlignMode):Void;
@:native("GetAlignmentVertical")
public function getAlignmentVertical():godot.AspectRatioContainer_AlignMode;
}