Roy Jacobs
6fd588b7b9
Add support for TabItem flags
2020-07-09 15:16:59 +02:00
Joonas Javanainen
5dea51c55b
Merge pull request #318 from SnoozeTime/tabbar-wrapper
...
implementation of TabBar and TabItem
2020-07-08 18:39:16 +03:00
Benoit Eudier
03dda90a78
Run rustfmt on src folder
2020-07-08 09:54:44 +09:00
Benoit Eudier
6314e72b9e
implementation of TabBar and TabItem
2020-07-08 09:54:44 +09:00
Joonas Javanainen
d3fea52613
Fix issues caused by 1.77 upgrade
2020-07-08 00:04:47 +03:00
Joonas Javanainen
c575dec15b
Change update_delta_time to accept a Duration
...
Fixes #333
2020-07-07 23:08:00 +03:00
Joonas Javanainen
d4ec88068f
Merge pull request #335 from lizhaoxian/expose-background-drawlist
...
Expose background drawlist
2020-07-07 22:39:30 +03:00
Joonas Javanainen
f7f074423d
Merge pull request #327 from barsoosayque/master
...
Manually managing tooltips
2020-07-07 22:33:44 +03:00
Joonas Javanainen
f05e3d666c
Merge pull request #326 from filnet/expose-more-drawdata-members
...
Make cmd_lists_count public in DrawData struct
2020-07-07 22:32:59 +03:00
Zhaoxian Li
464557fdc6
Force background to consume self
...
This is to enforce the consistency WINDOW_DRAW_LIST_LOADED
2020-06-21 22:30:29 +08:00
Zhaoxian Li
ebeb92aa8e
Expose background drawlist
2020-06-21 22:05:57 +08:00
Philippe Renon
5e5de53904
Add a public getter for DrawData cmd_lists_count member
...
Also updated DrawData docs with latest from imgui.
Relates to https://github.com/Gekkio/imgui-rs/issues/325
2020-06-05 22:24:35 +02:00
Joonas Javanainen
8fa58fb52c
Apply some missing 1.76 changes
2020-06-05 22:03:22 +03:00
Joonas Javanainen
89712e1f3d
Update memory layouts
2020-06-05 16:09:24 +03:00
Joonas Javanainen
f93389178b
Handle new FontGlyph bitfields
2020-06-05 16:09:24 +03:00
Joonas Javanainen
41ac160bd8
Adapt to latest cimgui function names
2020-06-05 16:09:24 +03:00
Joonas Javanainen
290429bd12
Replace old nonUDT2 function variants
2020-06-05 16:09:24 +03:00
Joonas Javanainen
6ee5a2867b
Generate bindings for 1.76
...
cimgui has changed a lot, and the default bindings include a lot of
internal stuff that we (probably) don't want. Therefore we stop checking
out cimgui as a submodule and just use it as a tool instead.
2020-06-05 16:08:40 +03:00
barsoosayque
4203eaacc6
Add ability to create tooltip function-less
2020-05-25 22:18:36 +07:00
Walter Pearce
02545f9c38
Add support for winit 0.22 with feature flag in imgui-winit-support. Fix some clippy warnings.
2020-05-18 15:12:38 -04:00
Jasper Bekkers
d90fe8171e
WebAssembly FFI shells ( #322 )
...
* Allow imgui-rs to generate wasm-ffi bindings
* Missing wasm_bindings.rs file
* Update wasm bindings
* Take wasm import name from environment variable
* Remove debug message
* Formatting
2020-05-18 20:54:30 +02:00
Aaron Loucks
321d315428
Font name length check should use the minimum length
2020-03-16 17:04:37 -04:00
Joonas Javanainen
c039d4ef38
Fix clippy nit
2020-03-16 12:25:51 +02:00
Joonas Javanainen
a5a0be44e3
Redesign tree node / collapsing header API
2020-03-16 12:02:52 +02:00
Joonas Javanainen
14fb8ce3dc
More clippy fixes
2020-02-15 13:53:21 +02:00
Joonas Javanainen
6e246b0c7c
Fix most Clippy warnings
2020-02-15 12:58:25 +02:00
Joonas Javanainen
efebe174c4
Restore old size_t behaviour
2020-02-15 12:49:55 +02:00
Joonas Javanainen
b759a44c84
Upgrade to imgui/cimgui 1.75
2020-02-15 12:39:27 +02:00
Joonas Javanainen
ff1fc49d5f
Upgrade bindgen, fix size_t changes
2020-02-15 12:21:32 +02:00
Joonas Javanainen
5ea969d273
Implement fmt::Write for ImString
2020-01-12 15:27:21 +02:00
Joonas Javanainen
d82bc65934
Fix ImString nul terminator handling
...
This also changes the semantics slightly: it's now *required* to call
`refresh_len` after the buffer is modified via a mutable raw pointer.
2020-01-12 15:27:21 +02:00
Joonas Javanainen
bb792d9b18
Add some ImString tests
2020-01-12 15:02:23 +02:00
Joonas Javanainen
9618683b99
Fix various clippy nits
2020-01-12 14:09:28 +02:00
Joonas Javanainen
2b72a2a62c
Upgrade to cimgui/imgui 1.74
2020-01-12 14:05:51 +02:00
Joonas Javanainen
ccec55c10a
Merge pull request #284 from malikolivier/fix-build-with-ref
...
Fix toggling of MenuItem and Selectable with build_with_ref
2019-12-08 00:49:47 +02:00
Malik Olivier Boussejra
55a8f28e0a
Fix toggling of MenuItem and Selectable with build_with_ref
...
Selectable or MenuItem should be toggled on click when called with
build_with_ref.
This is the behavior that is done in ImGui when
`bool ImGui::MenuItem(const char* label, const char* shortcut, bool*p_selected, bool enabled)` is called.
2019-12-06 11:24:41 +09:00
Malik Olivier Boussejra
093546df8c
Implement ChildWindow::movable
...
This commit adds the API that allows to set the NO_MOVE flag for a child
window. This API was missing: the NO_MOVE flag could only be set for a
Window.
If the NO_MOVE flag is set to True, (by calling
`ChildWindow::movable(false)`), then the window will not move when a
child window is dragged on.
We can see this behavior in imgui's code:
https://github.com/ocornut/imgui/blob/f0f53016/imgui.cpp#L3354
2019-12-02 19:33:03 +09:00
Joonas Javanainen
ae2f7d047c
Upgrade to cimgui/imgui 1.73
2019-09-25 18:41:12 +03:00
Joonas Javanainen
4833811950
Remove all deprecated things
2019-09-18 11:15:20 +03:00
Johan Andersson
4cde7cacf3
Fix ImageButton bool return value for pressed.
...
This was a regression in 0.2.0
2019-09-09 11:20:58 +02:00
Joonas Javanainen
8149fb4268
Reformat
2019-09-07 16:42:32 +03:00
jaynus
904bda9354
Add an end statement for the build_simple combobox function which was causing crashing
2019-09-06 16:52:02 -07:00
Joonas Javanainen
8a862ae220
Upgrade to cimgui/imgui 1.72b
2019-09-05 09:30:49 +03:00
Joonas Javanainen
390042db10
Merge pull request #251 from Jasper-Bekkers/master
...
Mark a bunch of methods that return a builder as `must_use`
2019-09-04 09:22:18 +03:00
Joonas Javanainen
4b4f613592
Merge pull request #245 from aloucks/font_config_name
...
Add name to FontConfig
2019-09-04 09:18:32 +03:00
Jasper-Bekkers
ec5784055f
Mark a bunch of methods that return a builder as must_use
2019-08-23 19:18:49 +02:00
Aaron Loucks
1c2d6d92f9
Add name to FontConfig
2019-07-27 14:52:35 -04:00
Joonas Javanainen
00a724283e
Merge pull request #237 from nico-abram/patch-1
...
Replace static mut bool with AtomicBool
2019-07-22 23:53:31 +03:00
Joonas Javanainen
50f4a2c975
Use the gfx vertex macro via a workaround
2019-07-17 11:19:07 +03:00
Nicolas
79951acf39
Replace static mut bool with AtomicBool
2019-07-15 04:34:47 -03:00