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 imGuiID) |
boolean |
getBool(int imGuiID,
boolean defaultVal) |
float |
getFloat(int imGuiID) |
float |
getFloat(int imGuiID,
float defaultVal) |
int |
getInt(int imGuiID) |
int |
getInt(int imGuiID,
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 imGuiID,
boolean val) |
void |
setFloat(int imGuiID,
float val) |
void |
setInt(int imGuiID,
int val) |
destroy
isNotValidPtr, isValidPtr
protected long create()
create
in class ImGuiStructDestroyable
public void clear()
public int getInt(int imGuiID)
public int getInt(int imGuiID, int defaultVal)
public void setInt(int imGuiID, int val)
public boolean getBool(int imGuiID)
public boolean getBool(int imGuiID, boolean defaultVal)
public void setBool(int imGuiID, boolean val)
public float getFloat(int imGuiID)
public float getFloat(int imGuiID, float defaultVal)
public void setFloat(int imGuiID, float val)
public void setAllInt(int val)
public void buildSortByKey()