public class UIResizeHandle extends UIComponent<UIResizeHandle> implements IControlComponent
Modifier and Type | Class and Description |
---|---|
static class |
UIResizeHandle.Type |
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate
Constructor and Description |
---|
UIResizeHandle(MalisisGui gui,
UIComponent parent) |
UIResizeHandle(MalisisGui gui,
UIComponent parent,
UIResizeHandle.Type type) |
Modifier and Type | Method and Description |
---|---|
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called first when drawing this
UIComponent . |
void |
drawForeground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called last when drawing this
UIComponent . |
boolean |
onDrag(int lastX,
int lastY,
int x,
int y,
MouseButton button) |
addControlComponent, componentX, componentY, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getGui, getHeight, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onAddedToScreen, onButtonPress, onButtonRelease, onClick, onDoubleClick, onKeyTyped, onMouseMove, onRightClick, onScrollWheel, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, setAlpha, setAnchor, setDisabled, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setVisible, setZIndex, toString, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
draw, getComponentAt, getParent, onKeyTyped, onScrollWheel, setParent
public UIResizeHandle(MalisisGui gui, UIComponent parent, UIResizeHandle.Type type)
public UIResizeHandle(MalisisGui gui, UIComponent parent)
public boolean onDrag(int lastX, int lastY, int x, int y, MouseButton button)
onDrag
in class UIComponent<UIResizeHandle>
public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponent
UIComponent
.drawBackground
in class UIComponent<UIResizeHandle>
renderer
- the renderermouseX
- the mouse xmouseY
- the mouse ypartialTick
- the partial tickpublic void drawForeground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponent
UIComponent
.drawForeground
in class UIComponent<UIResizeHandle>
renderer
- the renderermouseX
- the mouse xmouseY
- the mouse ypartialTick
- the partial tick