650 Commits

Author SHA1 Message Date
Johan Andersson
1bb2c7f4af Support winit 0.19 2019-03-09 18:18:27 +01:00
Joonas Javanainen
da57859839
Merge pull request #204 from sumeet/master
add builder method to specify window pivot
2019-03-02 00:31:05 +02:00
Sumeet Agarwal
6545b473ff add builder method to specify window pivot
could be used to center a window in the middle of the screen, like in
https://github.com/ocornut/imgui/issues/1657#issuecomment-370173339
2019-03-01 17:07:32 +09:00
Joonas Javanainen
1eff07cdbc
Merge pull request #203 from EmbarkStudios/image-button
Add support for image buttons
2019-02-25 17:40:34 +02:00
Johan Andersson
a84de348af Add support for image buttons 2019-02-25 01:13:21 +01:00
Joonas Javanainen
1f95d23e9d
Remove deprecated things 2019-02-05 21:29:00 +02:00
Joonas Javanainen
b5c9d46303
Bump version to 0.0.23-pre 2019-02-05 21:26:31 +02:00
Joonas Javanainen
28ece175ef
Release: 0.0.22 2019-02-05 21:22:15 +02:00
Joonas Javanainen
83128698ea
Update changelog 2019-02-05 21:20:15 +02:00
Joonas Javanainen
a7877ce7b1
Merge pull request #199 from JoshLambda/update_readme_examples
Update examples paths in README
2019-01-26 23:35:34 +02:00
Josh
5f36f24ff3
Removed unwanted empty lines 2019-01-01 08:39:39 +01:00
JoshLambda
2537a476b8 Updates examples path in README (glium examples moved to their own folder)
Since last release the examples for glium were moved into their own folder imgui-glium-examples.
This PR updates the instructions in README accordingly.
2019-01-01 08:32:36 +01:00
Joonas Javanainen
91a961e06a
Use more 2018 edition idioms 2018-12-31 12:16:28 +02:00
Joonas Javanainen
0d878e1ecb
Upgrade dependencies in examples 2018-12-31 12:00:24 +02:00
Joonas Javanainen
20139851e2
Upgrade to Rust 2018 edition
We might as well do this since we've been forced to 1.31...
2018-12-31 11:51:34 +02:00
Joonas Javanainen
79829d3200
Bump minimum Rust version to 1.31
Damnit stb_truetype :'(
2018-12-31 11:40:32 +02:00
Joonas Javanainen
38bb92a8b9
Merge pull request #193 from shockham/master
Update glium to 0.23
2018-12-31 11:38:13 +02:00
shockham
5ace64bbe4 Update glium to 0.23 2018-12-26 09:52:39 +00:00
Joonas Javanainen
7d364f6e5d
Fix incorrect function name 2018-12-17 00:59:43 +02:00
Joonas Javanainen
490ffe056d
Merge pull request #185 from agersant/content-region
Content region
2018-12-16 21:24:25 +02:00
Joonas Javanainen
14eaf77200
Merge pull request #189 from agersant/hover-flags
Added ability to pass flags to is_item_hovered
2018-12-16 21:23:55 +02:00
Joonas Javanainen
eb5aaf1c2a
Replace imgui-glutin-support with imgui-winit-support 2018-12-16 12:02:42 +02:00
Antoine Gersant
17b82e5cbb Added is_window_hovered_with_flags 2018-12-14 00:22:12 -08:00
Antoine Gersant
cd2f7570e6 Added is_item_hovered_with_flags 2018-12-13 22:00:24 -08:00
Antoine Gersant
2b15498654 Exposed a few functions related to content regions 2018-12-04 21:06:33 -08:00
Malik Olivier Boussejra
0b459cf104
Merge pull request #183 from malikolivier/172-update-glutin-on-gfx
Update glutin to 0.19.0 on gfx examples
2018-12-05 07:55:02 +09:00
Joonas Javanainen
44db8d81e6
Upgrade to imgui 1.66b 2018-12-04 20:14:22 +02:00
Antoine Gersant
d61e69eee2 Fixed cimgui version 2018-12-01 12:05:35 -08:00
Antoine Gersant
62e382a1db Pulled master from Gekkio/imgui-rs 2018-12-01 11:47:00 -08:00
Malik Olivier Boussejra
4ae0392e48 Bump minimum Rust version to 1.28
The previous commit added support for glutin 0.19.0.

