16 Commits

Author SHA1 Message Date
Joonas Javanainen
109e232422
Abolish ImVec2/ImVec4 from safe APIs
[f32; 2] and [f32; 4] are now the canonical types
2019-06-28 00:05:10 +03:00
Joonas Javanainen
da9ee9302b
Fixes recommended by clippy 2018-08-12 19:20:14 +03:00
Joonas Javanainen
319f7aa4c6
Reformat everything 2018-08-12 14:16:56 +03:00
Joonas Javanainen
c12d543514
Re-export imgui_sys as sys 2017-11-04 11:14:58 +02:00
Joonas Javanainen
907f9dbdeb
Reformat with rustfmt 0.9.0 2017-11-02 22:01:02 +02: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
cf587e4de4
Split ImStr to ImStr and ImString
It might be better to use the utf8-cstr crate, but it doesn't have the
owned<->borrowed duality, so it would be used as an implementation
detail only.
2017-04-25 23:26:19 +03:00
Magnus Ulimoen
26667ce6ee Rustfmt and clippy-lints fixes
Clippy-lints reveals multiple unnecessary transmutes
2017-04-25 18:20:33 +02:00
Joonas Javanainen
ca5c6ac2f8
Replace libc dependency with std::os::raw 2017-02-14 20:22:52 +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
56f1cb964d Add rustfmt configuration and reformat 2016-06-10 22:58:50 +03:00
orhanbalci
2f2fc759c2 typo fixed ofset -> offset
stride parameter removed from struct
values_offset type updated to usize
2016-06-08 22:05:10 +03:00
orhanbalci
0119c50169 plotlines api added 2016-06-03 21:36:47 +03:00