52 Commits

Author SHA1 Message Date
Joonas Javanainen
befcc23bc1
Upgrade to glium 0.26 2020-02-15 12:18:11 +02:00
Joonas Javanainen
46d099f40f
Require explicit ending/popping of almost all stack tokens
This is probably going to be controversial...
Calling end/pop in the Drop implementation causes way too many problems,
and interacts very badly with panics.

There are closure-based simpler implementations of almost everything
except parameter stacks that are still convenient to use. However, if we
end up switching to &mut Ui in most functions (very much possible in the
future!), closures will complicate matters so push/pop and begin/end
pairs are still relevant.
2019-07-13 17:19:32 +03:00
Joonas Javanainen
83c2503134
Redesign menu API 2019-07-13 15:28:51 +03:00
Joonas Javanainen
664efd91a7
Redesign sliders 2019-07-13 14:59:25 +03:00
Joonas Javanainen
baa9362a25
Redesign selectable API 2019-07-13 13:11:51 +03:00
Joonas Javanainen
c0b9571160
Redesign combo box API 2019-07-13 12:42:35 +03:00
Joonas Javanainen
f4549d93ac
Redesign child window API 2019-07-13 00:54:03 +03:00
Joonas Javanainen
f1c041b3f3
Update layout API 2019-07-12 20:59:41 +03:00
Joonas Javanainen
11b6932714
Pull new color editor/picker API from 0.1-dev 2019-07-12 20:18:44 +03:00
Joonas Javanainen
7f10cb35b2
Pull new window API from 0.1-dev 2019-07-12 19:43:39 +03:00
Joonas Javanainen
93d1ff259c
Fix examples 2019-07-07 14:25:47 +03:00
Joonas Javanainen
ba681d2e82
Reformat 2019-07-01 00:10:21 +03:00
Joonas Javanainen
965dd40876
Pull parameter stack updates from 0.1-dev 2019-06-30 23:29:18 +03:00
Joonas Javanainen
b0e37f7a22
Use non-deprecated functions 2019-06-29 13:31:32 +03:00
Joonas Javanainen
cebe02cb11
Pull font API and associated refactoring from 0.1-dev 2019-06-29 12:45:16 +03:00
Joonas Javanainen
109e232422
Abolish ImVec2/ImVec4 from safe APIs
[f32; 2] and [f32; 4] are now the canonical types
2019-06-28 00:05:10 +03:00
Joonas Javanainen
6acd52384a
Tidy up utility functions and deprecate old functions 2019-06-27 22:57:32 +03:00
Joonas Javanainen
d9e5ea37e7
Update examples, glium is the leading renderer again 2019-06-27 22:12:35 +03:00
Malik Olivier Boussejra
46cf67e89c [imgui-examples] Split glium and gfx examples into separate crates
To avoid conflicts in dependency version, this commit put examples using
different renderers in different crates.

Especially, glium and gfx do not necessarily depend on the same version
of glutin.

We have two examples:
- imgui-examples (main examples, use gfx renderer here)
- imgui-glium-examples (basic hello_glium example + maybe some texture stuff)

Once vulcano support lands, we may add: imgui-vulkano-examples.

