* Add missing GetTableSortSpecs API * Add binding for TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags) * Add generated files * Wrap > character in code block Co-authored-by: SpaiR <klimbetoo@gmail.com> * Wrap > character in code block Co-authored-by: SpaiR <klimbetoo@gmail.com> --------- Co-authored-by: SpaiR <klimbetoo@gmail.com>
67 lines
1.5 KiB
Java
67 lines
1.5 KiB
Java
package imgui;
|
|
|
|
import imgui.binding.ImGuiStruct;
|
|
|
|
/**
|
|
* Sorting specification for one column of a table.
|
|
*/
|
|
public final class ImGuiTableColumnSortSpecs extends ImGuiStruct {
|
|
|
|
public ImGuiTableColumnSortSpecs(final long ptr) {
|
|
super(ptr);
|
|
}
|
|
|
|
/*JNI
|
|
#include "_common.h"
|
|
#define THIS ((ImGuiTableColumnSortSpecs*)STRUCT_PTR)
|
|
*/
|
|
|
|
/**
|
|
* User id of the column (if specified by a TableSetupColumn() call)
|
|
*/
|
|
public int getColumnUserID() {
|
|
return nGetColumnUserID();
|
|
}
|
|
|
|
private native int nGetColumnUserID(); /*
|
|
return THIS->ColumnUserID;
|
|
*/
|
|
|
|
/**
|
|
* Index of the column
|
|
*/
|
|
public int getColumnIndex() {
|
|
return nGetColumnIndex();
|
|
}
|
|
|
|
private native int nGetColumnIndex(); /*
|
|
return THIS->ColumnIndex;
|
|
*/
|
|
|
|
/**
|
|
* Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here)
|
|
*/
|
|
public int getSortOrder() {
|
|
return nGetSortOrder();
|
|
}
|
|
|
|
private native int nGetSortOrder(); /*
|
|
return THIS->SortOrder;
|
|
*/
|
|
|
|
/**
|
|
* ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending (you can use this or SortSign, whichever is more convenient for your sort function)
|
|
*/
|
|
public int getSortDirection() {
|
|
return nGetSortDirection();
|
|
}
|
|
|
|
private native int nGetSortDirection(); /*
|
|
return THIS->SortDirection;
|
|
*/
|
|
|
|
/*JNI
|
|
#undef THIS
|
|
*/
|
|
}
|