Emil Ernerfeldt
017d602fe5
Rename "kb_focus" to just "focus" everywhere
4 years ago
aakamenov
c1ef81628b
Add optional drag bounds to Area and Window
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
4 years ago
Emil Ernerfeldt
cd4c07e09a
Output events when widgets gain keyboard focus
Part of https://github.com/emilk/egui/issues/167
4 years ago
Emil Ernerfeldt
a370339db7
Give focus to any clickable widget with tab/shift-tab
Use space or enter to click the selected widget.
Use arrow keys to adjust sliders and `DragValue`s.
Closes https://github.com/emilk/egui/issues/31
4 years ago
Emil Ernerfeldt
007f9f3cb9
Fix secondary-click to open a menu
Fixes https://github.com/emilk/egui/issues/198
4 years ago
Emil Ernerfeldt
fb2db4940e
Release 0.10.0 - Plot and polish
4 years ago
Emil Ernerfeldt
24d68cc55e
Merge epi/CHANGELOG.md into eframe/CHANGELOG.md
4 years ago
Emil Ernerfeldt
d3fd51d6a4
Add Response::changed(): see if e.g. text was entered or slider dragged
4 years ago
Emil Ernerfeldt
814f8c0dd8
Add support for all integers in DragValue and Slider (except 128-bit)
4 years ago
Emil Ernerfeldt
5f6a468812
Add Context::set_pixels_per_point to control the scale of the UI
4 years ago
Emil Ernerfeldt
ebc2486d22
Slider: use a DragValue for the value, and implement suffix/prefix
4 years ago
Emil Ernerfeldt
9a546ff97a
SlidSlider will now show the value display by default.
Turn off with slider.show_value(false)
Closes https://github.com/emilk/egui/issues/183
4 years ago
Emil Ernerfeldt
741f0bfe8a
Only show tooltips if mouse is still.
4 years ago
Emil Ernerfeldt
4354f7582f
Improve the positioning of tooltips
4 years ago
Emil Ernerfeldt
21c99e1130
Add Ui::hyperlink_to
4 years ago
Emil Ernerfeldt
a19140ec67
A simple 2D plot library
4 years ago
Emil Ernerfeldt
b61db038f2
Release 0.9.0 - light mode, right clicks and more
4 years ago
Emil Ernerfeldt
df4c0257c0
Add Ui functions for doing manual layout ("put this widget here")
4 years ago
Emil Ernerfeldt
bca722ddf8
Add ui.set_enabled(false) to disable all widgets in a Ui
Closes https://github.com/emilk/egui/issues/50
4 years ago
Emil Ernerfeldt
26f966563a
Add Grid::max_col_width
4 years ago
Emil Ernerfeldt
91ce18d62f
Widgets will now always line break at `\n` characters
4 years ago
Emil Ernerfeldt
0942a2aa3b
[epaint] Tessellator: handle sharp path corners better
Switch to bevel joints instead of miter joints for > 90° corners
4 years ago
Emil Ernerfeldt
0f37b009d6
Add TextEdit::hint_text for showing a weak hint text when empty
4 years ago
Emil Ernerfeldt
af3195f086
Add ctx.set_visuals()
4 years ago
Emil Ernerfeldt
829455b347
Add `ui.group(|ui| { … })` to visually group some widgets within a frame
4 years ago
Emil Ernerfeldt
ca886ea998
Add ui.visuals() as short for ui.style().visuals
4 years ago
Emil Ernerfeldt
01fca2f31c
Add Ui::spacing() and Ui::spacing_mut() as shortcuts
4 years ago
Emil Ernerfeldt
b647592a5a
Wrap text at dashes, punctuations or anywhere if necessary
Closes https://github.com/emilk/egui/issues/55
Supersedes https://github.com/emilk/egui/pull/104
4 years ago
Emil Ernerfeldt
c50190a7e8
Add fake italics (tilt text)
4 years ago
Emil Ernerfeldt
d249ed86ba
Add `Label` methods for code, strong, strikethrough and underline
4 years ago
Emil Ernerfeldt
2a10747843
Mesh::split_to_u16 now returns a 16-bit indexed Mesh16
4 years ago
Emil Ernerfeldt
b493bc6efc
Wrap tesselated output in struct ClippedMesh(Rect, Mesh)
4 years ago
Emil Ernerfeldt
75fa77e040
Rename Triangles to Mesh
4 years ago
Emil Ernerfeldt
6d57a24f35
Add Slider::clamp_to_range(bool)
4 years ago
Emil Ernerfeldt
2219e135fa
Rename DragValue::range to clamp_range and also clamp incoming values
4 years ago
Emil Ernerfeldt
247026149c
Multiple mouse button support ( #135 )
Add support for primary, secondary and middle mouse buttons. Also improve ability to click things in low FPS situations.
This introduces a lot of breaking changes:
Backends/integrations now pass mouse events via the even stream.
Response has an interface of mostly methods instead of public members.
input.mouse is now input.pointer and has new interface.
* Rename 'mouse' to 'pointer' everywhere (pointer = mouse or touch)
* Make Response::clicked and Response::double_clicked into methods
* Remove Response::active and add dragged() and interact_pointer_pos()
* Support multiple mouse buttons
* Make PointerState interface all methods
* Make most members of Response private
4 years ago
Emil Ernerfeldt
3bec7c4f68
add popup_below_widget to show a popup area below another widget
Closes https://github.com/emilk/egui/issues/122
4 years ago
Emil Ernerfeldt
37a3fe7f76
Release 0.8.0 - Grid layout & new visual style
4 years ago
Emil Ernerfeldt
31b7eda51e
Rename Egui to egui
Also update iamges in README.md
4 years ago
Emil Ernerfeldt
1f2aebc25a
Improve documentation
4 years ago
Emil Ernerfeldt
8598c365a1
[epaint] Replace tuple (Rect, Shape) with tuple-struct ClippedShape
4 years ago
Emil Ernerfeldt
620e43d483
New sleeker visual style
Remove a lot of borders, remove transparency, simplify and unify.
4 years ago
Emil Ernerfeldt
795906bb24
Add Window::current_pos to position a winodw
4 years ago
Emil Ernerfeldt
e9f8e5d6a3
Update changelog with InputState::key_down
4 years ago
Emil Ernerfeldt
0b10fa5c29
Grid layout and widget gallery ( #106 )
* Wrap Layout and Region into a new struct Placer
* [egui] Add a simple grid layout
* Refactor CollapsingHeader code (simplify header painting)
* Fix: allow putting a CollapsingHeader inside of a grid layout
* [demo] Add a widget gallery
Closes https://github.com/emilk/egui/issues/88
* Add optional striped grid background
4 years ago
Emil Ernerfeldt
d344c9d9a3
Image and ImageButton will no longer stretch to fill a justified layout
4 years ago
Emil Ernerfeldt
26d576f510
Break out mod paint into new crate epaint
4 years ago
Emil Ernerfeldt
fb2317c993
Rename `PaintCmd` to `Shape`
4 years ago
Emil Ernerfeldt
a0b0f36d29
Move egui/math into new crate emath
4 years ago
Emil Ernerfeldt
e079ac5b46
Center window titles
4 years ago