85 lines
1.9 KiB
Markdown
85 lines
1.9 KiB
Markdown
# UIComponent.y
|
|
|
|
[← UIComponent](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 5/7 · [önceki](y-4.md) · [sonraki](y-6.md)
|
|
|
|
public UIComponent rx(float value)
|
|
|
|
Set X relative in percents to parent component. Passed value should be 0..1, where 0 is fully left, and 1 is
|
|
|
|
|
|
|
|
fully right.
|
|
|
|
rx
|
|
|
|
public UIComponent rx(float value,
|
|
int offset)
|
|
|
|
Set X relative in percents to parent component with offset. Passed value should be 0..1, where 0 is fully
|
|
left, and 1 is fully right.
|
|
|
|
Parameters:
|
|
value - Percentage how far into X.
|
|
offset - Offset in pixels (can be negative).
|
|
|
|
y
|
|
|
|
public UIComponent y(int value)
|
|
|
|
Set Y in pixels relative to parent component.
|
|
|
|
ry
|
|
|
|
public UIComponent ry(float value)
|
|
|
|
Set Y relative in percents to parent component. Passed value should be 0..1, where 0 is fully top, and 1 is
|
|
fully bottom.
|
|
|
|
ry
|
|
|
|
public UIComponent ry(float value,
|
|
int offset)
|
|
|
|
Set Y relative in percents to parent component with offset. Passed value should be 0..1, where 0 is fully
|
|
top, and 1 is fully bottom.
|
|
|
|
Parameters:
|
|
value - Percentage how far into Y.
|
|
offset - Offset in pixels (can be negative).
|
|
|
|
w
|
|
|
|
public UIComponent w(int value)
|
|
|
|
Set width in pixels.
|
|
|
|
rw
|
|
|
|
public UIComponent rw(float value)
|
|
|
|
Set width relative in percents to parent component. Passed value should be 0..1, where 0 is element will
|
|
be 0% of parent component's width, and 1 is 100% of parent's component width.
|
|
|
|
rw
|
|
|
|
public UIComponent rw(float value,
|
|
int offset)
|
|
|
|
Set width relative in percents to parent component with offset. Passed value should be 0..1, where 0 is
|
|
element will be 0% of parent component's width, and 1 is 100% of parent's component width.
|
|
|
|
Parameters:
|
|
value - Percentage of how wide relative to parent component.
|
|
offset - Offset in pixels (can be negative).
|
|
|
|
h
|
|
|
|
public UIComponent h(int value)
|
|
|
|
Set height in pixels.
|
|
|
|
rh
|
|
|