| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | UI_BUTTON0_CAPTURE
Event flags. |
| public static final int | UI_BUTTON0_DOWN
Event flags. |
| public static final int | UI_BUTTON0_HOT_UP
Event flags. |
| public static final int | UI_BUTTON0_UP
Event flags. |
| public static final int | UI_BUTTON2_DOWN
Event flags. |
| public static final int | |
| public static final int | UI_CHAR
Event flags. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | UI_HCENTER
Child layout flags to pass to |
| public static final int | |
| public static final int | |
| public static final int | UI_JUSTIFY
Container flags to pass to |
| public static final int | UI_KEY_DOWN
Event flags. |
| public static final int | UI_KEY_UP
Event flags. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | UI_SCROLL
Event flags. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | UI_VCENTER
Child layout flags to pass to |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| public static native long | ||||||||||
| public static native int | ||||||||||
| public static native void | ||||||||||
| public static native int | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native long | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static ByteBuffer | uiAllocHandle(int item, int size)
Allocates space for application-dependent context data and assign it as the handle to the item. | |||||||||
| public static native int | uiAppend(int item, int
inserted after sibling)itemAssigns an item to the same container as another item. | |||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static boolean | uiContains(int item, int x, int y)
Returns 1 if an items absolute rectangle contains a given coordinate, otherwise 0. | |||||||||
| public static native long | uiCreateContext(int
the maximum number of items that can be declared. 4096 is a good starting value. item_capacity, int the maximum total size of bytes that can be allocated using buffer_capacity)AllocHandle; you may pass 0 if you don't need to allocate handles. (1<<20)
is a good starting value.Creates a new UI context; call | |||||||||
| public static void | uiDestroyContext(long ctx)
Releases the memory of an UI context created with | |||||||||
| public static native void | ||||||||||
| public static native int | uiFindItem(int item, int x, int y, int flags, int mask)
Returns the topmost item containing absolute location | |||||||||
| public static native int | uiFirstChild(int
if 0, the first child item of the root item will be returned item)Returns the first child item of a container item. | |||||||||
| public static native void | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static boolean | Returns: 1 if the button has been set to pressed, 0 for releasedReturns the current state of an application dependent input button as set by | |||||||||
| public static native int | ||||||||||
| public static native long | ||||||||||
| public static UIVec2 | uiGetCursor(UIVec2 __result)
Returns the current cursor position in screen coordinates as set by | |||||||||
| public static UIVec2 | uiGetCursorDelta(UIVec2 __result)
Returns the offset of the cursor relative to the last call to | |||||||||
| public static UIVec2 | ||||||||||
| public static UIVec2 | uiGetCursorStartDelta(UIVec2 __result)
Returns the offset of the cursor relative to the beginning point of a drag operation. | |||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native long | uiGetHandle(int item)
Returns the application-dependent handle of the item as passed to | |||||||||
| public static UIHandler | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native short | ||||||||||
| public static native short | ||||||||||
| public static native short | ||||||||||
| public static native short | ||||||||||
| public static native int | ||||||||||
| public static UIRect | ||||||||||
| public static UIVec2 | ||||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native int | Returns: the child item ID if the container has already added itemsAssigns an item to a container. | |||||||||
| public static native int | uiInsertBack(int item, int child)
Inserts child into container item like | |||||||||
| public static native int | ||||||||||
| public static native int | ||||||||||
| public static native void | uiMakeCurrent(long ctx)
Selects an UI context as the current context; a context must always be selected before using any of the other UI functions. | |||||||||
| public static native int | ||||||||||
| public static native void | uiProcess(int
the time in milliseconds relative to the last call to timestamp)uiProcess() and is used to estimate the threshold for double-clicks after calling
uiProcess().Updates the internal state according to the current cursor position and button states, and call all registered handlers. | |||||||||
| public static native int | uiRecoverItem(int olditem)
When | |||||||||
| public static native void | uiRemapItem(int olditem, int newitem)
In cases where it is important to recover old state over changes in the view, and the built-in remapping fails, the UI declaration can manually remap
old items to new IDs in cases where e.g. the previous item ID has been temporarily saved; | |||||||||
| public static native void | ||||||||||
| public static void | uiSetButton(int button, int
an application defined set of flags for modifier keys mod, boolean is 1 for pressed, 0 for released enabled)Sets a mouse or gamepad button as pressed/released button is in the range | |||||||||
| public static native void | uiSetChar(int value)
Sends a single character for text input; the character is usually in the unicode range, but can be application defined. | |||||||||
| public static native void | uiSetCursor(int x, int y)
Sets the current cursor position (usually belonging to a mouse) to the screen coordinates at | |||||||||
| public static native void | uiSetEvents(int item, int
designates for which events the handler should be called. One or more of: flags)
| |||||||||
| public static native void | ||||||||||
| public static void | ||||||||||
| public static native void | uiSetHandle(int item, long
an application defined 64-bit handle. If handle)NULL, the item will not be interactive.Sets the application-dependent handle of an item. | |||||||||
| public static void | ||||||||||
| public static void | uiSetKey(int key, int
an application defined set of flags for modifier keys mod, boolean 1 for key down, 0 for key up enabled)Sets a key as down/up; the key can be any application defined | |||||||||
| public static native void | ||||||||||
| public static void | uiSetMargins(int item, int l, int t, int r, int b)
Sets the left, top, right and bottom margins of an item. | |||||||||
| public static native void | ||||||||||
| public static native void | ||||||||||
| public static native void | uiUpdateHotItem()
Updates the current hot item; this only needs to be called if items are kept for more than one frame and |