Joonas Javanainen
cf5b0ece7d
Update all structs
2018-10-12 22:04:19 +03:00
Joonas Javanainen
31ca649b74
Update all flag types
2018-10-12 21:52:29 +03:00
Joonas Javanainen
e328fdb059
Update all normal C-style enum types
2018-10-12 19:38:39 +03:00
Joonas Javanainen
9734b5ccb4
Split enums and flags to separate files
2018-10-12 19:38:39 +03:00
Tad Hardesty
7ddcbee1b3
Add Clone to ImGuiStyle
2018-09-09 19:10:08 -07:00
Joonas Javanainen
21d85afee0
Remove deprecated things
2018-08-12 20:25:43 +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
85e9375e0b
Remove things that were deprecated in 0.0.18
2018-05-14 09:15:10 +03:00
Malik Olivier Boussejra
500e64d67e
[cimgui 1.53.1] StyleVar: Add missing WindowBorderSize
...
Use WindowBorderSize as replacement for border boolean in window.rs
2018-05-14 11:53:39 +09:00
Malik Olivier Boussejra
0e1ec3cb6a
fonts: Use ImFontConfig_DefaultConstructor to initialize sys::ImFontConfig
2018-05-05 12:13:28 +09:00
Malik Olivier Boussejra
e4668f0221
[cimgui 1.53.1] Add binding to ImFont_GetDebugName
2018-05-01 13:28:45 +09:00
Malik Olivier Boussejra
b57d639ca4
[cimgui 1.53.1] Add raw bindings to drag/drop API
...
Unfortunately, it seems necessary to pull a new dependency, libc, to be able
to use size_t.
Is there any alternative?
2018-05-01 11:31:43 +09:00
Malik Olivier Boussejra
e64a1cff05
[cimgui 1.53.1] Add binding to ImDrawList_AddImageRounded
2018-05-01 11:22:12 +09:00
Malik Olivier Boussejra
9cd0e61a25
[cimgui 1.53.1] Add binding to ImFontConfig_DefaultConstructor
2018-05-01 11:21:44 +09:00
Malik Olivier Boussejra
cd37cf9993
[cimgui 1.53.1] Add binding to igEndFrame
2018-05-01 11:21:17 +09:00
Malik Olivier Boussejra
4eef43f62b
[cimgui 1.53.1] Add binding to igShowStyleSelector and igShowFontSelector
2018-05-01 11:20:37 +09:00
Malik Olivier Boussejra
20d40f0e01
[cimgui 1.53.1] Add binding to igSetItemDefaultFocus
...
Group functions related to focus management together.
2018-05-01 11:18:37 +09:00
Malik Olivier Boussejra
c016ed66b7
[cimgui 1.53.1] Allow access to ImDrawListSharedData
...
Add binding to igGetDrawListDrawData and igGetOverlayDrawList.
2018-05-01 11:16:54 +09:00
Malik Olivier Boussejra
db5059d179
[cimgui 1.53.1] Add new combo functions
...
Move igCombo{1,2,3} into the combo group along with igBeginCombo and
igEndCombo.
2018-05-01 11:13:25 +09:00
Malik Olivier Boussejra
4b788d095c
[cimgui 1.53.1] Add new Dark and Light styles
2018-05-01 11:11:00 +09:00
Malik Olivier Boussejra
e52193be40
[cimgui 1.53.1] ImGuiIO: Add mouse_drag_max_distance_abs
2018-05-01 11:08:53 +09:00
Malik Olivier Boussejra
d0543bbcdd
[cimgui 1.53.1] ImDrawCornerFlags: switch BotLeft and BotRight
2018-04-30 21:49:31 +09:00
Malik Olivier Boussejra
8ec33c5697
[cimgui 1.53.1] Update ImGuiStyle structure
2018-04-30 13:08:09 +09:00
Malik Olivier Boussejra
2103da16e6
[cimgui 1.53.1] ImGuiWindowFlags: Add ResizeFromAnySide
2018-04-30 12:48:53 +09:00
Malik Olivier Boussejra
85bb975e40
[cimgui 1.53.1] ImGuiInputTextFlags: Add NoUndoRedo
2018-04-30 12:41:05 +09:00
Malik Olivier Boussejra
5df5806936
[cimgui 1.53.1] ImGuiIO: Rename osx_bahaviors to opt_mac_osx_behaviors
2018-04-30 12:34:59 +09:00
Malik Olivier Boussejra
286c54a0df
[cimgui 1.53.1] ImGuiIO: Add opt_cursor_blink
2018-04-30 12:34:21 +09:00
Malik Olivier Boussejra
bba3e58460
[cimgui 1.53.1] Rename ImGuiCol::ChildWindowBg to ChildBg
2018-04-30 12:17:22 +09:00
Malik Olivier Boussejra
b7bb27fdbd
[cimgui 1.53.1] Add ImGuiCol::DragDropTarget
2018-04-30 12:13:52 +09:00
Malik Olivier Boussejra
5bf3eff812
[cimgui 1.53.1] Obsolete ImGuiCol::ComboBg
2018-04-30 12:11:30 +09:00
Malik Olivier Boussejra
112d21133b
[cimgui 1.53.1] Remove ImGuiWindowFlags::ShowBorders
2018-04-30 11:56:10 +09:00
Malik Olivier Boussejra
adfa447d2f
[cimgui 1.53.1] Style: Add PopupRounding, FrameBorderSize, WindowBorderSize, PopupBorderSize
2018-04-30 11:43:17 +09:00
Malik Olivier Boussejra
3b231d9838
[cimgui 1.53.1] Rename ChildWindowRounding to ChildRounding
...
Add deprecation warning for each renamed variant.
However, it will just fail to compile if the deprecated variant is used
inside a match statement. It is not possible to make aliases of variants
in Rust.
2018-04-30 11:28:17 +09:00
Malik Olivier Boussejra
d4eb0fd33a
[cimgui 1.53.1] DrawList: Add ImDrawListFlags to ImDrawList
2018-04-30 00:23:50 +09:00
Malik Olivier Boussejra
dbc96892cd
[cimgui 1.53.1] DrawList: Remove anti_aliased: bool final parameter
...
There is no way I know of to make a deprecation warning in such a case.
Code that uses ImDrawList_AddPolyline or ImDrawList_AddConvexPolyFilled will
break.
2018-04-30 00:23:50 +09:00
Malik Olivier Boussejra
37b60a5af0
[cimgui 1.53.1] Rename ImGuiTextBuffer_append() to appendf()
...
This commit does not include deprecation warning.
Indeed, defining a `ImGuiTextBuffer_append` function with a deprecation
warning would require to write a variadic function in rust. However,
this is impossible, and the FFI rust doc says so:
https://doc.rust-lang.org/book/first-edition/ffi.html#variadic-functions
Dear ImGui did not deprecate `append()`, they simply renamed it too.
2018-04-30 00:23:50 +09:00
Malik Olivier Boussejra
d2e6d41619
[cimgui 1.53.1] Obsolete igSetNextWindowContentWidth
...
There is a small change of behaviour: previous height value is not
preserved when igSetNextWindowContentWidth is used. There is no way
around it unless we mess with imgui's internals.
Official Dear ImGui chose this easy solution as well:
static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); }
429f48bb4f/imgui.h (L1132)
2018-04-30 00:23:50 +09:00
Malik Olivier Boussejra
8d3e1a82fc
[cimgui 1.53.1] Obsolete igIsRootWindowOrAnyChildHovered()
...
Update struct for ImGuiHoveredFlags.
NB: igIsWindowHovered, and thus igIsRootWindowOrAnyChildHovered, are
broken now because of a bug.
The fix is commited upstream, but not released yet.
baebcfcfaf
I guess nothing can be done but wait for the next cimgui release.
2018-04-30 00:23:28 +09:00
Malik Olivier Boussejra
2df079e563
[cimgui 1.53.1] Obsolete sys::igIsRootWindowOrAnyChildFocused()
...
Should use `igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows)`
instead.
2018-04-29 23:53:39 +09:00
Malik Olivier Boussejra
f3e994f582
[cimgui 1.53.1] Obsolete sys::igIsRootWindowFocused()
...
Should use `sys::igIsWindowFocused(ImGuiFocusedFlags_RootWindow)`
instead.
2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
24c37293e4
imgui-sys: Fix binding to igIsWindowFocused
...
This commit adds the `ImGuiFocusedFlags' input flag that was missing.
2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
a5ed022eee
[cimgui 1.53.1] Rename ImGuiTreeNodeFlags::AllowOverlapMode to ImGuiTreeNodeFlags::AllowItemOvelap
2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
0c71370546
imgui-sys: Add raw binding to GetFrameHeight
2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
1d10578471
[cimgui 1.53.1] Rename igGetItemsLineHeightWithSpacing to igGetFrameHeightWithSpacing
2018-04-29 23:49:26 +09:00
Malik Olivier Boussejra
cf15d49e36
[cimgui 1.53.1] Rename Ui::show_test_window to Ui::show_demo_window
2018-04-29 23:49:26 +09:00
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