Jack Spira
7aba745c3d
added documentation and examples
2021-09-14 11:07:12 -04:00
dbr
e6cb406570
😍
2021-09-14 14:48:13 +10:00
dbr
79aaf9f62c
fmt
2021-09-14 11:18:03 +10:00
dbr
32e0555f5f
Add bindings to BeginDisabled/EndDisabled
...
Closes #518
2021-09-14 11:18:03 +10:00
Jack Mac
b26243293b
fixed examples issue
2021-09-13 17:12:27 -04:00
Jack Mac
8037ca9e82
fixed formatting problems
2021-09-13 17:12:27 -04:00
Jack Mac
f635fd6438
fixed examples, removing warnings (i think)
2021-09-13 17:12:27 -04: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
e0125f4c06
removed imstr and imstring from clipboard support
2021-09-13 17:12:00 -04:00
Jack Spira
5143968429
updating more widgets. Wow this is boring!
2021-09-13 17:12:00 -04:00
Jack Spira
d490093dae
finished menu
2021-09-13 17:11:52 -04:00
Jack Spira
540aa5f292
converted combo_box and drag
2021-09-13 17:11:32 -04:00
Jack Spira
08d285d029
added more bounds, somewhat chaotically
2021-09-13 17:10:43 -04:00
Jack Spira
5802931a88
did some work and began converting modules over
2021-09-13 17:10:43 -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
Jack Spira
a0d3cbb7e4
tons of updates, added examples
2021-09-08 11:50:14 -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
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
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
Jack Spira
d7470caa4c
rebased and minor clippy fix
2021-09-05 14:32:32 -07:00
dbr
15c2826690
Fix fmt
2021-09-05 14:32:32 -07:00
dbr
19b2edb0f4
Add example of using list clipper API
...
Somewhat relates to #438
2021-09-05 14:32:31 -07:00
Jack Spira
7b644bf159
init draft
2021-09-04 19:26:20 -07:00
Jack Spira
7122366a43
fixing the stunning amount of clippy errors
2021-09-04 16:56:30 -07:00
Thom Chiovoloni
c68e29f0ae
Merge pull request #463 from dbr/key-by-index
2021-04-03 12:29:02 -07:00
AngelOfSol
42ab8ae591
Modifies build functions to allow returning data from the build
...
closures.
2021-03-26 01:14:08 -04:00
dbr
165ccc8043
cargo fmt
2021-03-12 12:50:28 +11:00
dbr
738081b14b
Remove direct winit dependency from example
...
Having a requirement on `winit = "..."` complicates testing the examples against various winit versions
2021-03-12 12:05:50 +11:00
dbr
8e27d386d5
Fix 'use' for VirtualKeyCode
2021-03-09 22:14:42 +11:00
dbr
879b9d35af
Add back "_index" versions of all the keyboard related methods
...
Allows accessing the state of any key defined by the IO backend, not just those neatly listed in imgui::Key
Closes #455
2021-03-09 19:53:14 +11:00
dbr
107133c799
Fix functional conflicts
...
- `ui.same_line()` no longer needs the default value specified \o/
- Doctests now actually being run, need to mark a code block as not-Rust
2021-03-09 10:37:32 +11:00
dbr/Ben
965dd87892
Merge branch 'master' into drawimage
2021-03-09 10:27:23 +11:00
Thom Chiovoloni
d0e2be1678
Merge pull request #457 from dbr/imgui-v1.81
2021-03-06 15:49:11 -08:00
Jonathan Spira
8c328001d0
Added ext function variants to the majority of overloaded functions in ImGui
2021-03-04 10:58:30 -08: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
Jonathan Spira
8ac6bc49ce
accidentally broke examples
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
52b0da64a5
holy god, the suffering
2021-02-28 21:29:05 -08:00
dbr/Ben
c104e7f104
Merge branch 'master' into drawimage
2021-02-25 13:35:17 +11:00
Lukasz Wiklendt
3d3097e222
add input_text hinting
2021-02-18 15:21:30 -08:00
dbr
3c37e67972
Address another clippy lint
2021-02-11 10:40:34 +11:00
dbr
daa08eb90b
Remove unused variable in example to apease clippy
2021-02-10 21:01:38 +11:00
dbr
0521a8fa9f
cargo fmt custom_textures.rs example
2021-02-10 18:25:07 +11:00
dbr
00d8180671
Add DrawListMut::add_image and friends
2021-02-10 14:56:26 +11: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
henbr
1ea6073821
fix, make items_count non-optional
2020-12-31 13:06:29 -08:00