127 Commits

Author SHA1 Message Date
Malik Olivier Boussejra
8d3e1a82fc [cimgui 1.53.1] Obsolete igIsRootWindowOrAnyChildHovered()
Update struct for ImGuiHoveredFlags.

NB: igIsWindowHovered, and thus igIsRootWindowOrAnyChildHovered, are
broken now because of a bug.
The fix is commited upstream, but not released yet.
baebcfcfaf

I guess nothing can be done but wait for the next cimgui release.
2018-04-30 00:23:28 +09:00
Malik Olivier Boussejra
2df079e563 [cimgui 1.53.1] Obsolete sys::igIsRootWindowOrAnyChildFocused()
Should use `igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows)`
instead.
2018-04-29 23:53:39 +09:00
Malik Olivier Boussejra
f3e994f582 [cimgui 1.53.1] Obsolete sys::igIsRootWindowFocused()
Should use `sys::igIsWindowFocused(ImGuiFocusedFlags_RootWindow)`
instead.
2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
24c37293e4 imgui-sys: Fix binding to igIsWindowFocused
This commit adds the `ImGuiFocusedFlags' input flag that was missing.
2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
a5ed022eee [cimgui 1.53.1] Rename ImGuiTreeNodeFlags::AllowOverlapMode to ImGuiTreeNodeFlags::AllowItemOvelap 2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
0c71370546 imgui-sys: Add raw binding to GetFrameHeight 2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
1d10578471 [cimgui 1.53.1] Rename igGetItemsLineHeightWithSpacing to igGetFrameHeightWithSpacing 2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
cf15d49e36 [cimgui 1.53.1] Rename Ui::show_test_window to Ui::show_demo_window 2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
ddd7f7ef7b Update cimgui to 1.53.1
Update cimgui, fixing #97 and #88.

As a side note, the previous version has some compiler warning showing
up during build:

warning: third-party/cimgui/imgui/imgui.cpp: In function ‘void ImGui::RenderTriangle(ImVec2, ImGuiDir, float)’:
warning: third-party/cimgui/imgui/imgui.cpp:3136:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
warning:          r = -r; // ...fall through, no break!
warning:          ~~^~~~

The new version has no warning.
2018-04-29 23:49:26 +09:00
Joonas Javanainen
544d7de930
Merge pull request #111 from malikolivier/draw-api
Wraps the dear ImGui custom drawing API
2018-04-29 11:35:23 +03:00
Jay Oster
1d64e4e185 Update gfx
- Fixes the screen resolution and mouse coordinates on macOS
- Fixes the blurry font by using linear filtering on the texture sampler
2018-04-26 20:01:54 -07:00
Malik Olivier Boussejra
878de089e8 window_draw_list.rs: Wrap add_circle
ImDrawList_AddCircle was missing an argument in the bindings, resulting
in UB. This patches includes it and wrap the AddCircle API.
2018-04-16 15:09:55 +09:00
Malik Olivier Boussejra
05b382e317 WindowDrawList: Wrap add_rect method
This patch uses bitflags to set the whether the corners are rounded.
Hence the `ImDrawCornerFlags` struct is defined, but only used
internally.

Externally, the valule of the flags can be changed with methods on the
`Rect` structure such as `round_top_right` or `round_bot_left`.

This patch wraps both ImDrawList_AddRectFilled and ImDrawList_AddRect.
ImDrawList_AddRectFilled is seen as a particular case of `add_rect`
where `filled` is set to `true`.
2018-04-16 15:09:55 +09:00
Joonas Javanainen
b6e5086eb2
Merge pull request #112 from Lymia/master
Implement custom fonts.
2018-04-16 08:51:02 +03:00
Edward Barnard
f815daefd3 Update glium to 0.21 2018-04-14 22:38:34 +01:00
Lymia Aluysia
5b2c1f0861
Implement custom fonts. 2018-04-07 20:30:47 -05:00
shockham
4f3ef1cc26 Update glium to 0.20 2018-01-30 12:36:03 +00:00
Joonas Javanainen
e9fecb3c41
Bump version to 0.0.19-pre 2017-12-23 14:25:43 +02:00
Joonas Javanainen
1fc53dbbdb
Release: 0.0.18 2017-12-23 14:14:35 +02:00
O01eg
822ed103f8
Update glium to 0.19. 2017-12-12 15:03:16 +03:00
Joonas Javanainen
6a363840ec
Upgrade to imgui/cimgui 1.52 2017-11-12 23:32:44 +02:00
Joonas Javanainen
d634c1a1ad
Remove various deprecations 2017-11-07 19:00:32 +02:00
Joonas Javanainen
5cfd1e742e
Bump version to 0.0.18-pre 2017-11-07 18:56:22 +02:00
Joonas Javanainen
f6fa2e00f0
Release: 0.0.17 2017-11-07 18:52:58 +02:00
Joonas Javanainen
bafb7e42c6
Fix Rust 1.20 compatibility 2017-11-06 23:08:33 +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
6f1e29fad9
Use latest cimgui 2017-11-05 21:54:56 +02:00
Joonas Javanainen
484e413dda
Use latest cimgui 2017-11-04 10:08:22 +02:00
Joonas Javanainen
9a82e127dc
Add some color_edit sample code 2017-11-02 23:44:53 +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
3116430f07
Update cimgui to the latest version 2017-11-02 21:32:19 +02:00
Joonas Javanainen
4ec6214feb
Upgrade imgui-sys to cimgui 1.51 2017-11-02 20:51:14 +02:00
Joonas Javanainen
6df3c0bf77
Bump version to 0.0.17-pre 2017-10-26 00:13:16 +03:00
Joonas Javanainen
6c801d61b5
Release: 0.0.16 2017-10-26 00:10:51 +03:00
shockham
cb55accd7a Update glium to 0.18 2017-10-24 16:31:27 +01:00
Joonas Javanainen
7a30cb1037
Switch to the cc crate 2017-10-03 21:19:28 +03:00
thelearnerofcode
a918abf366 Changed 'gcc::Config::new()' to 'gcc::Build::new()' in imgui-sys/build.rs. 2017-10-01 13:47:58 -04:00
Joonas Javanainen
a707af1511
Add travis badges to all published crates 2017-07-23 14:12:07 +03:00
Joonas Javanainen
c74c51c58b
Bump version to 0.0.16-pre 2017-07-23 14:10:04 +03:00
Joonas Javanainen
c55bc7e072
Release: 0.0.15 2017-07-23 14:06:36 +03:00
Brendan Zabarauskas
f33567a1dc Update glutin and dependencies that rely on it 2017-07-22 17:25:55 +10:00
Joonas Javanainen
5b42d5d079
Repository name is case sensitive in some places 2017-06-18 19:03:38 +03:00
Joonas Javanainen
84d04bdda6
Bump version to 0.0.15-pre 2017-06-18 17:09:55 +03:00
Joonas Javanainen
66d4551ea7
Release: 0.0.14 2017-06-18 16:40:31 +03:00
Joonas Javanainen
ea79e860e4
Upgrade to bitflags 0.9 2017-06-18 11:06:16 +03:00
Joonas Javanainen
d93a388c7f
imgui 1.50 updates 2017-06-17 16:36:17 +03:00
Joonas Javanainen
29a523747b
Add new cimgui bindings 2017-06-17 16:36:17 +03:00
Joonas Javanainen
792f95979c
Add ImGuiListClipper functions to imgui-sys 2017-06-17 16:36:17 +03:00