295 Commits

Author SHA1 Message Date
Brendan Zabarauskas
9753f45b56 Remove support for 1.16.0 :’( 2017-07-23 01:46:49 +10:00
Brendan Zabarauskas
f33567a1dc Update glutin and dependencies that rely on it 2017-07-22 17:25:55 +10:00
Joonas Javanainen
c17157b6ec
Can't have field shorthands in 1.16 :'( 2017-07-14 22:08:10 +03:00
Joonas Javanainen
96fe2a8e15
Builder constructors take &Ui instead 2017-07-13 00:15:13 +03:00
Joonas Javanainen
a48f0bdbd9
Add missing PhantomData to builders
I keep forgetting about this :/ :/ :/
2017-07-12 23:51:24 +03:00
Joonas Javanainen
eca0ad9ec0
Hide all builder "new" functions
These are very unsafe when used outside the Ui::* functions.
2017-07-12 23:39:09 +03:00
Joonas Javanainen
c4cc165c5d
More Into<ImVec2> sizes 2017-07-12 23:35:22 +03:00
Joonas Javanainen
932319256f
Restructure ImString/ImStr creation functions 2017-07-12 23:30:27 +03:00
Joonas Javanainen
401026a697
Update CHANGELOG 2017-07-12 23:03:49 +03:00
Joonas Javanainen
c1fc7cfbec Merge pull request #63 from bjadamson/into-imvec2
Use Into<ImVec2> instead of ImVec2 directly
2017-07-09 15:16:13 +03:00
Benjamin Adamson
0c483e9d44 Use Into<ImVec2> instead of ImVec2 directly 2017-07-08 16:14:19 -07:00
Joonas Javanainen
fe7f4ed277 Merge pull request #62 from bjadamson/color-var
Expose color variable stack to user.
2017-07-09 00:06:42 +03:00
Benjamin Adamson
03c1cccec6 Removed duplicated line from merge 2017-07-08 12:20:48 -07:00
Benjamin Adamson
da0b616f3c Merge branch 'master' into color-var 2017-07-08 12:03:04 -07:00
Joonas Javanainen
a9949b3849 Merge pull request #58 from bjadamson/child-frame
Initial idea for supporting child frame's for windows.
2017-07-08 14:01:15 +03:00
Benjamin Adamson
2c53c9ed59 Merge branch 'master' into child-frame 2017-07-08 03:50:41 -07:00
Joonas Javanainen
75c845bfa4 Merge pull request #56 from bjadamson/master
Expose more functionality from imgui.
2017-07-08 13:02:37 +03:00
Benjamin Adamson
d71612376c Implemented feedback.
Switch color to using Into idiom.
Updated interface of with_color_vars() per suggestion.
2017-07-08 02:26:27 -07:00
Benjamin Adamson
0f52e197c0 Inline functions on the private functions, not public API. 2017-07-08 02:20:51 -07:00
Benjamin Adamson
23de1746f4 Feedback implemented 2017-07-08 02:15:59 -07:00
Benjamin Adamson
f5ed221b4e Expose color variable stack to user.
In order to have colored and wrapped text, I needed to use this
functionality in my game. This PR implements a version similar to
with_style_var().

From my testing it is safe to use a Vec4 for all the variants of the
enumeration, so I didn't bother putting an enumeration in imgui-rs, I
just reused the enumeration defined in imgui-sys directly.

Let me know if you have any feedback on this.
2017-07-08 02:04:13 -07:00
Benjamin Adamson
6cb0b54539 Expose more functionality from imgui.
Implement new_line(), calc_text_size(), and with_style_var_pushed_*()
methods I needed while making a demo.

I'm pretty new to Rust, but ran into this issue and thought I could
maybe solve it while I was learning the library.
https://github.com/Gekkio/imgui-rs/issues/39

I'm curious on your thoughts on these additions. Please LMK if you would
prefer a different direction, I'm pretty new to both Rust and this
library so please let me know if you have any suggestions!

I'm hoping to contribute to this library moving forward, as I work on
my game's UI.
2017-07-08 01:51:11 -07:00
Benjamin Adamson
2f1cc2e9a8 Initial idea for supporting child frame's for windows.
Imgui allows the user to create child frame's, and render into them.
This isn't exposed currently, this is my first idea at how rust can
support child frame's.

Presently it's not the easiest to use, to have a window with a child
frame supported, internally the imgui library must have called
beginWindow() for the parent window, before beginChild() is ever called
for the child frame. Doing this without causing unneeded
allocations/complexity, and making the API ergonomic is something I hope
to work on next / get some feedback on.
2017-07-07 02:30:34 -07: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
bfd9419ae8 Merge pull request #53 from Gekkio/feature/imgui-1.50
Upgrade cimgui and imgui to 1.50
2017-06-17 19:22:19 +03:00
Joonas Javanainen
eeecd7f95e
Update CHANGELOG 2017-06-17 16:36:52 +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
Joonas Javanainen
4f94557a3e
Upgrade cimgui and imgui to 1.50 2017-06-17 16:36:17 +03:00
Joonas Javanainen
bc5dee3766 Merge pull request #44 from Gekkio/feature/gfx-renderer
gfx 0.16 support and renderer implementation
2017-06-17 16:33:33 +03:00
Joonas Javanainen
d9fdf9b58b
Remove unintended struct field shorthand 2017-06-17 15:07:08 +03:00
Joonas Javanainen
aa606f9111
Update CHANGELOG 2017-06-17 14:32:21 +03:00
Joonas Javanainen
2b59e291d3
Fix Rust version in travis.yml 2017-06-17 14:30:59 +03:00
Joonas Javanainen
dfc8fe0921
Bump minimum Rust version to 1.16 2017-06-17 14:24:49 +03:00
Joonas Javanainen
68fec8a870
Upgrade to gfx 0.16 2017-06-17 14:23:47 +03:00
Joonas Javanainen
16d19c1855
Update render target after a resize 2017-06-17 13:23:15 +03:00
Joonas Javanainen
719a1a3317
Wrap gfx renderer errors 2017-06-17 13:17:48 +03:00
Joonas Javanainen
7cdac30bba
Upgrade to gfx 0.15 2017-06-17 13:17:48 +03:00
Joonas Javanainen
19ff43ddf8
Add Cargo.toml categories 2017-06-17 13:17:48 +03:00
Joonas Javanainen
4ee27d149c
Initial working but dirty gfx renderer 2017-06-17 13:17:48 +03:00
Joonas Javanainen
9db8cf94cf
Initial gfx support in imgui-sys 2017-06-17 13:17:48 +03:00
Joonas Javanainen
800f9d1b9c
Part 3 2017-05-24 19:40:17 +03:00
Joonas Javanainen
e5beb54457
Part 2 2017-05-24 19:35:23 +03:00
Joonas Javanainen
3bef62fdc4
Let's try to fix the 1.15 build 2017-05-24 19:33:21 +03:00
Joonas Javanainen
ace021b94a
Let's use encode_utf8 2017-05-12 23:35:43 +03:00
Joonas Javanainen
4dfdf0ae5e
Document and test minimum Rust version 2017-05-12 23:30:51 +03:00