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
6570f0bf40
okay fixed our winit hell situation
2021-09-05 14:30:47 -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
henbr
936e63bdfa
Add ListClipper wrapper
2020-12-31 13:06:29 -08:00
dskkato
126d5184f6
Use Path to extract file name.
2020-12-16 17:40:30 -08:00
dkato
02b8c13174
Use MAIN_SEPARATOR to make consistent behavior.
2020-12-16 17:40:30 -08:00
Willem Verstraeten
7e2293bde6
support winit-0.24
2020-12-15 20:47:54 -08:00
Willem Verstraeten
9210130872
added richer support for ListBox
2020-12-13 10:54:35 -08:00
Thom Chiovoloni
0df089ab29
Move to virtual workspace
2020-12-06 09:32:21 -08:00
Thom Chiovoloni
3a1aa3a684
Format again
2020-12-05 23:32:54 -08:00
Thom Chiovoloni
e585291e4d
fix lint errors and ensure examples actually are linted
2020-12-05 23:32:54 -08:00
Thom Chiovoloni
c768fc49a4
Use parking_lot::const_recursive_mutex instead of lazy_static
2020-12-05 23:32:54 -08:00
Thom Chiovoloni
767e8058fb
Updates for ownership transfer.
...
- Various links now point at the new imgui-rs/imgui-rs github repo.
- As discussed, the `authors` entry in Cargo.toml now uses same text
that appears in `LICENSE-MIT`, and doesn't list anybody directly.
2020-12-04 05:54:15 -08:00
Joonas Javanainen
0d57f87087
Release: 0.6.0
2020-11-15 11:03:42 +02:00
Joonas Javanainen
e680aa342e
Update dependencies in examples
2020-11-15 10:58:50 +02:00
JMS55
4b22569aac
Fix some of imgui-glium-renderer
2020-10-05 12:15:15 -04:00
JMS55
a6ba02aa36
Initial winit 0.23 support
2020-10-01 22:37:15 -04:00
Joonas Javanainen
132c749239
Update dependencies in examples
2020-09-20 00:07:45 +03:00
Joonas Javanainen
646d7d6de4
Damn you, rustfmt
2020-09-19 20:24:50 +03:00
Joonas Javanainen
dfbe4231a8
Add basic slider examples
2020-09-19 20:02:58 +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
Cosmic Chip Socket
d6e30ba457
Format example
2020-07-14 19:08:27 -04:00
Cosmic Chip Socket
f2b4e4c482
Use SamplerBehavior in the Texture struct
2020-07-14 18:54:15 -04:00
Cosmic Chip Socket
d0c65f534d
Rename TextureEntry to Texture
2020-07-14 18:54:15 -04:00