public final class ImGuiStorage extends ImGuiStructDestroyable
ptr
Constructor and Description |
---|
ImGuiStorage() |
ImGuiStorage(long ptr) |
Modifier and Type | Method and Description |
---|---|
void |
buildSortByKey()
For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.
|
void |
clear() |
protected long |
create() |
boolean |
getBool(int key) |
boolean |
getBool(int key,
boolean defaultVal) |
float |
getFloat(int key) |
float |
getFloat(int key,
float defaultVal) |
int |
getInt(int key) |
int |
getInt(int key,
int defaultVal) |
void |
setAllInt(int val)
Use on your own storage if you know only integer are being stored (open/close all tree nodes)
|
void |
setBool(int key,
boolean val) |
void |
setFloat(int key,
float val) |
void |
setInt(int key,
int val) |
destroy
isNotValidPtr, isValidPtr
protected long create()
create
in class ImGuiStructDestroyable
public void clear()
public int getInt(int key)
public int getInt(int key, int defaultVal)
public void setInt(int key, int val)
public boolean getBool(int key)
public boolean getBool(int key, boolean defaultVal)
public void setBool(int key, boolean val)
public float getFloat(int key)
public float getFloat(int key, float defaultVal)
public void setFloat(int key, float val)
public void setAllInt(int val)
public void buildSortByKey()