1057 Commits

Author SHA1 Message Date
dbr
90c2178366 Note on building against a non-tagged imgui release 2021-03-03 17:02:13 +11:00
dbr
89e94c55c5 Documenting process to update imgui version 2021-03-03 16:51:39 +11:00
dbr
fbd5353648 Fix up some examples in docs 2021-03-03 15:36:58 +11:00
dbr
507d5d5065 Update to imgui 1.81
Changes:

- No more ListBox::calculate_size(...) as this was deprecated upstream
2021-03-03 15:36:28 +11:00
dbr
2839f76cec Simplify (maybe) the imgui submodules
Use cimgui which avoids the copy-files-into-our-repo step
2021-03-03 14:19:10 +11:00
Jonathan Spira
75fdec09d0
Merge pull request #440 from sanbox-irl/feat_permissive_dropping
permissive dropping
2021-02-28 21:54:57 -08:00
Jonathan Spira
6010a3dc25 readded changelog 2021-02-28 21:43:01 -08:00
Jonathan Spira
8ac6bc49ce accidentally broke examples 2021-02-28 21:29:06 -08:00
Jonathan Spira
91c8157205 oops inline 2021-02-28 21:29:06 -08:00
Jonathan Spira
468d6c8a33 removed my changelog 2021-02-28 21:29:06 -08:00
Jonathan Spira
7e666e8463 fixed up the examples 2021-02-28 21:29:06 -08:00
Jonathan Spira
0d995a6dfa Updated changelog and added scare message to the list_clipper. 2021-02-28 21:29:05 -08:00
Jonathan Spira
52b0da64a5 holy god, the suffering 2021-02-28 21:29:05 -08:00
Lukasz Wiklendt
3d3097e222 add input_text hinting 2021-02-18 15:21:30 -08:00
Jonathan Spira
b3f5558557 Oops. Fixed forgotten legacy flags 2021-02-10 17:29:04 -08:00
Thom Chiovoloni
56d95395e7 Note the yanking of imgui-winit-support in the changelog 2021-02-04 21:20:05 -08:00
Thom Chiovoloni
637656204d changelog for 0.7.0 2021-02-04 21:04:56 -08:00
Thom Chiovoloni
34118dce9c Prep release 0.7.0 2021-02-04 21:04:56 -08:00
Thom Chiovoloni
5721afe43c Replace cty with chlorine 2021-02-04 18:57:18 -08:00
Thom Chiovoloni
8b006631db
Merge pull request #428 from sanbox-irl/feat_drag_drop 2021-02-04 08:50:12 -08:00
Jonathan Spira
6b2983e591
Merge branch 'master' into feat_drag_drop 2021-02-04 00:40:57 -08:00
Jonathan Spira
1983f47941 final 2021-02-04 00:36:47 -08:00
Jonathan Spira
2a1ced631a Updated 2021-02-03 00:40:10 -08:00
Thom Chiovoloni
79a277aebc changelog 2021-02-01 11:49:44 -08:00
Thom Chiovoloni
d15b97d70f just ignore all warnings on MouseCursor rather than ignore 4 separate warnings for it 2021-02-01 11:49:44 -08:00
Thom Chiovoloni
aa1cbed2ca Whoops, rustfmt 2021-02-01 11:49:44 -08:00
Thom Chiovoloni
5be6045cf2 Fix some (nightly-only) clippy lints where they make sense 2021-02-01 11:49:44 -08:00
Thom Chiovoloni
a475ff90e9 rename config_windows_memory_compact_timer => config_memory_compact_timer to match c++ 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
f5cb071844 Fix worthwhile tests 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
a359c3940f Update pointless test 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
a6732b9984 Note that tables aren't quite supported yet in readme 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
e6ca1d070e Quickly update an inaccuracy about winit in README 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
3c24fb4dc6 Changelog note for 1.80 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
53828505ed Fix compile errors with 1.80 update 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
7f5b74e8a4 Re-bindgen 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
fc6366c0ae Run update-cimgui-output 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
4cd6ec8294 Add imgui_tables to include_all_imgui.cpp 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
1c312d3a0b Update submodule for imgui 1.80 2021-02-01 08:37:31 -08:00
Thom Chiovoloni
59970d670e Constify a large number of fns 2021-02-01 03:00:04 -08:00
Thom Chiovoloni
4f1cde06f2 ImColor changes and improvements:
- Renamed to `ImColor32` to avoid confusion with `ImColor` from the C++.
  code: https://github.com/ocornut/imgui/blob/9499afdf/imgui.h#L2180
    - Eventually I'd probably like to add something mirroring the actual
      `ImColor`.

