Commit Graph
90 Commits
Author SHA1 Message Date
墨恒andSpaiR 986aa532ff [API] Added callback binding for InputText (#156)
* Added callback binding for InputText

* Add JavaDoc

* Change

* Add Javadoc

* Fix Import

* Teaks and improvements

- Extended example;
- Added input text callback ImGuiInputTextFlags#CallbackEdit;
- Minor code improvements.

---------

Co-authored-by: SpaiR <klimbetoo@gmail.com>
2023-02-07 13:13:02 +02:00
Moulberry 667d6108b8 [API] Fix nHasDragDropPayload SIGSEGV when payload doesn't exist (#155)
`getDragDropPayload()` functions should simply return null when
the payload doesn't exist.

Currently, DearImGui will return NULL from `ImGui::GetDragDropPayload()`
when the payload does not exist. This causes a null dereference
since the nHasDragDropPayload function performs no NULL check
2023-02-03 19:11:47 +02:00
davfsa 72e061637e [API] Fix calcTextSize to be used in a static context (#143) 2022-11-16 12:00:39 +02:00
SpaiR e972af840e [API] Dear ImGui v1.86 (#102) 2021-12-26 16:00:21 +02:00
Trevor FlynnandSpaiR 74203bc333 [API] Add a mechanism for Dear ImGui assertion callbacks (#100)
* Syncing wip to github

* Assertion callback works

* Restore example that does not crash

* Add comment in build script. Merge with upstream.

* Fix assert always triggering

* Resolve jvm env at runtime to prevent looking up bad stack address

* Fixed EXCEPTION_ACCESS_VIOLATION within native code after callback was complete.

* Fix linting errors

* Change ImGui to Dear ImGui

Co-authored-by: SpaiR <klimbetoo@gmail.com>

* Move jvm native layer to its own header/source

Co-authored-by: SpaiR <klimbetoo@gmail.com>
2021-12-26 14:11:56 +02:00
SpaiR f172bd6e13 [API] Dear ImGui v1.85 2021-12-01 10:38:46 +02:00
SpaiR e529c610fa [API] Fix dragInt3 only shows 2 boxes
fixes #68
2021-09-12 11:29:01 +03:00
SpaiR 9026dcd4ad [API] Dear ImGui v1.84.1 2021-08-29 11:17:15 +03:00
Perry MacMurray 78694a4263 [API] Add ImGuiContext struct and ability to switch Dear ImGui contexts (#65)
Struct itself has no fields or methods. It can be used for context switching though.

* Implement ImGuiContext

* Move ImGuiContext from imgui to imgui.internal, minor bugfixes

resolves #17
2021-07-13 08:22:48 +03:00
SpaiR 39a86991f2 [Build] Drop 32bit support 2021-05-30 14:30:00 +03:00
SpaiR b4df8d8611 [API] Dear ImGui v1.83 2021-05-29 13:09:00 +03:00
SpaiR 423612cdc4 [API] Fix #43 2021-05-29 12:09:01 +03:00
SpaiR 3725ddf2f9 [Build] Add a "one include" header files 2021-04-10 15:30:00 +03:00
sh54andSpaiR 04b7c4e4fe [API] Allow null to be passed as the shortcut param to MenuItem (#35)
Co-authored-by: SpaiR <klimbetoo@gmail.com>
2021-03-27 17:09:37 +03:00
SpaiR 3fe77320f3 [Example] Add example of Drag & Drop 2021-03-09 17:58:21 +02:00
SpaiR 533fc7f979 [API] Refactor Drag & Drop api
In Java we can easily bind our payload to an object. 
This is a more flexible approach, than using byte arrays so the last one was removed.
2021-03-09 17:58:02 +02:00
SpaiR 9e807d3e9e [API] Fix getDragDropPayloadObject
Methods was throwing nullpointer  exception when there were no payload
2021-02-27 16:16:55 +02:00
SpaiR 36415d60f3 [API] Add API to directly return ImVec2/ImVec4 2021-02-27 16:16:03 +02:00
SpaiR fb80b8d8a1 [API] Make ImGuiIO to extend common ImGuiStruct class
ImGuiIO used a legacy way to access the native struct through `ImGui::GetIO()`.
Refactored to use ImGuiStruct, so to make API consistent.
2021-02-27 16:15:22 +02:00
SpaiR 91d636a659 [API] Remove lazy-created sructs and add methods to verify struct pointer 2021-02-27 16:15:11 +02:00
SpaiR 08bf84ad64 [API] Dear ImGui v1.81 2021-02-20 11:16:44 +02:00
SpaiR cf9e74b1d0 [Example] Migrate example to the new module 2021-01-24 22:20:37 +02:00
SpaiR 7043cd642b [API] Add missing ImGui::InputTextWithHint() method 2021-01-23 20:48:13 +02:00
SpaiR 13b3836e47 [API] Delete obsolete functions 2021-01-23 20:24:40 +02:00
SpaiR 33309088a2 [API] Dear ImGui v1.80 2021-01-23 20:03:49 +02:00
SpaiR 8ac8a0719b [API] Add API for Dear ImGui v1.79 2020-10-17 14:58:04 +03:00
SpaiR 897ca4947b [API] Change natives extract folder
So the folder will be unique for sure
2020-10-06 17:30:37 +03:00
SpaiR 4e564240ca [API] Add support for DockBuilder 2020-09-05 15:27:03 +03:00
SpaiR 23b9c30b45 [API] Fix windows build 2020-08-30 23:23:24 +03:00
SpaiR 0b4aa25b1d [API] Add API for Dear ImGui v1.78 2020-08-30 23:04:23 +03:00
SpaiR e328d738ce [WIP] Viewports backend 2020-08-30 15:47:27 +03:00
SpaiR 8494bd8361 Add ImPlatformIO, ImGuiViewport 2020-08-29 15:33:15 +03:00
SpaiR dce574ef76 Rename ImGui#touch to ImGui#init 2020-08-23 21:12:04 +03:00
SpaiR 7bfa1b6195 Remove *New versions of methods, since now is possible to change the pointer explicitly 2020-08-23 17:00:23 +03:00
SpaiR 1dcf2328a4 Refactor mapping to the native structs 2020-08-23 16:49:16 +03:00
SpaiR 1209caa518 Initial Multi-Viewport implementation 2020-08-23 14:13:03 +03:00
SpaiR 640f56b4be Add ImGui helper methods to get ImVec2 values 2020-07-11 18:50:57 +03:00
SpaiR f555f84d2e Remove redundant "textEnd" argument from text methods 2020-07-08 04:52:34 +03:00
SpaiR 6c008e6e8c Update binding to Dear ImGui v1.77 2020-07-03 16:38:18 +03:00
SpaiR e56990f2c9 Simplify drag'n'drop API with ability to directly transfer Java objects 2020-06-18 22:03:18 +03:00
SpaiR 236a6de0a3 Add ImGuiStorage 2020-06-17 17:00:13 +03:00
SpaiR 2de7a25e99 Rename ImBool to ImBoolean 2020-06-16 17:21:09 +03:00
SpaiR ebd1e69f89 Refactor ImGuiInputTextData into an inner ImString class and rename to InputData 2020-06-16 17:20:09 +03:00
SpaiR e60f56beb7 Move primitive wrappers into its own package "imgui.type" 2020-06-16 17:07:21 +03:00
SpaiR 911bde2d02 Rename package: enums->flag 2020-06-16 16:58:49 +03:00
SpaiR 1235a8d478 Fix build for windows 2020-06-08 03:40:42 +03:00
SpaiR b25b5d55ad Make getID to return int instead of long 2020-06-06 21:51:11 +03:00
SpaiR 8ac87a9606 Add ImColor helper. Increase flexibility of the color API
In most of the places it's now possible to provide a simple int value, instead of float numbers.
2020-06-06 17:47:14 +03:00
SpaiR fbe0ed5a08 Fix getBackgroundDrawList() and getForegroundDrawList(). Add methods to create draw list objects with constant pointer 2020-06-06 16:01:02 +03:00
SpaiR 99bb339eae Add support for MacOsX 2020-06-02 22:02:40 +03:00