183 Commits

Author SHA1 Message Date
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
a6732b9984 Note that tables aren't quite supported yet 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
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
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
Thom Chiovoloni
64a8d3260d Attempt to bludgeon the winit/glium/gfx versions into submission 2020-12-31 19:32:44 -08:00
Benedikt Mandelkow
7fce85fe60 update changelog 2020-12-31 13:31:53 -08:00
Joonas Javanainen
a990a538b6
Glutin requires Rust 1.43 :( 2020-11-15 11:14:32 +02:00
Joonas Javanainen
0d57f87087
Release: 0.6.0 2020-11-15 11:03:42 +02:00
Joonas Javanainen
c6716d6daf
Add peek_input_characters to changelog 2020-11-15 11:00:07 +02:00
Joonas Javanainen
e55db99648
Upgrade to imgui 1.79 2020-11-12 23:03:00 +02:00
Max de Danschutter
6658b91f25 Updated the changelog, readme, and CI (minimum rust support 1.41) 2020-11-10 10:08:03 +01:00
Joonas Javanainen
f43176164c
Fix changelog 2020-09-20 00:05:29 +03:00
Joonas Javanainen
ff6ed84dd1
Release: 0.5.0 2020-09-20 00:01:56 +03:00
Joonas Javanainen
9401398b29
Remove deprecated stuff 2020-09-20 00:00:24 +03:00
Joonas Javanainen
806608740a
Update slider API slightly 2020-09-19 14:54:03 +03:00
Joonas Javanainen
03ad6b10e0
Overhaul the drag slider API 2020-09-19 14:47:09 +03:00
Joonas Javanainen
67ba49646f
Upgrade to cimgui/imgui 1.78 2020-09-19 13:21:08 +03:00
Joonas Javanainen
d5be602f73
Update changelog 2020-07-16 17:32:55 +03:00
Joonas Javanainen
6f9e34ab93
Update changelog 2020-06-05 22:06:23 +03:00
Joonas Javanainen
bcf7669ae3
Release: 0.4.0 2020-05-27 22:31:40 +03:00
Joonas Javanainen
d72134e759
Update changelog 2020-05-27 22:06:55 +03:00
Joonas Javanainen
c99720abdc
Bump minimum Rust to 1.40 2020-04-18 12:42:21 +03:00
Joonas Javanainen
e3f958d1dc
Fix typo 2020-03-16 12:26:40 +02:00
Joonas Javanainen
5b04ff1e7b
Update changelog 2020-03-16 12:24:53 +02:00
Joonas Javanainen
64022fbb28
Narrow supported winit version range
We can't promise forward compatibility with arbitrary versions, and 0.22
is already broken -> require 0.20 or 0.21, and let's upgrade to 0.22
properly later.
2020-03-16 12:07:26 +02:00
Joonas Javanainen
a5a0be44e3
Redesign tree node / collapsing header API 2020-03-16 12:02:52 +02:00
Joonas Javanainen
97c95c54fb
Release: 0.3.0 2020-02-15 14:35:55 +02:00
Joonas Javanainen
b759a44c84
Upgrade to imgui/cimgui 1.75 2020-02-15 12:39:27 +02:00
Joonas Javanainen
9545ca3d39
Update changelog 2020-02-15 12:23:49 +02:00
Joonas Javanainen
befcc23bc1
Upgrade to glium 0.26 2020-02-15 12:18:11 +02:00
Joonas Javanainen
b37f113062
Bump minimum Rust version to 1.38 2020-01-20 09:14:23 +02:00
Joonas Javanainen
2b72a2a62c
Upgrade to cimgui/imgui 1.74 2020-01-12 14:05:51 +02:00
Joonas Javanainen
ccec55c10a
Merge pull request #284 from malikolivier/fix-build-with-ref
Fix toggling of MenuItem and Selectable with build_with_ref
2019-12-08 00:49:47 +02:00
Malik Olivier Boussejra
9d3fb4ba40 Update CHANGELOG to include fix to build_with_ref 2019-12-06 11:27:11 +09:00
Malik Olivier Boussejra
f891dd76a8 Add ChildWindow::movable to CHANGELOG 2019-12-02 19:35:50 +09:00
Joonas Javanainen
ae2f7d047c
Upgrade to cimgui/imgui 1.73 2019-09-25 18:41:12 +03:00
Joonas Javanainen
4833811950
Remove all deprecated things 2019-09-18 11:15:20 +03:00
Joonas Javanainen
f9db7db7c7
Update changelog for 0.2.1 2019-09-09 21:55:43 +03:00
Joonas Javanainen
9b2db30330
Fix changelog section 2019-09-09 19:41:11 +03:00
Johan Andersson
3699401348 Add fix to changelog 2019-09-09 11:36:48 +02:00
Joonas Javanainen
98f508412d
Update changelog 2019-09-08 12:09:30 +03:00
Joonas Javanainen
b92a8b1ae2
Update changelog 2019-09-07 21:24:30 +03:00
Joonas Javanainen
6062347643
Update changelog 2019-09-07 16:45:43 +03:00
Joonas Javanainen
8a862ae220
Upgrade to cimgui/imgui 1.72b 2019-09-05 09:30:49 +03:00
Joonas Javanainen
d71cb41ac9
Bump minimum Rust to 1.36 2019-09-05 09:13:04 +03:00
Joonas Javanainen
278606c237
Fix changelog links 2019-07-13 19:04:47 +03:00
Joonas Javanainen
46d099f40f
Require explicit ending/popping of almost all stack tokens
This is probably going to be controversial...
Calling end/pop in the Drop implementation causes way too many problems,
and interacts very badly with panics.

There are closure-based simpler implementations of almost everything
except parameter stacks that are still convenient to use. However, if we
end up switching to &mut Ui in most functions (very much possible in the
future!), closures will complicate matters so push/pop and begin/end
pairs are still relevant.
2019-07-13 17:19:32 +03:00
Joonas Javanainen
83c2503134
Redesign menu API 2019-07-13 15:28:51 +03:00