-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[API] Implement binding for ImGui::getWindowScrollbarRect (#81)
* Implemented binding for ImGui::getWindowScrollbarRect * checkstyle fixes * more logic naming for boolean fields in ImGuiWindow struct Co-authored-by: aleksandr.cayun <aleksandr.cayun@vizor-games.com>
- Loading branch information
1 parent
2d2e917
commit 326594f
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
imgui-binding/src/main/java/imgui/internal/ImGuiWindow.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package imgui.internal; | ||
|
||
import imgui.binding.ImGuiStruct; | ||
|
||
public class ImGuiWindow extends ImGuiStruct { | ||
public ImGuiWindow(final long ptr) { | ||
super(ptr); | ||
} | ||
|
||
/*JNI | ||
#include "_common.h" | ||
#include <imgui_internal.h> | ||
#define IMGUI_WINDOW ((ImGuiWindow*)STRUCT_PTR) | ||
*/ | ||
|
||
/** | ||
* Is scrollbar visible? | ||
*/ | ||
public native boolean isScrollbarX(); /* | ||
return IMGUI_WINDOW->ScrollbarX; | ||
*/ | ||
|
||
/** | ||
* Is scrollbar visible? | ||
*/ | ||
public native boolean isScrollbarY(); /* | ||
return IMGUI_WINDOW->ScrollbarY; | ||
*/ | ||
|
||
} |