This commit currently only moves files around. We plan to use gfx as a
"main2 renderer for now on as gfx is more actively maintained that
glium. Subsequent commits will migrate some glium examples to gfx.
2018-10-29 03:06:05 +09:00
Joonas Javanainen
b4edc01574
Adapt to 1.65 changes 2018-10-12 22:41:15 +03:00
Malik Olivier Boussejra
4f360b8edf [examples] test_window_impl: Add "Close" button to stacked modals
The "Close" button was forgotten in previous commits.
2018-09-28 13:36:15 +09:00
Malik Olivier Boussejra
ae9a79bd50 [examples] test_window_impl: Add "stacked modals" example 2018-09-26 09:50:19 +09:00
Malik Olivier Boussejra
68b1d331b0 [examples] test_window_impl: Add buttons to close modal 2018-09-26 09:50:13 +09:00
Malik Olivier Boussejra
2bec5ae4ed [examples] test_window_impl: Add part of "modals" example 2018-09-26 09:50:10 +09:00
Joonas Javanainen
21d85afee0
Remove deprecated things 2018-08-12 20:25:43 +03:00
Joonas Javanainen
319f7aa4c6
Reformat everything 2018-08-12 14:16:56 +03:00
OKAMURA, Yasunobu
8c5fc8242e fix typo 2018-07-11 20:02:34 +09:00
OKAMURA, Yasunobu
72ef7f681e fix conflict 2018-06-22 21:28:37 +09:00
OKAMURA, Yasunobu
9b283bbad0 Add input_text_multiline 2018-04-30 15:14:31 +09:00
Malik Olivier Boussejra
49ab5c524a [cimgui 1.53.1] test_window_impl: Add "No close" window option
Here is the original commit in Dear ImGui implementating the "No close"
button:

https://github.com/ocornut/imgui/commit/20ba79aa5
2018-04-30 12:13:58 +09:00
Malik Olivier Boussejra
112d21133b [cimgui 1.53.1] Remove ImGuiWindowFlags::ShowBorders 2018-04-30 11:56:10 +09:00
Joonas Javanainen
99aeb18299
Merge pull request #116 from michaelfairley/master
Add drag widgets
2018-04-29 11:57:15 +03:00
Michael Fairley
90c096183c Add drag widgets 2018-04-24 15:22:08 -05:00
Malik Olivier Boussejra
95577a0d8c ui: Rename to with_window_draw_list ot get_window_draw_list 2018-04-16 15:14:04 +09:00
Malik Olivier Boussejra
c27748852d test_window_impl: show_example_app_custom_rendering: Include drawing canvas
Include drawing canvas example into show_example_app_custom_rendering.
The example contains now everything included in the original C++ example
provided with dear imgui.
2018-04-16 15:14:04 +09:00
Malik Olivier Boussejra
ab908106d3 test_window_impl.rs: Add first part half of show_example_app_custom_rendering
show_example_app_custom_rendering is implemented exactly as it is in the
original Dear ImGui in C++. The result should be the same.

The only difference is that `DragFloat`, used to control the size of the
drawings, is not implement as of now.

This example demonstrates how the custom drawing API can be used.
2018-04-16 15:14:04 +09:00
Joonas Javanainen
6a363840ec
Upgrade to imgui/cimgui 1.52 2017-11-12 23:32:44 +02:00
Joonas Javanainen
3d81002202
Update test_window_impl 2017-11-07 20:43:55 +02:00
Joonas Javanainen
a7581e73c0
Small updates to test_window_impl 2017-11-06 22:53:37 +02:00
Joonas Javanainen
d7e9e17aa3
Clippy fixes 2017-11-06 20:10:39 +02:00
Joonas Javanainen
947a4e2dbe
Add a color button example 2017-11-05 21:54:56 +02:00
Joonas Javanainen
ad6a5ada1b
Rename enums EditableColor* -> Color* 2017-11-05 21:42:30 +02:00
Joonas Javanainen
6ac40b1100
Take ref_color by reference 2017-11-04 10:44:16 +02:00
Joonas Javanainen
c9e5db5aa5
Add ColorPicker widget 2017-11-04 10:08:06 +02:00
Joonas Javanainen
9a82e127dc
Add some color_edit sample code 2017-11-02 23:44:53 +02:00
Joonas Javanainen
3b87845d6b
Restore color_edit functionality 2017-11-02 23:12:04 +02:00
Joonas Javanainen
907f9dbdeb
Reformat with rustfmt 0.9.0 2017-11-02 22:01:02 +02:00
Joonas Javanainen
f92e21bf30
Upgrade to bitflags 1.0 and namespacing 2017-11-02 21:52:43 +02:00
Joonas Javanainen
332ef93633
Adapt to 1.51 changes 2017-11-02 21:01:01 +02:00
Nick Palmer
5dd0079880
Added functions in lib for radios 2017-08-31 23:05:04 +01:00