- Now supports construction and access from `const fn` where possible.
    - Still impossible for the `f32` APIs

- Now supports `.r`/`.g`/`.b`/.a` field access (read and write), by way
  of a new type `imgui::color::ImColor32Fields`, which essentially
  exists just to serve this purpose. This is a bit cludgey, but lets us
  provide the ability for reading and writing `r/g/b/a` values without
  adding many `fn get_r(self) -> u8` and `fn set_r(&mut self, r: u8);`
  style functions.

- No longer requires FFI calls to construct from RGB floats.
    - This gives much more freedom to the optimizer, as external calls
      are impenetrable optimization barriers (It has to pessimistially
      assume that they read/write to all globally accessable memory, and
      must be called in the exact order that is listed).
    - Also, it allows inlining these calls, and avoid computing the same
      value twice (if the args are the same).

    - Also improves usage from IDEs, debuggers, etc, and avoids a rare
      possibility of UB if NaN was passed in (however, this almost
      certainly could only cause problems if cross-lang LTO was used,
      which I believe we don't support).

    - This code is more complex than needed, but was taken from another
      project of mine (functions were renamed to line up with imgui's
      names), and has good (literally exhaustive) test coverage.

    - Unfortunately, float arithmetic in const fn is still not allowed,
      so for now these aren't usable `const fn`.

- Added utility constants to mirror the `IM_COL32_WHITE`,
  `IM_COL32_BLACK`, `IM_COL32_BLACK_TRANS` constants.
2021-02-01 01:45:39 -08:00
Jonathan Spira
a027c89125 removed bytemuck, made this nice. 2021-01-26 13:53:09 -08:00
Jonathan Spira
72007c06b6 final version 2021-01-26 00:31:51 -08:00
Jonathan Spira
2e6956a3ce correct bytesize from imgui 2021-01-25 14:38:08 -08:00
Jonathan Spira
a8975b95c0 Updated for pod data 2021-01-25 14:28:05 -08:00
Jonathan Spira
07e0580d2d fixed formatting issues 2021-01-24 15:16:17 -08:00
Jonathan Spira
b03e7d7a16 clarified some doc comments and made the unsafe variant simpler to understand 2021-01-24 15:00:54 -08:00
Jonathan Spira
35c0cf0e6f drag and drop experimental implementation 2021-01-24 14:55:03 -08:00
Thom Chiovoloni
17be09eaef Fixup changelog, add missing entries, and move it to use 4-space indent and not 2 2020-12-31 21:06:47 -08:00
nsf
171d86aea1 Refactor WindowDrawList into DrawListMut and fix #413.
- Rename WindowDrawList -> DrawListMut. It's not about window draw lists, but
  about background/foreground draw lists as well. The naming was not an easy
  choice, but seems like in rust it's a common convention to add a Mut suffix for
  mutable entities. Imgui-rs already has DrawList and it acts as an immutable
  reference type for rendering implementations to consume. Hence the name
  DrawListMut, which becomes a mutable reference to draw list with methods
  to modify it.
- Add Ui::get_foreground_draw_list(). Same as Ui::get_background_draw_list()
  but for foreground.
- Add draw_list example which shows the use of all three draw lists
  (window, bg, fg).
2020-12-31 20:20:36 -08:00
Thom Chiovoloni
81e21f5853 Whoops, missed a spot 2020-12-31 19:32:44 -08:00