public class DrawCommand
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
ACTION |
int |
c |
static int |
DRAW_BTN |
static int |
DRAW_DEF_BACKGROUND |
static int |
DRAW_RECT |
static int |
DRAW_TEXT |
static int |
DRAW_TEXTURED_RECT |
int |
id |
java.lang.String |
s |
int |
x1 |
int |
x2 |
int |
y1 |
int |
y2 |
| Modifier and Type | Method and Description |
|---|---|
static DrawCommand |
compileButton(int x,
int y,
int w,
int id,
java.lang.String s) |
static DrawCommand |
compileRect(int x1,
int y1,
int x2,
int y2,
int c) |
static DrawCommand |
compileText(java.lang.String text,
int x,
int y,
int c) |
static DrawCommand |
compileTexturedRect(int x,
int y,
int w,
int h,
int c) |
int |
getAction() |
static java.util.ArrayList<DrawCommand> |
parseJSON(JSONArray commands) |
JSONObject |
toJSON() |
public static final int DRAW_TEXT
public static final int DRAW_RECT
public static final int DRAW_TEXTURED_RECT
public static final int DRAW_DEF_BACKGROUND
public static final int DRAW_BTN
public int x1
public int x2
public int y1
public int y2
public int ACTION
public int c
public int id
public java.lang.String s
public static DrawCommand compileText(java.lang.String text, int x, int y, int c)
public static DrawCommand compileRect(int x1, int y1, int x2, int y2, int c)
public static DrawCommand compileTexturedRect(int x, int y, int w, int h, int c)
public static DrawCommand compileButton(int x, int y, int w, int id, java.lang.String s)
public int getAction()
public static java.util.ArrayList<DrawCommand> parseJSON(JSONArray commands)
public JSONObject toJSON()