8 Commits

Author SHA1 Message Date
dbr
416272a48a fmt 2021-10-12 13:26:33 +11:00
dbr
eb1bd01179 Add basic polyline methods to draw list 2021-10-12 13:24:50 +11:00
dbr
cc7ffbe351 Update examples to ui.window(...) 2021-09-25 11:51:11 +10:00
Jack Mac
f635fd6438 fixed examples, removing warnings (i think) 2021-09-13 17:12:27 -04:00
dbr
0784c95f29 fmt 2021-09-13 18:24:38 +10:00
dbr
52898779e1 Allow simultaneous access to different draw lists
Only need to prevent accessing the same draw-list twice at one time

Closes #488
2021-09-13 18:22:51 +10:00
Jonathan Spira
8c328001d0 Added ext function variants to the majority of overloaded functions in ImGui 2021-03-04 10:58:30 -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