feat(api): add missing ImGui.TableGetSortSpecs API (and related objects) (#246)

* 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>
This commit is contained in:
Emanuel RabinaandSpaiR authored and GitHub committed 2024-08-12 16:35:02 +03:00
1 parent aef257f0bd
commit 9ca6d97489
6 files changed
+288 -2

No files matched your search

@@ -0,0 +1,66 @@
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
*/
}