[API] Add ability to set inputBuffer in ImGuiTextFilter
Useful to have a custom inputText field, but to filter using ImGuiTextFilter resolves #160
This commit is contained in:
1 file changed
+8
@@ -60,4 +60,12 @@ public final class ImGuiTextFilter extends ImGuiStructDestroyable {
|
|||||||
public native boolean isActive(); /*
|
public native boolean isActive(); /*
|
||||||
return IMGUI_TEXT_FILTER->IsActive();
|
return IMGUI_TEXT_FILTER->IsActive();
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
public native String getInputBuffer(); /*
|
||||||
|
return env->NewStringUTF(IMGUI_TEXT_FILTER->InputBuf);
|
||||||
|
*/
|
||||||
|
|
||||||
|
public native void setInputBuffer(String inputBuffer); /*
|
||||||
|
strncpy(IMGUI_TEXT_FILTER->InputBuf, inputBuffer, sizeof(IMGUI_TEXT_FILTER->InputBuf));
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user