286 Commits

Author SHA1 Message Date
Rodrigo Rivas Costa
2106e17dea Fix keyboard modifiers in Winit with the new ImGui version. 2023-01-14 13:26:23 +01:00
dbr
f44f8fe942 Mark Key, StyleColor, StyleVar as non-exhaustive
Likely to have new things added - rest are all either fairly closed sets of things (up/down/left/right) or likely to require some intentional change from user (e.g DrawCmd)

Closes #695
2023-01-13 14:06:44 +10:30
dbr
a08f0d63d9 Update to imgui 1.89.2
Closes #699
2023-01-12 10:12:47 +10:30
dbr/Ben
942f04d3b1
Merge pull request #688 from Rob2309/imgui-event-io
Update ImGui and use event-based io
2023-01-09 19:08:09 +10:30
ararem
9b614eaae3 Implement DataTypeKind for usize and isize
This allows direct use of the size types in `imgui-rs` functions, like `Slider`s. Previously, they had to be cast, passed in, then cast back. This change allows for direct use (no casts necessary)
2023-01-04 13:00:42 +01:00
dbr
71a2dbd066 Ignore clippy warning
In this case we are intentionally returning different struct for backwards-compat
2023-01-01 17:52:24 +10:30
dbr
b70981531e fmt 2023-01-01 17:34:31 +10:30
Robin
37a800c33c Added documentation to io test, added fallback implementation for ImageButton 2022-12-28 12:31:31 +01:00
Robin Quint
a8e2fb4fb4 Added new flags to ItemHoveredFlags, added documentation to new pub members of io 2022-12-22 15:41:27 +01:00
Robin Quint
1a1ea098c1 cargo fmt 2022-12-22 15:10:09 +01:00
Robin Quint
70b865a001 Added workaround for io tests 2022-12-22 15:09:23 +01:00
Robin
0cb64e8b59 Fixed build errors with docking feature 2022-12-21 21:21:57 +01:00
Robin Quint
e51af80da7 upgraded imgui to 1.89.1, changed winit-support to use new event io 2022-12-21 15:14:31 +01:00
dbr/Ben
645d7eba55
Merge pull request #680 from dbr/rmimstr
Removing im_str! marco
2022-12-02 12:58:41 +10:30
dbr
6d6cda275c Add docs links to Cargo.toml
So docs link shows up nicely on crates.io
2022-11-30 10:31:02 +10:30
dbr
9776ebef90 Remove authors key from Cargo.toml
The field is now optional (as of Rust 1.53) and no longer used by crates.io (as per Rust RFC 3052)
2022-11-30 10:15:38 +10:30
dbr
2eb3f8c337 Bump to 0.9.0! 2022-11-30 10:10:19 +10:30
dbr
54f4bef7db Remove ye ol' deprecated im_str! marco
Closes #576
2022-11-30 00:19:12 +10:30
dbr
fa3404fbb5 Remove redundant clone in new TextFilter 2022-10-05 14:52:09 +10:30
dbr/Ben
f1c87a1755
Merge pull request #658 from tetenpapier/main
Add bindings to TextFilter
2022-10-05 13:37:25 +10:30
dbr/Ben
0c9341a41c
Merge pull request #662 from linw789/main
Allow users to hide tree_node label
2022-09-02 15:18:53 +10:00
Lin Wang
cddf42ada7 fix doc 2022-08-29 23:30:04 -04:00
Wang, Lin
6fa1fb6991 leave tree_node label None if not set
This allows users to hide tree_node label. This change also added an
example of making a tree_node as a button.
2022-08-24 13:42:14 -04:00
tetenpapier
c004b3a619 move text_filter file 2022-08-12 17:37:12 +02:00
tetenpapier
5f5450487f use &str instead of String 2022-08-12 17:32:11 +02:00
tetenpapier
2d8ae7c9d0 add new function in ui for textfilter and doc 2022-08-11 10:24:58 +02:00
tetenpapier
5450ee6136 add doc and example, remove useless function 2022-08-11 10:12:34 +02:00
tetenpapier
b02c1eb7b2 add doc 2022-08-10 19:51:52 +02:00
tetenpapier
3d7b56a331 add pass_filter_end 2022-08-10 19:40:58 +02:00
tetenpapier
5fc64b7e68 add TextFilter 2022-08-10 18:01:44 +02:00
dbr
69f43e3025 Deduplicate ui.enabled(...) and ui.disabled() 2022-04-23 13:23:35 +10:00
dbr
5ec80ec584 Documenting a bunch of methods 2022-04-23 13:22:50 +10:00
Will Cassels
592af95697 Fix problematic TextCallbackData::selection implementation 2022-04-10 14:22:40 -04:00
dbr/Ben
fef6509a6e
Merge pull request #628 from dbr/losingfocus
Handle window focus lost event
2022-03-23 12:12:56 +10:30
dbr
7861355fe8 Docstring for app_focus_lost 2022-03-22 20:37:16 +11:00
dbr
a658073bd7 Booleano 2022-03-19 21:07:57 +11:00
dbr
9648b40d85 Handle window focus lost event
Avoids keys getting stuck when window loses focus (e.g alt+tab)

Closes #602
2022-03-19 21:04:16 +11:00
dbr
091e5a6a15 Workaround to turn imgui <~ 1.88 segfault into a panic 2022-03-19 20:31:06 +11:00
dbr
5a76ed7ce6 Clippy the wildly pedantic 2022-03-19 11:43:14 +11:00
dbr
cc08285a04 Update the list clipper:
1. Avoid calling step() in destructor - incorrect and unnecessary, as it is not required to fully "use" the clipper (you can stop rendering half-way through)
2. Add a harder to misuse iterator interface to the clipper as an alterantive to the C++ style .step() interface

Closes #610
2022-03-18 22:07:27 +11:00
dbr/Ben
71dff831de
Merge pull request #624 from MarijnS95/parking-lot-0.12
imgui: Upgrade parking_lot to 0.12 with windows-rs bindings
2022-03-15 22:36:46 +10:30
dbr
c0fb4b6369 Fix future clippy warning 2022-03-15 23:05:20 +11:00
Marijn Suijten
b5376c3fb4 imgui: Upgrade parking_lot to 0.12 with windows-rs bindings
`parking_lot` now uses windows-rs's `windows-sys` crate, officially
developed and vetted by Microsoft - the bindings are autogenerated from
metadata and faster to compile too.

See also https://github.com/Amanieu/parking_lot/pull/311.
2022-03-15 12:19:31 +01:00
Jiří Sejkora
30f8f04dcf Remove im_str! usage from examples in docs 2022-02-27 20:48:45 -05:00
Jack Mac
24ad9d526c reworked the combo box to be less annoying 2022-02-21 20:44:33 -05:00
Jack Mac
396512a982 lint 2022-02-21 18:05:49 -05:00
Jack Mac
4bb300e393 color edits 2022-02-21 18:05:49 -05:00
Jack Mac
f334bfb106 init 2022-02-21 18:05:49 -05:00
Jack Mac
d6037316a0 updated modal popup funtimes 2022-02-21 18:05:49 -05:00
Jack Mac
32cf2b9e6c clippy stop yelling at me 2022-02-10 14:31:19 -05:00