Emil Ernerfeldt
4fab4b30a3
[egui_web] Publish new web demo
4 years ago
Emil Ernerfeldt
a0b8f83846
cargo update
4 years ago
Emil Ernerfeldt
42b433a204
[release] bump version numbers to 0.2.0
4 years ago
Emil Ernerfeldt
12afc356ee
Misc code cleanup: use more ui.checkbox, ui.label, ui.button etc
4 years ago
Emil Ernerfeldt
5c469551df
Switch argument order of `ui.checkbox` and `ui.radio`
`bool, text` is the more logical order, as it
* matches the visuals: `[x] text`
* puts the important part first
* more natually allows us to extend to checkboxes without a text
4 years ago
Emil Ernerfeldt
a2e8d1d32c
[demo] Add compact version of the toggle_switch demo code
4 years ago
Emil Ernerfeldt
343648b94c
[refactor] remove Ui::canvas (use Ui::allocate_space instead)
4 years ago
Emil Ernerfeldt
b01690c7b8
[culling] coarse culling of text lines, circles and boxes
4 years ago
Emil Ernerfeldt
9874921d06
[bench] benchmark demo app when everything is open
4 years ago
Emil Ernerfeldt
f30b354f77
[culling] Add debug option to ignore clip rectangles
4 years ago
Emil Ernerfeldt
2615d1bce1
Remove Rect::default() since there is no sensible default rectangle
4 years ago
Emil Ernerfeldt
adec27a7dd
fix: clip_rect of combo box popup
4 years ago
Emil Ernerfeldt
8c17b45439
[demo] shorter toggle_switch code
4 years ago
Emil Ernerfeldt
c6fd30ea13
fix clippy issue
4 years ago
Emil Ernerfeldt
9f6301e121
Add logarithmic sliders to CHANGELOG.md
4 years ago
Emil Ernerfeldt
3f345b5963
Ui: clean up min_rect/max_rect related functions
4 years ago
Emil Ernerfeldt
ba98ea715f
fix ui.expand_... functions to also expand max_rect
4 years ago
Emil Ernerfeldt
dbbe1cf063
Update to glium 0.28
4 years ago
Emil Ernerfeldt
3444666806
cargo update
4 years ago
Emil Ernerfeldt
8ff0bed259
[slider] Logarithmic sliders with support for zero and infinity
Logarithmic sliders will intelligently help you pick a good range
even if you inlcude zero or infinity. They also support crossing
the zero value, so you can have a slider span -INF to +INF.
The sliders now also supports reversed sliders (large -> small).
4 years ago
Emil Ernerfeldt
d5d8eeb172
[slider] use f64 internally for increased precision
4 years ago
Emil Ernerfeldt
a49cba54ac
[math] make lerp, remap and remap_clamp work for both f32 and f64
4 years ago
Emil Ernerfeldt
7a71ac1a95
Rename tooltip_text to on_hover_text
4 years ago
Emil Ernerfeldt
5cba44eaa8
Clean up various small TODOs
4 years ago
Emil Ernerfeldt
6fcfb52aa0
[demo] add frame time graph to demo app
4 years ago
Emil Ernerfeldt
1156525ce9
[clippy] fixes
4 years ago
Jihyun Yu
b9cb3c7644
fix script ( #25 )
4 years ago
Emil Ernerfeldt
a2a4eafd0e
fix compilation of test and benchmark
4 years ago
Emil Ernerfeldt
908d1d0c08
[refactor] Ui: rename child_bounds to min_rect, desired_rect to max_rect
4 years ago
Emil Ernerfeldt
43bb670c0c
[layout] correct handling of cursor position w.r.t. reversed layouts
4 years ago
Emil Ernerfeldt
8cbf90442b
remove ui.vertical_centered
4 years ago
Emil Ernerfeldt
aad0391fef
remove Ui::set_layout
4 years ago
Emil Ernerfeldt
d8021843f8
[menu] simplify menu interactions, fixing an annoying bug
4 years ago
Emil Ernerfeldt
22fffc1793
[widgets] combo box (drop down menu)
4 years ago
Emil Ernerfeldt
b081be11d1
[spacing] simplify and tweak spacing
4 years ago
Emil Ernerfeldt
2164e37e39
[refactor] make sure we show all input members in introspection window
4 years ago
Emil Ernerfeldt
b77151fb64
remove seconds_from_midnight from core egui input
It is only used by demo app, and so does not belong to egui proper.
Instead it is now passed as part of a DemoEnvironment
4 years ago
Emil Ernerfeldt
b84642374b
[docs] improve README.md section about writing your own backends
4 years ago
Emil Ernerfeldt
6e7507373a
[egui_glium] clean up the code for the glium OpenGL painter
4 years ago
Emil Ernerfeldt
deb1c33760
[style] visual tweaks
4 years ago
Emil Ernerfeldt
2c611292ff
[style] more spacious, more alignmnet, more readable
4 years ago
Emil Ernerfeldt
05316b7045
[refactor] move DragValue to own file drag_value.rs
4 years ago
Emil Ernerfeldt
dd8c298cb5
refactor space allocation code
4 years ago
Emil Ernerfeldt
283b4ab63d
[layout] remove ui.horizontal_centered and make centering the default
4 years ago
Emil Ernerfeldt
4df8def9e2
[layout] change `clickable_diameter: f32` to `interact_size: Vec2`
4 years ago
Emil Ernerfeldt
85a67ab15e
[refactor] introduce NumExt with at_least and at_most
`x.min(maxumim)` can be confusing but `x.at_most(maximum)` is very clear
4 years ago
Emil Ernerfeldt
5856cded95
refactor RunMode: move it from backend to the demo App ( #23 )
This simplifies the egui_glium and egui_web backends substantially,
reduces the scope of RunMode to a single file, and
removes duplicated code.
Basically: this is how I should have written it from the beginning.
4 years ago
Jay Oster
0ea80ae10a
Fix continuous RunMode in glium backend on Windows ( #21 )
4 years ago
Emil Ernerfeldt
c25d4ff70a
[egui_web] publish new web demo
4 years ago
Emil Ernerfeldt
e30a9c1196
[window/resize] add Resize::max_width and fix bug with fixed_size
4 years ago