71 lines
1.8 KiB
Markdown
71 lines
1.8 KiB
Markdown
# Graphic.Graphic
|
|
|
|
[← Graphic](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 1/4 · [sonraki](Graphic-2.md)
|
|
|
|
Graphic()
|
|
|
|
Method Summary
|
|
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
|
|
|
|
Method and Description
|
|
|
|
|
|
|
|
Modifier and Type
|
|
|
|
Graphic anchor(float anchor)
|
|
Set both X and Y anchor point of this graphic object.
|
|
|
|
Graphic anchor(float x, float y)
|
|
Set X and Y anchor point of this graphic object individually.
|
|
|
|
Graphic anchorX(float x)
|
|
Set X anchor point of this graphic object.
|
|
|
|
Graphic anchorY(float y)
|
|
Set Y anchor point of this graphic object.
|
|
|
|
void deserializeNBT(NBTTagCompound tag)
|
|
void draw(GuiContext context, Area elementArea)
|
|
protected abstract void drawGraphic(Area area)
|
|
static Graphic fromNBT(NBTTagCompound tag)
|
|
Graphic h(int value)
|
|
|
|
Set height in pixels.
|
|
Graphic hoverOnly()
|
|
|
|
Set this graphic to display only when when mouse is over it.
|
|
Graphic rh(float value)
|
|
|
|
Set height relative in percents to parent component.
|
|
Graphic rh(float value, int offset)
|
|
|
|
Set height relative in percents to parent component with offset.
|
|
Graphic rw(float value)
|
|
|
|
Set width relative in percents to parent component.
|
|
Graphic rw(float value, int offset)
|
|
|
|
Set width relative in percents to parent component with offset.
|
|
Graphic rwh(float w, float h)
|
|
|
|
Set relative width and height in percentage relative to parent component.
|
|
Graphic rx(float value)
|
|
|
|
Set X relative in percents to parent component.
|
|
Graphic rx(float value, int offset)
|
|
|
|
Set X relative in percents to parent component with offset.
|
|
Graphic rxy(float x, float y)
|
|
|
|
Set X and Y in pixels in percentage relative to parent component.
|
|
Graphic ry(float value)
|
|
|
|
Set Y relative in percents to parent component.
|
|
Graphic ry(float value, int offset)
|
|
|
|
Set Y relative in percents to parent component with offset.
|
|
NBTTagCompound serializeNBT()
|