40 Commits

Author SHA1 Message Date
Jonathan Spira
0caa9bd5fb simplified repository down 2024-09-29 21:35:04 -04:00
dbr
e5d06c434d Docstring on flags method
To clarify potentially confusion like #757
2024-05-05 12:45:29 +09:30
dbr
b7fbd575c5 Fix clippy warnings
Mostly unnecessary 'as' casts to same kind, and unneeded borrows
2023-03-22 23:01:37 +10:30
Will Cassels
592af95697 Fix problematic TextCallbackData::selection implementation 2022-04-10 14:22:40 -04:00
Jiří Sejkora
f17af8487b Fix incorrectly copy-pasted documentation 2021-11-23 23:10:27 +01:00
Jack Mac
6faa7f090a oops broke text 2021-10-19 19:16:07 -04:00
Jack Mac
daea06108f closes #553 2021-10-19 18:41:04 -04:00
Jack Mac
de69a0c103 deprecated InputInt and InputFloat, switched to using InputScalar 2021-10-06 13:09:34 -04:00
Sven Niederberger
bb66413a29 * add input_scalar
* allow setting display format for input_float
2021-10-06 12:01:11 -04:00
Jack Mac
1d15196b5e removed the lifetime from the majority of the library 2021-10-01 11:36:22 -04:00
Jack Mac
f743fefe79 aaand examples compile. complex trait bounds there... 2021-09-30 18:58:38 -04:00
Jack Mac
8b22856090 OKAY and this is mostly done 2021-09-30 18:58:38 -04:00
Jack Mac
5cf67c22d4 the input widget may have had an incorrect text callback. this should fix that 2021-09-28 11:09:10 -04:00
Jack Mac
9ae254ad6d fixed up hack for edits on input widgets 2021-09-15 19:41:37 -04:00
Jack Mac
ff10eb01c8 added scare warning to string editing to explain null-termination 2021-09-15 12:14:05 -04:00
Jack Mac
50edf02d39 added deny(rust_2018_idioms)
we might as well be on 2018 if we're going to have to upgrade to 2021 in a few weeks!
2021-09-15 11:59:00 -04:00
Jake Shadle
97d62422f9 Fix text input deletion 2021-09-15 15:48:45 +02:00
Jack Mac
3eaee3359d imstr and imstring have been removed.
fixed some instability and added a hacky shim to input_text functions.
We're looking okay so far, but more testing will be needed
2021-09-13 17:12:00 -04:00
Jack Mac
694cd96d49 getting close! input_text resize is broken,
and i'll need to check the imgui docs example with std::string
to get a reference to how to do it properly.
2021-09-13 17:12:00 -04:00
Jack Spira
818cd60b36 borkaborka 2021-09-08 14:25:24 -07:00
Jack Spira
3d8d5115cf annoyance 2021-09-08 12:36:25 -07:00
Jack Spira
a0d3cbb7e4 tons of updates, added examples 2021-09-08 11:50:14 -07:00
Jack Spira
805f5e93e7 updated doc comments to fix intra-doc breakages 2021-09-08 10:36:32 -07:00
Jack Spira
213433ffd3 updated code significantly and removed UB 2021-09-08 10:13:38 -07:00
Jack Spira
d00dd15a9c redid how the callback worked to keep it significantly safer 2021-09-08 09:21:49 -07:00
Jack Spira
e17dc259c1 using std to handle u32s 2021-09-07 15:28:44 -07:00
Jack Spira
f011d9e337 redid buffer creation 2021-09-07 15:04:30 -07:00
Jack Spira
64f5787940 Somehow the text flags are getting sheared in multiline inputs?
let's just ignore them!
2021-09-07 15:04:30 -07:00
Jack Spira
fd5d6b2d9f added the callbacks for multiline input 2021-09-07 15:04:29 -07:00
Jack Spira
1a2a7d1473 looking good feeling good 2021-09-07 15:04:29 -07:00
Jack Spira
d6069b976a think of the widgets! 2021-09-07 15:04:29 -07:00
Jack Spira
f6d9d1b77d added safety guide 2021-09-07 15:04:29 -07:00
Jack Spira
9b27edf440 working on some tests. this commit is broken 2021-09-07 15:04:29 -07:00
Jack Spira
71a0f73034 initial commit 2021-09-07 15:04:29 -07:00
Thom Chiovoloni
cb918fc652 Update Dear Imgui to v1.82 2021-04-04 17:29:16 -07:00
dbr/Ben
c104e7f104
Merge branch 'master' into drawimage 2021-02-25 13:35:17 +11:00
dbr
cb742c8a4d Additional cargo fmt 2021-02-20 20:21:50 +11:00
Lukasz Wiklendt
3d3097e222 add input_text hinting 2021-02-18 15:21:30 -08:00
dbr
f72e78ddf4 Also move ImGuiInputTextFlags out of legacy.rs as per #445
Becomes input_widget::InputTextFlags with Rust-style casing
2021-02-11 14:30:46 +11:00
Thom Chiovoloni
0df089ab29 Move to virtual workspace 2020-12-06 09:32:21 -08:00