74 lines
1.9 KiB
Markdown
74 lines
1.9 KiB
Markdown
# Graphic.Graphic
|
|
|
|
[← Graphic](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 3/4 · [önceki](Graphic-2.md) · [sonraki](Graphic-4.md)
|
|
|
|
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 Graphic 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 Graphic w(int value)
|
|
|
|
Set width in pixels.
|
|
|
|
rw
|
|
|
|
public Graphic 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 Graphic 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 Graphic h(int value)
|
|
|
|
Set height in pixels.
|
|
|
|
rh
|
|
|
|
public Graphic rh(float value)
|
|
|
|
Set height relative in percents to parent component. Passed value should be 0..1, where 0 is element will
|
|
be 0% of parent component's height, and 1 is 100% of parent's component height.
|
|
|
|
rh
|
|
|
|
public Graphic rh(float value,
|
|
int offset)
|
|
|
|
Set height 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 height, and 1 is 100% of parent's component height.
|
|
|
|
Parameters:
|
|
value - Percentage of how tall relative to parent component.
|
|
offset - Offset in pixels (can be negative).
|
|
|
|
xy
|
|
|