214 Commits

Author SHA1 Message Date
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
Gabe Weiner
d05827258f refactored Slider to match the new Ui based architecture 2022-01-28 12:00:47 -05:00
dbr
dd061d4ad4 Make ui.popup* methods consistent [#454]
Closes #592
2022-01-17 12:51:55 +11:00
Jack OntheGoMac
bebd4168fa fixed breaking my commits to dbr 2021-12-21 17:04:42 -08:00
dbr
22436d9341 Fix DPI scaling in examples
- winit handles the DPI factor scaling
- Remove "rounded" mode which is only sensible with default bitmap screen on a low pixel density screen
- As such change default font to the already-in-repo Roboto
- Adds env-var to examples to force scaling factor for debug purposes
2021-12-20 09:55:36 -05:00
dbr
6f3d385fbe Better wording in comment 2021-11-21 14:32:35 +11:00
dbr
caaae327f6 Don't negate f32::MIN! 2021-11-20 19:19:50 +11:00
dbr
2ac1a56ec5 Update slider example #565
Full range of slider is half the ::MIN/MAX for f32/f64
2021-11-16 12:59:37 +11:00
Jack Mac
6faa7f090a oops broke text 2021-10-19 19:16:07 -04:00
Jack Mac
01424da04d added ui.selectable 2021-10-19 18:09:17 -04:00
Jack Mac
2eebba5662 updates tree node widgets 2021-10-19 11:44:01 -04:00
Jack Mac
88a352f76b finishing this pr 2021-10-13 12:52:19 -04:00
Jack Mac
311a31d74c menu rewrite 2021-10-13 12:52:19 -04:00
dbr/Ben
3b8ec75748
Merge pull request #550 from dbr/polyline
Add basic polyline methods to draw list
2021-10-13 16:16:59 +11:00
dbr
dd86066ed0 Minor typo in example string 2021-10-12 14:33:48 +11:00
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
Jack Mac
de69a0c103 deprecated InputInt and InputFloat, switched to using InputScalar 2021-10-06 13:09:34 -04:00
Sven Niederberger
fe4cc59faf cargo fmt 2021-10-06 12:01:11 -04:00
Sven Niederberger
f11cb33961 formatting 2021-10-06 12:01:11 -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
074c40e927 transmogrified the Id struct 2021-10-01 16:21:20 -04:00
Jack Mac
11b7e87c64 clippy fixes 2021-10-01 11:36:24 -04:00
Jack Mac
b30cb740ba aaaand fixed up the examples 2021-10-01 11:36:24 -04:00
Jack Mac
f743fefe79 aaand examples compile. complex trait bounds there... 2021-09-30 18:58:38 -04:00
Jack Mac
635cbfd01d added more bounds. wow this is gonna take awhile 2021-09-30 18:58:38 -04:00
Jack Mac
804ebd8b8c fixed textcallback 2021-09-30 18:45:35 -04:00
dbr
82ad709167 fmt 2021-09-25 13:03:06 +10:00
dbr
9eb6b410b4 Example for push_id 2021-09-25 13:02:51 +10:00
dbr
54598aa24d Example showing various methods of creating windows
- ui.window(...).build() versus ui.window.begin()
- ui.child_window(...)
2021-09-25 12:21:47 +10:00
dbr
cc7ffbe351 Update examples to ui.window(...) 2021-09-25 11:51:11 +10:00
Jack Mac
be9fd26595 rebased 2021-09-14 11:07:12 -04:00
Jack Mac
3ffe82e488 clipppy 2021-09-14 11:07:12 -04:00
Jack Mac
9d43206633 added controls for sorting...which should finish this guy off! 2021-09-14 11:07:12 -04:00
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