Commit Graph
163 Commits
Author SHA1 Message Date
SpaiR e529c610fa [API] Fix dragInt3 only shows 2 boxes
fixes #68
2021-09-12 11:29:01 +03:00
Adam GrzegorzewskiandSpaiR 4e56056222 [API] Bindings for ImGuiColorTextEdit (#79)
* Add ImGuiColorTextEdit submodule

* ImGuiColorTextEdit integration

* Remove unused Identifier class (oops)

* Fix checkstyle

* Small tweaks and fixes

* Remove empty line before imports

Co-authored-by: SpaiR <klimbetoo@gmail.com>
2021-09-12 11:22:43 +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 1544682cc4 [Build] Add workflows for automatic releases 2021-07-10 14:15:45 +03:00
SpaiR b1ea4cedb9 [Doc] Fix javadoc 2021-06-21 16:19:39 +03:00
92fa416657 [API] Include ImPlot (#56)
* Add implot submodule.

* Add implot to generateLibs

* Add _implot.h

* Add placeholder ImPlot java classes.

* Create demo window.

* Try to show the ImPlot demo in the window.

* Create ImPlot context.

* Fix final check.

* Implement ImPlotFlags.

* Implement the rest of the enums.

* Make classes final.

* Implement ImPlotContext and related methods

* Added more methods to ImPlot wrapper (mostly plot utils)

* Implement ImPlotPoint

* Implement ImPlotRange

* Switch native method to static in ImPlotPoint

* Implement ImPlotLimits

* Finish ImPlot Plot Utils bindings

* Implement more ImPlot methods (Miscellaneous)

* Implement more ImPlot methods (Legend utils/tools)

* Implement more ImPlot methods (Drag and drop utils)

* Implement more ImPlot methods (Plot tools)

* Implement more ImPlot methods (most plot items)

* Fix compile error (casting to double and not Double)

* Fix ImDrawData.getCmdListCmdBufferTextureId()

* Implement more ImPlot methods (rest of plot items)
(except for PlotImage, which is not currently supported)

* Fix ImGui binding problems due to API changes

* Adhere to style guidelines.

* Fix imguizmo submodule

* Fix API

* Implement ImPlotStyle

* Implement more ImPlot methods (Plot and Item styling)

* Implement remainder of ImPlot methods (Colormaps)

* Modify ImPlot example program

* Fix ImPlot example program bug

* ImPlot bugfixes

* Update ImPlot Demo

* Revert merge errors.

* Make the submodules the version on master.

* Fix URL/style in ExampleImPlot

* Fix merge conflicts with example ImPlot context creation

* Remove unneccesary static block for field declarations

* Revert libimgui-java64.so

* Change construction to use define (vs passing a pointer)

* Fixed memory leaks
Changed ImPlotLimits, ImPlotRange, and ImPlotPoint to extend ImGuiStructDestroyable instead of ImGuiStruct so user-created instances can be destroyed. Methods that create instances that must be destroyed manually specify this in the docs.

* Fix style violations

* Fix compile error

* Replace exception type

Co-authored-by: Perry MacMurray <perrymacmurray@gmail.com>
Co-authored-by: Perry <pmacmurray@ihmc.org>
Co-authored-by: SpaiR <klimbetoo@gmail.com>
2021-06-21 16:07:16 +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
Okan GüclüandSpaiR 5ea2712c91 [API] ImGuizmo (#54)
* [API] ImGuizmo

* [Example] Fix ImGuizmo demo

Co-authored-by: SpaiR <klimbetoo@gmail.com>
2021-05-29 12:06:09 +03:00
SpaiR 8070e9668d [Example] Minor styling 2021-04-29 09:03:34 +03:00
Dubrovsky Danil 36e59c4cba [API] ImFontGlyphRangesBuilder and fonts example 2021-04-29 08:43:02 +03:00
SpaiR 3725ddf2f9 [Build] Add a "one include" header files 2021-04-10 15:30:00 +03:00
SpaiR 0ed891f391 [API] Dear ImGui v1.82 2021-03-27 20:03:16 +02: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 1fe8c4a75a [API] Fix ImGuiIO doesn't set font to field 2021-02-27 16:16:12 +02:00
SpaiR 51cfb7ef3d [API] Add ImGuiStyle#getColors to return float[][]
Same is applied to NodeEditorStyle
2021-02-27 16:16:08 +02:00
SpaiR 36415d60f3 [API] Add API to directly return ImVec2/ImVec4 2021-02-27 16:16:03 +02:00
SpaiR d285bbfb34 [API] Add ImRect#set(ImRect) method 2021-02-27 16:15:58 +02:00
SpaiR b07160da15 [API] Extend ImString to accept more objects to set string from
Also make getBytes method to use UTF-8 charset
2021-02-27 16:15:54 +02:00
SpaiR 767b107a7b [API] Add ImString#clear method 2021-02-27 16:15:49 +02:00
SpaiR 3706927ef5 [API] Add #set(value) method to all types 2021-02-27 16:15:44 +02:00
SpaiR 33d6b605d8 [API] Add ImVec4#set(x, y, z, w) and ImVec4#set(ImVec4) methods 2021-02-27 16:15:39 +02:00
SpaiR 2d369dee06 [API] Add ImVec2#set(x, y) and ImVec2#set(ImVec2) methods 2021-02-27 16:15:33 +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 ca23217a83 [API] Fix checkstyle 2021-02-20 13:09:52 +02:00
SpaiR 642d7ab2f5 [API] Change ImFontConfig#setEllipsisChar "short" to "int" 2021-02-20 12:17:00 +02:00
SpaiR cd6432b4b7 [API] Add ImFont methods
Added:
 - FindGlyph
 - FindGlyphNoFallback
 - GetCharAdvance
 - IsLoaded
 - GetDebugName
 - CalcTextSizeA
 - CalcWordWrapPositionA
 - RenderChar
 - RenderText
2021-02-20 12:16:10 +02:00
SpaiR a2444c6b5d [API] Add ImDrawList methods
Added:
 - PrimReserve
 - PrimUnreserve
 - PrimRect
 - PrimRectUV
 - PrimQuadUV
 - PrimWriteVtx
 - PrimVtx
2021-02-20 12:14:44 +02:00
SpaiR 08bf84ad64 [API] Dear ImGui v1.81 2021-02-20 11:16:44 +02:00
SpaiR 859a9af307 [API] Add internal ImGui#calcItemSize and ImGui#splitterBehavior methods 2021-01-25 23:19:09 +02:00
SpaiR cf9e74b1d0 [Example] Migrate example to the new module 2021-01-24 22:20:37 +02:00
SpaiR d7a87ed508 [API] Add ImColor#hslToColor methods 2021-01-23 21:19:13 +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 64150f3388 [API] Move flags into separate packages 2021-01-23 16:39:50 +02:00
SpaiR 1ed21721c4 [API] Add imconfig override file 2021-01-23 16:39:37 +02:00
SpaiR 9e8f9ee025 [API] Move extensions into separate package 2021-01-23 16:28:41 +02:00
SpaiR bb472b9fe9 [Binding] Fix ImNodeEditor minor probs and add Style and Config struct 2021-01-23 16:04:57 +02:00
SpaiR 5beb896b50 [Binding] Fix ImNodes minor probs and add Style struct 2021-01-23 16:04:57 +02:00
Danil Dubrovksy a2d5ba0035 [Binding] Implemented java bindings for imnodes and imgui-node-editor.
Implemented simple graph editor to demonstrate both imnodes and imgui-node-editor usage.
2021-01-23 15:15:17 +02:00
SpaiR 8ac8a0719b [API] Add API for Dear ImGui v1.79 2020-10-17 14:58:04 +03:00
Silent Orb 06322ac726 [API] Fixed four of the ImGuiTreeNodeFlags that were all set to Framed (#26) 2020-10-17 11:18:54 +03:00
SpaiR 1e9db613a9 [API] Implement ImGuiTextFilter 2020-10-06 17:56:09 +03:00