| Enum Constant and Description |
|---|
BotCenter |
BotLeft |
BotRight |
Center |
Left |
Right |
TopCenter |
TopLeft |
TopRight |
| Modifier and Type | Method and Description |
|---|---|
void |
getCenteringOffset(Vec2 dst,
Size area,
Size contents) |
void |
getPositioningOffset(Vec2 dst,
int w,
int h) |
void |
getPositioningOffset(Vec2 dst,
Size size) |
boolean |
isBotAlign() |
boolean |
isLeftAlign() |
boolean |
isRightAlign() |
boolean |
isTopAlign() |
static Anchor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Anchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Anchor TopLeft
public static final Anchor TopCenter
public static final Anchor TopRight
public static final Anchor Left
public static final Anchor Center
public static final Anchor Right
public static final Anchor BotLeft
public static final Anchor BotCenter
public static final Anchor BotRight
public static Anchor[] values()
for (Anchor c : Anchor.values()) System.out.println(c);
public static Anchor valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isTopAlign()
public boolean isBotAlign()
public boolean isLeftAlign()
public boolean isRightAlign()
public void getPositioningOffset(Vec2 dst, int w, int h)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com