18 Commits

Author SHA1 Message Date
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