873 Commits

Author SHA1 Message Date
Gabriel Smith
8e5cf2c1d9 Test winit 0.22 support in CI 2020-05-18 15:12:38 -04:00
Gabriel Smith
59c67e78f4 Run cargo fmt on winit 0.22 changes 2020-05-18 15:12:38 -04: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
Joonas Javanainen
48eaf63e5f
Merge pull request #311 from Boscop/master
Clamp textures to border (BorderClamp / GL_CLAMP_TO_BORDER)
2020-04-22 23:08:52 +03:00
Joonas Javanainen
0c28845ad8 Bump minimum Rust to 1.40 2020-04-20 23:15:12 +02:00
Joonas Javanainen
c99720abdc
Bump minimum Rust to 1.40 2020-04-18 12:42:21 +03:00
Boscop
7dd47c67ef Clamp textures to border (GL_CLAMP_TO_BORDER) 2020-04-05 22:30:44 +02:00
Joonas Javanainen
0089636eb2
Merge pull request #303 from aloucks/font_name
Font name length check should use the minimum length
2020-03-17 00:04:01 +02:00
Aaron Loucks
321d315428 Font name length check should use the minimum length 2020-03-16 17:04:37 -04:00
Joonas Javanainen
e3f958d1dc
Fix typo 2020-03-16 12:26:40 +02:00
Joonas Javanainen
c039d4ef38
Fix clippy nit 2020-03-16 12:25:51 +02:00
Joonas Javanainen
5b04ff1e7b
Update changelog 2020-03-16 12:24:53 +02:00
Joonas Javanainen
8b1a1d2e16
Increase height slightly to avoid scrollbar 2020-03-16 12:09:52 +02:00
Joonas Javanainen
64022fbb28
Narrow supported winit version range
We can't promise forward compatibility with arbitrary versions, and 0.22
is already broken -> require 0.20 or 0.21, and let's upgrade to 0.22
properly later.
2020-03-16 12:07:26 +02:00
Joonas Javanainen
a5a0be44e3
Redesign tree node / collapsing header API 2020-03-16 12:02:52 +02:00
Joonas Javanainen
2915741ac9
Update example lockfiles with 0.4.0-pre 2020-03-16 12:02:52 +02:00
Joonas Javanainen
a3bafc7df1
Merge pull request #302 from sanbox-irl/master
Updated winit to use new modifier framework in imgui
2020-02-19 21:00:15 +02:00
Jonathan Spira
2f57a3099a Updated winit to use new modifier framework in imgui 2020-02-17 10:09:43 -08:00
Joonas Javanainen
d46edaad24
Bump version to 0.4.0-pre 2020-02-15 14:42:48 +02:00
Joonas Javanainen
97c95c54fb
Release: 0.3.0 2020-02-15 14:35:55 +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
db2b8b729a
Upgrade examples to image 0.23 2020-02-15 12:45:50 +02:00
Joonas Javanainen
b759a44c84
Upgrade to imgui/cimgui 1.75 2020-02-15 12:39:27 +02:00
Joonas Javanainen
9545ca3d39
Update changelog 2020-02-15 12:23:49 +02:00
Joonas Javanainen
ff1fc49d5f
Upgrade bindgen, fix size_t changes 2020-02-15 12:21:32 +02:00
Joonas Javanainen
befcc23bc1
Upgrade to glium 0.26 2020-02-15 12:18:11 +02:00
Joonas Javanainen
1e1b17b874
Make winit 0.20+ the default 2020-02-15 12:18:11 +02:00
Joonas Javanainen
2d2f4fe4ef
Merge pull request #300 from aclysma/allow_building_with_winit_0.21
Change imgui-winit-support to allow winit versions beyond 0.20
2020-02-15 11:09:16 +02:00
Philip Degarmo
7c4d4cf9d8 Change imgui-winit-support to allow winit versions beyond 0.20 2020-02-14 13:57:36 -08:00
Joonas Javanainen
e1620a0582
Remove caching 2020-01-20 09:40:53 +02:00
Joonas Javanainen
b37f113062
Bump minimum Rust version to 1.38 2020-01-20 09:14:23 +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
af14eb0c24
Upgrade dependencies 2020-01-12 13:53:44 +02:00
Joonas Javanainen
e9fef5c12c
Switch to Github Actions 2020-01-12 13:18:12 +02:00
Joonas Javanainen
d21a27ac57
Reformat with rustfmt 2020-01-12 11:30:30 +02:00
Joonas Javanainen
509a9ce1f2
Merge pull request #291 from aloucks/update_winit
Update winit to 0.20.0
2020-01-12 10:57:55 +02:00
Aaron Loucks
9a59b17ea0 Update winit to 0.20.0 2020-01-11 01:48:31 -05: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
Joonas Javanainen
2b06a1466e
Merge pull request #283 from malikolivier/implement-childwindow-movable
Implement ChildWindow::movable
2019-12-08 00:48:48 +02:00
Malik Olivier Boussejra
9d3fb4ba40 Update CHANGELOG to include fix to build_with_ref 2019-12-06 11:27:11 +09: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
f891dd76a8 Add ChildWindow::movable to CHANGELOG 2019-12-02 19:35:50 +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