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
Lymia Aluysia
5b2c1f0861
Implement custom fonts.
2018-04-07 20:30:47 -05: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
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
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
Brendan Zabarauskas
f33567a1dc
Update glutin and dependencies that rely on it
2017-07-22 17:25:55 +10: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
Joonas Javanainen
9db8cf94cf
Initial gfx support in imgui-sys
2017-06-17 13:17:48 +03:00
Joonas Javanainen
b0cc299279
Get rid of unused macro_use
2017-03-17 20:58:06 +02:00
andystanton
c1ca4aafe5
Add push/pop item width and convenience function that calls push and pop either side of a closure
2017-03-17 17:29:46 +00:00
Joonas Javanainen
f3a243adcf
Move glium support to a separate file
2017-02-18 18:50:09 +02:00
Joonas Javanainen
063606ceb3
Add ImVec4::zero, Into array+tuple for ImVec{2, 4}
2017-02-18 18:50:09 +02:00
Joonas Javanainen
aeea0612ac
Reformat with cargo fmt
2017-02-15 20:43:20 +02:00
Joonas Javanainen
373801b9be
Remove deprecated functions
2017-02-15 20:30:36 +02:00
Joonas Javanainen
5d4dd1f622
Add some initial documentation
2017-02-14 20:50:06 +02:00
Joonas Javanainen
ca5c6ac2f8
Replace libc dependency with std::os::raw
2017-02-14 20:22:52 +02:00
Joonas Javanainen
0b4837db64
Deprecate old ::with functions from bitflags structs
2017-02-14 20:03:26 +02:00
Joonas Javanainen
4e9a3fa5bd
Upgrade to bitflags 0.8
2017-02-14 20:03:26 +02:00
Joonas Javanainen
61e531fc80
Provide an upgrade path for functions that had a typo
2017-02-14 20:03:26 +02:00
Cameron Hart
0254b7cbe7
Added ImVec2::zero() for convenience.
2016-12-30 16:29:47 +11:00
Joonas Haapala
d816b97442
Fix typos in function names
2016-12-10 21:37:57 +02:00
Joonas Javanainen
9c56e48140
Use in-place mutation in builders
...
Since we consume self anyway, this style is much more readable
and might have better performance in non-optimized builds.
2016-08-07 20:01:20 +03:00
Joonas Javanainen
c39e5d379d
Upgrade cimgui to pull the ImDrawLust->ImDrawList fix
2016-06-19 17:09:12 +03:00
Joonas Javanainen
57fad570f9
Rustfmt everything
2016-06-19 16:49:30 +03:00
Joonas Javanainen
31c2d9f5b7
Fix ImGuiStyle aligment error (removed field)
2016-06-19 12:52:03 +03:00
Joonas Javanainen
b903f65def
Upgrade to imgui/cimgui 1.49
2016-06-12 01:32:19 +03:00
Cameron Hart
73abfc21b4
Make parameters to igCombo match signature.
2016-06-05 09:51:10 +10:00
Cameron Hart
2a82d19eff
Merge branch 'upstream' into input
2016-06-04 10:44:33 +10:00
Joonas Javanainen
7b15772dc0
Upgrade to bitflags 0.5
2016-03-26 19:22:06 +02:00
Cameron Hart
4bfd697e9b
Merge branch 'master' into input
2016-01-23 14:04:16 +11:00
Joonas Javanainen
9750aa7989
Implement missing v1.47 changes
2016-01-18 21:32:31 +02:00
fl3
aae56e7bdc
update cimgui to 1.47
2016-01-17 03:00:00 +03:00
Cameron Hart
2d9f63a1b8
Added support for combo widget
2016-01-17 00:51:46 +11:00
Cameron Hart
9bcb3cb0d5
Added color editing widgets
2016-01-15 08:23:33 +11:00
Joonas Javanainen
03e24243f2
Upgrade to imgui/cimgui 1.46
2015-12-23 14:51:55 +00:00
Joonas Javanainen
a854953236
Upgrade to imgui/cimgui 1.45
2015-12-23 14:35:45 +00:00
Joonas Javanainen
1ef649900f
ImVec2/ImVec4 conversions
2015-10-18 13:33:14 +03:00
Joonas Javanainen
4d378606f1
Preliminary text input stuff
2015-10-18 13:28:11 +03:00
Joonas Javanainen
fa5bd75bb3
Fix formatting
...
I don't know where that 3 spaces nonsense came from... :/
2015-08-25 22:14:30 +01:00