glutin 0.19.0 depends on winit 0.18.0, which requires rust 1.28.0 or later.

Here is the full dependency chain:

glutin 0.19.0 > winit 0.18 > smithay-client-toolkit 0.4.2 > andrew 0.1.4 > rusttype 0.7.3 > ordered-float 1.0.1 (on linux)

ordered-float uses [repr(transparent)], which is now stabilised on latest rust,
hence the requirement for rust 1.28.0.
2018-12-01 19:05:49 +09:00
Malik Olivier Boussejra
d7a37a25fc [gfx-examples] Update Cargo.lock 2018-12-01 17:57:54 +09:00
Malik Olivier Boussejra
7268d35be7 [gfx_examples] Update glutin to 0.19.0
Attempt to fix #172 for gfx back-end.
2018-12-01 17:57:54 +09:00
Joonas Javanainen
0440752e0b
Upgrade to cimgui 1.66.2 / imgui 1.66 2018-11-29 22:10:49 +02:00
Joonas Javanainen
eea2c8b00e
Use nonUDT2 variants of functions that return ImVec2/4 2018-11-29 21:43:52 +02:00
Malik Olivier Boussejra
f994d71461
Merge pull request #181 from malikolivier/wrap-PushTextWrapPos
[Ui] Add with_text_wrap_pos
2018-11-27 07:12:15 +09:00
Malik Olivier Boussejra
08a07ab19b
Merge pull request #180 from malikolivier/custom-texture-example
Custom texture example with glium backend:
- Generate a texture
- Load a texture from a JPG image

NB:
- Moved all the resources for examples (the fonts and the images) to a shared resources folder.
- Updated glium support module to expose GL context and Textures.
2018-11-27 07:11:29 +09:00
Malik Olivier Boussejra
713d669783 [Ui] Add with_text_wrap_pos
Wrap igPushTextWrapPos and igPopTextWrapPos.
2018-11-23 21:33:14 +09:00
Malik Olivier Boussejra
7301a02dce [glium-examples] custom-textures: Add messages 2018-11-23 18:04:30 +09:00
Malik Olivier Boussejra
16a3c2cc97 [glium-examples] custom_textures: Do error handling
The examples should be an example :)
2018-11-23 18:04:22 +09:00
Malik Olivier Boussejra
4314c27126 [glium-example] Display Lenna 2018-11-23 17:54:51 +09:00
Malik Olivier Boussejra
19b973d32d [glium-examples] Add image crate for loading jpeg image 2018-11-23 17:54:08 +09:00
Malik Olivier Boussejra
8689824dea [glium-examples] Add custom_textures example 2018-11-23 17:31:20 +09:00
Malik Olivier Boussejra
ea8121b539 [glium-example] Pass GlContext and Textures to Ui loop 2018-11-23 17:28:15 +09:00
Malik Olivier Boussejra
ecffa09e84 [examples] Have examples share font resources
We do not keep a copy of the same file in two different places.
Let's move the resources to the same directory.
2018-11-23 16:56:47 +09:00
Malik Olivier Boussejra
77c79f4e61
Merge pull request #171 from malikolivier/patch-use-support-glutin-exclude-examples
Use imgui-glutin-support in examples and split examples [use "exclude" Cargo.toml feature]

This implement the suggestions discussed in #163 and #168.

- Use imgui-glutin-support crate in all examples.
- Exclude examples from the main workspace to prevent glutin version conflicts
- Allow setting HIDPI factor to imgui-glutin-support crate for current examples to work on all platform.

Then, I committed a working Cargo.lock for the examples so that the correct version of glutin be selected in all cases.
2018-11-07 08:14:40 +01:00
Malik Olivier Boussejra
b18fb57020 [travis] Add build test for examples
The examples are excluded from the workspace, so we need to add the
command to build them.
2018-11-01 08:03:39 +09:00
Malik Olivier Boussejra
55cddf955a [examples] Add Cargo.lock 2018-11-01 08:02:53 +09:00
Malik Olivier Boussejra
b6a70564a7 [Cargo.toml] Exclude examples from workspace 2018-11-01 07:57:59 +09:00
Malik Olivier Boussejra
5afcc937fe [gfx-examples] Use imgui-glutin-support 2018-10-29 03:06:08 +09:00
Malik Olivier Boussejra
ab86948e22 [glium-examples] support: Use imgui-glutin-support 2018-10-29 03:06:08 +09:00