Add shortcut methods to add/remove config/backend flags
This commit is contained in:
1 parent
258b9feeb6
commit
92a9d43876
3 files changed
+29
-2
No files matched your search
@@ -38,6 +38,20 @@ public final class ImGuiIO {
|
||||
ImGui::GetIO().ConfigFlags = configFlags;
|
||||
*/
|
||||
|
||||
/**
|
||||
* See ImGuiConfigFlags enum. Set by user/application. Gamepad/keyboard navigation options, etc.
|
||||
*/
|
||||
public void addConfigFlags(int configFlags) {
|
||||
setConfigFlags(getConfigFlags() | configFlags);
|
||||
}
|
||||
|
||||
/**
|
||||
* See ImGuiConfigFlags enum. Set by user/application. Gamepad/keyboard navigation options, etc.
|
||||
*/
|
||||
public void removeConfigFlags(int configFlags) {
|
||||
setConfigFlags(getConfigFlags() & ~(configFlags));
|
||||
}
|
||||
|
||||
/**
|
||||
* See ImGuiBackendFlags enum. Set by back-end to communicate features supported by the back-end.
|
||||
*/
|
||||
@@ -52,6 +66,19 @@ public final class ImGuiIO {
|
||||
ImGui::GetIO().BackendFlags = backendFlags;
|
||||
*/
|
||||
|
||||
/**
|
||||
* See ImGuiBackendFlags enum. Set by back-end to communicate features supported by the back-end.
|
||||
*/
|
||||
public void addBackendFlags(int backendFlags) {
|
||||
setBackendFlags(getBackendFlags() | backendFlags);
|
||||
}
|
||||
|
||||
/**
|
||||
* See ImGuiBackendFlags enum. Set by back-end to communicate features supported by the back-end.
|
||||
*/
|
||||
public void removeBackendFlags(int backendFlags) {
|
||||
setBackendFlags(getBackendFlags() & ~(backendFlags));
|
||||
}
|
||||
|
||||
/**
|
||||
* Minimum time between saving positions/sizes to .ini file, in seconds.
|
||||
|
||||
Reference in new issue
Block a user