563 Commits

Author SHA1 Message Date
Malik Olivier Boussejra
add8bdbd16 [Ui] Add documentation for Ui::close_current_group 2018-09-26 14:28:02 +09:00
Malik Olivier Boussejra
88b5b2e3f5 [popup_modal] Add documentation 2018-09-26 14:27:35 +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
Malik Olivier Boussejra
4b21834799 [PopupModal] Allow to set flags 2018-09-26 09:50:07 +09:00
Malik Olivier Boussejra
e68047efd1 [Ui] Add popup_modal wrapper 2018-09-26 09:50:03 +09:00
Malik Olivier Boussejra
b98e57d055
Merge pull request #158 from malikolivier/patch-wrap-get_window_pos
Wrap igGetWindowPos and update CHANGELOG
2018-09-19 17:17:01 +09:00
Malik Olivier Boussejra
a893f3e665 Update CHANGELOG 2018-09-19 09:53:15 +09:00
Malik Olivier Boussejra
d62845f4c2 [ImGui] Wrap igGetWindowPos 2018-09-19 09:51:17 +09:00
Malik Olivier Boussejra
c2f3936879
Merge pull request #156 from malikolivier/patch-wrap-is-window-focus
[ImGui] Wrap igIsWindowFocused
2018-09-19 08:37:55 +09:00
Malik Olivier Boussejra
3b26f6bde9 [ImGui] Wrap igIsWindowFocused
Wrap with three different functions, one for each of the possible values of
ImGuiFocusedFlags given as argument to igIsWindowFocused.
2018-09-13 18:49:33 +09:00
Malik Olivier Boussejra
4f080de586
Merge pull request #152 from SpaceManiac/patch/style-traits
Add Clone to ImGuiStyle
2018-09-10 15:37:41 +09:00
Tad Hardesty
7ddcbee1b3 Add Clone to ImGuiStyle 2018-09-09 19:10:08 -07:00
Joonas Javanainen
c5c9d6ff30
Bump minimum Rust version to 1.26 2018-09-07 00:04:57 +03:00
Joonas Javanainen
f1f02bc321
Relax glutin version range 2018-08-15 01:00:49 +03:00
Joonas Javanainen
1eab502d01
Add Drop implementation for Ui 2018-08-14 22:42:36 +03:00
Joonas Javanainen
1213feb800
Really don't run these doc tests 2018-08-14 01:01:07 +03:00
Joonas Javanainen
1fd0aeeae6
Fix doc tests in older Rust versions 2018-08-14 00:42:02 +03:00
Joonas Javanainen
f287ba048a
Don't run new doc tests 2018-08-13 23:51:29 +03:00
Joonas Javanainen
eeb800db13
imgui-glutin-support crate 2018-08-13 23:04:36 +03:00
Joonas Javanainen
b8a1abf1b7
Add mouse_down accessor function 2018-08-13 23:03:43 +03:00
Joonas Javanainen
cc17c0097d
Bump version to 0.0.21-pre 2018-08-13 23:00:40 +03:00
Joonas Javanainen
7824984543
Release: 0.0.20 2018-08-13 22:57:37 +03:00
Joonas Javanainen
f7ffac7c8d
Update CHANGELOG 2018-08-13 19:02:45 +03:00
Joonas Javanainen
c22035250a
Restrict DPI factor to integers in support code
The library still supports fractional DPI factors, but it seems like a
good idea to use integer factors in examples to avoid blurry fonts and
other issues which might give the wrong impression.
2018-08-13 19:00:31 +03:00
Joonas Javanainen
6a4286de11
Fix clip rect clamping 2018-08-13 18:47:23 +03:00
Joonas Javanainen
21d85afee0
Remove deprecated things 2018-08-12 20:25:43 +03:00
Joonas Javanainen
2677cb0cb7
Bump version to 0.0.20-pre 2018-08-12 20:21:11 +03:00
Joonas Javanainen
af2171f93a
Release: 0.0.19 2018-08-12 20:17:56 +03:00
Joonas Javanainen
bea73a8fde
Don't listen to clippy 2018-08-12 19:33:17 +03:00
Joonas Javanainen
da9ee9302b
Fixes recommended by clippy 2018-08-12 19:20:14 +03:00
Joonas Javanainen
130ebfc931
Update changelog 2018-08-12 19:06:35 +03:00
Joonas Javanainen
ca34c8e9be
Update rustfmt instructions, delete config file 2018-08-12 19:01:26 +03:00
Joonas Javanainen
4ad173da3b
Upgrade example project dependencies 2018-08-12 18:59:17 +03:00
Joonas Javanainen
705b913a5d
Add simple font scaling to support code 2018-08-12 14:37:10 +03:00
Joonas Javanainen
81b784d69a
Glium has sane sampler defaults so just trust them 2018-08-12 14:25:01 +03:00
Joonas Javanainen
329f24d221
Fix compilation errors 2018-08-12 14:22:08 +03:00
Joonas Javanainen
319f7aa4c6
Reformat everything 2018-08-12 14:16:56 +03:00
Joonas Javanainen
558e5efe1c
Apply font oversampling in support code
Makes fonts slighty better with HiDPI, but it's not yet the full
solution.
2018-08-12 14:16:21 +03:00
Joonas Javanainen
aa4ae70054
Make HiDPI rendering better
+ use linear filtering in both renderers. Nearest just won't work
  anymore if we have a non-integer scaling factor (which winit can give
  us on 1440p screens for example)
+ pass around FrameSize which has the necessary info with full f64
  precision
+ extra care with conversions to/from f32 and u32 and rounding
2018-08-12 14:16:21 +03:00
Malik Olivier Boussejra
1663e66887
Merge pull request #145 from malikolivier/refactor-hello-gfx
Refactor hello gfx:
- Remove unused label on main loop
- Do not depend on imgui_sys
2018-08-12 18:03:20 +09:00
Malik Olivier Boussejra
10438c6000 [examples] hello_gfx: Remove dependency on sys crate
Before this commit, hello_gfx was dependent on sys, while it only uses
sys::ImVec4, which is a type that is anyway re-exported by imgui.
2018-08-12 10:50:00 +09:00
Malik Olivier Boussejra
2272fbe5e4 [examples] support_gfx: Remove unused label on loop
This loop is not nested, so the label has no use whatsoever.
2018-08-12 10:44:07 +09:00
Malik Olivier Boussejra
48364b77dd
Merge pull request #143 from malikolivier/142-fix-scale-bug
[examples] support: Fix scale bug
2018-08-11 07:07:30 +09:00
Malik Olivier Boussejra
1ac9c84ba2 [CHANGELOG] Add glium update
Include a word about WINIT_HIDPI_FACTOR=1.
2018-08-11 06:24:31 +09:00
Malik Olivier Boussejra
7f6e3ad286 [examples] support: Fix scale bug
The new version of glutin apparently changed the behaviour regarding
HDIPI.
Thanks to the patch submitted by semtexzv [1], this commit fixes the
issue.

[1] b6f5b27883
2018-08-10 14:35:13 +09:00
Joonas Javanainen
b8baa828a9
Merge pull request #141 from shockham/master
Update glium to 0.22
2018-08-08 21:53:50 +03:00
shockham
7152cf5b6a Bump minimum rust version to 1.24 2018-08-08 09:20:44 +01:00
shockham
b1ebd720e7 Update gfx_window_glutin to 0.25, glium to 0.22 and glutin to 0.17 in imgui-examples and fix errors 2018-07-30 17:44:28 +01:00