-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package imgui; | ||
|
||
import idl.IDLBase; | ||
|
||
public class ImVectorInt extends IDLBase { | ||
|
||
public int getData(int index) { | ||
return getDataNATIVE(getCPointer(), index); | ||
} | ||
|
||
/*[-teaVM;-NATIVE] | ||
var jsObj = [MODULE].wrapPointer(this_addr, [MODULE].ImVectorInt); | ||
return jsObj.getData(index); | ||
*/ | ||
/*[-C++;-NATIVE] | ||
ImVectorInt* nativeObject = (ImVectorInt*)this_addr; | ||
unsigned int value = nativeObject->Data[index]; | ||
return (jint)value; | ||
*/ | ||
private static native int getDataNATIVE(long this_addr, int index); | ||
} |
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
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