31 Commits

Author SHA1 Message Date
Jason Shipman
4d1c66e9a1
Add support for SDL2 Renderer backend (#193)
* Add DearImGui.Raw.framerate
* Add DearImGui.withCloseableWindow
* Closes #191: Add support for SDL2 Renderer backend
* Add sdl-renderer flag to protect against older SDL versions that do not have SDL_RenderGeometry
2023-12-15 15:31:04 +02:00
Alexander Bondarenko
8df98e075c
Fix TabItem flags type (#183)
Resolves #175
2023-07-20 16:42:11 +00:00
Tristan de Cacqueray
ea3ad959f9
Add getCursorPos (#176) 2023-07-03 00:48:44 +03:00
romes
8697aa3a0a
Expose DearImGui.Raw.Context (#172) 2023-01-15 15:27:15 +02:00
Tristan de Cacqueray
52142bbf7e
Add formatPtr to Raw.dragFloat* and Raw.sliderFloat* (#165) 2022-12-05 17:47:21 +03:00
Tristan de Cacqueray
48486ee8c2
Add setNextItemOpen (#161)
This change enables starting a new TreeNode open.
2022-11-28 15:56:27 +03:00
Tristan de Cacqueray
051a17a1c5
Add plotLines (#158) 2022-11-20 17:57:15 +02:00
Alexander Bondarenko
bc590d97c5
Tweak tables and add an example (#139)
Previously: #135
2022-03-22 22:36:19 +03:00
e5969f6b35
implementation of ImGui Tables (#135) 2022-03-11 16:48:11 +03:00
f066d03017
added options to selectable (#137) 2022-03-10 15:17:42 +00:00
Alexander Bondarenko
fc307a4d6e
Add remaining popup wrappers (#136)
- BeginPopupContextItem
- BeginPopupContextWindow
- BeginPopupContextVoid

For #132
2022-03-10 11:34:13 +03:00
Alexander Bondarenko
4517af8123
Add isPopupOpen and wrappers (#134) 2022-03-09 21:08:54 +03:00
b837d583a5
added openPopupOnItemClick (#133) 2022-02-25 17:28:53 +00:00
Mikhail Chekan
bb94341ad5
Extended font & glyph support (#114)
* Separate font utils, add glyph support (#113)
* Implement font glyph ranges builder
* Implement raw font config binds
* Implement font atlas module
* Rewrite font altas rebuilder in Managed
2021-12-22 13:28:46 +03:00
Alexander Bondarenko
8ee82476dc
Add raw DrawList bindings (#99) 2021-09-15 08:52:00 +03:00
Alexander Bondarenko
24345bb8f3
Add font utils (#56)
- clearFontAtlas
- addFontDefault
- addFontFromFileTTF
- addFontFromMemoryTTF (raw only)
- buildFontAtlas

Vulkan example updated to use on f the imgui-distributed ttf files.
2021-09-12 15:41:42 +00:00
Alexander Bondarenko
e3f7fbfd6f
Add imageButton (#97) 2021-09-12 13:20:47 +00:00
Alexander Bondarenko
88326420b8
Tidy up image example (#96) 2021-09-12 11:56:43 +00:00
jpwidera
f3b85899f2
Added image wrapper (#74)
Raw.image and sdl2/gl example "image"

Wrappers should be backend-specific due to different handling of `userTextureIDPtr`.
2021-09-12 10:35:03 +00:00
Alexander Bondarenko
c7a694bce8
Add remaining BeginChild arguments as required (#93)
Old behaviour with all default arguments is a special case to run
some action scoped to a different child window.

This now handled by `beginChildContext`/`withChildContext`.
2021-09-12 10:28:48 +00:00
Alexander Bondarenko
c219f8eb4f
Wrap GetCurrentContext and SetCurrentContext (#94) 2021-09-12 10:23:23 +00:00
Alexander Bondarenko
24519778e6
Add inputTextMultiline, inputTextWithHint (#92)
- Experimental explicit encoding for CStrings.
- Fix potential buffer overruns in inputText.
2021-09-12 11:43:44 +03:00
Alexander Bondarenko
4bfc7e7099
Add invisibleButton (#91) 2021-09-11 11:01:03 +00:00
Alexander Bondarenko
be7aa1e9b1
Add functions for getting window position and size (#89)
- getWindowPos
- getWindowSize
- getWindowWidth
- getWindowHeight

Closes #88
2021-09-11 10:09:11 +00:00
jpwidera
08b3139477
Remove seg faults (#87)
* Removed double OpenGl3Shutdown, leading to a segmentation fault in Main.hs.
* Changed nullPtr passing with Maybe to use DearImGui default arguments.
2021-09-11 10:00:08 +00:00
Alexander Bondarenko
d7dc999e8b
Add withID (#75)
Raw versions are specialized to match overloaded C++ functions.
2021-08-28 15:52:04 +00:00
Alexander Bondarenko
dcaad12ca8
Add more drags and sliders (#60)
- DragFloatRange2
- DragInt..4
- DragIntRange2
- DragScalar
- DragScalarN

- SliderAngle
- SliderInt..4
- SliderScalar
- SliderScalarN
- vSliderFloat
- vSliderInt
- vSliderScalar

Scalar sliders expose format and flags arguments.
2021-06-06 19:10:34 +03:00
Alexander Bondarenko
f584319577
Add more text widgets (#59)
- Text replaced with TextUnformatted
- TextColored
- TextDisabled
- TextWrapped
- LabelText
- BulletText
2021-06-05 09:01:48 +00:00
Alexander Bondarenko
6ccee5234b
Add withFullscreen and related machinery (#55)
- `fullscreenFlags` available for those who want an alternative
  to `withFullscreen` without reinventing too much.
- Raw.begin got `open` and `flags` arguments.
- Added Raw.setNextWindowFullscreen combo block.
2021-06-04 23:18:16 +03:00
Alexander Bondarenko
5cdce50c3a
Add wantCaptureMouse, wantCaptureKeyboard (#54) 2021-05-03 12:57:23 +03:00
Alexander Bondarenko
5634b6f67d
Extract raw C bindings (#44)
The original DearImGui interface hasn't changed.
2021-04-05 20:16:09 +03:00