Emil Ernerfeldt
ca886ea998
Add ui.visuals() as short for ui.style().visuals
2021-02-03 00:20:39 +01:00
Emil Ernerfeldt
2cbea02c8b
refactor easy_mark_viewer.rs: break it up into logical parts
2021-02-01 17:00:42 +01:00
Emil Ernerfeldt
01fca2f31c
Add Ui::spacing() and Ui::spacing_mut() as shortcuts
2021-02-01 16:56:29 +01:00
Emil Ernerfeldt
16d66bd22d
Replace markdown editor with new 'EasyMark' markup language
2021-01-31 16:42:32 +01:00
Emil Ernerfeldt
17fdd3bb10
Label: draw underline and strikethrough on top of text
2021-01-31 00:42:00 +01:00
Emil Ernerfeldt
14e0963e50
Add Label::weak for fainter text
2021-01-30 18:49:21 +01:00
Emil Ernerfeldt
953a652c29
Add Hyperlink::from_label_and_url
2021-01-30 15:56:00 +01:00
Emil Ernerfeldt
c50190a7e8
Add fake italics (tilt text)
2021-01-30 15:55:40 +01:00
Emil Ernerfeldt
d249ed86ba
Add Label
methods for code, strong, strikethrough and underline
2021-01-30 15:51:19 +01:00
Emil Ernerfeldt
26d47eabf0
[style] Add code_bg_color
2021-01-30 15:48:17 +01:00
Emil Ernerfeldt
5b7fc51932
Bug fix: moving windows slightly when dragging slider
2021-01-27 20:58:49 +01:00
Emil Ernerfeldt
703592ae0c
Bug fix: always set interact_pointer_pos on active Responses
2021-01-27 20:52:42 +01:00
aakamenov
e30e999ef4
Use any_click() instead of any_pressed() in check ( #144 )
2021-01-27 20:22:14 +01:00
Emil Ernerfeldt
6029a438a2
Add a VERY experimental markdown viewer
2021-01-27 20:14:53 +01:00
Emil Ernerfeldt
7d8ebb4c8f
Add ui.code(text): like ui.monospace() but also adds a background
2021-01-26 22:05:14 +01:00
Emil Ernerfeldt
b8a4c9c8ce
Fix rare issue of accidentally hovering two things at once
...
Closes https://github.com/emilk/egui/issues/140
2021-01-26 18:56:30 +01:00
Emil Ernerfeldt
b493bc6efc
Wrap tesselated output in struct ClippedMesh(Rect, Mesh)
2021-01-25 21:43:17 +01:00
Emil Ernerfeldt
75fa77e040
Rename Triangles to Mesh
2021-01-25 21:23:24 +01:00
Emil Ernerfeldt
6d57a24f35
Add Slider::clamp_to_range(bool)
2021-01-25 19:55:08 +01:00
Emil Ernerfeldt
2219e135fa
Rename DragValue::range to clamp_range and also clamp incoming values
2021-01-25 19:45:59 +01:00
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
2021-01-25 18:50:19 +01:00
Emil Ernerfeldt
9f4c31c0e0
Add Frame::group for putting a frame around some widgets
...
Closes https://github.com/emilk/egui/issues/125
2021-01-20 23:26:46 +01:00
Emil Ernerfeldt
3bec7c4f68
add popup_below_widget to show a popup area below another widget
...
Closes https://github.com/emilk/egui/issues/122
2021-01-20 23:10:56 +01:00
Paul Shen
577aa2699f
kill velocity after overscroll ( #126 )
2021-01-20 22:25:52 +01:00
Emil Ernerfeldt
e2217ff63a
[style] Fade out windows on close
2021-01-20 00:31:43 +01:00
Emil Ernerfeldt
37a3fe7f76
Release 0.8.0 - Grid layout & new visual style
2021-01-17 15:28:52 +01:00
Emil Ernerfeldt
31b7eda51e
Rename Egui to egui
...
Also update iamges in README.md
2021-01-17 14:48:59 +01:00
Emil Ernerfeldt
9dba63fa3f
Skip persisting style for now (so everyone gets the new default style)
2021-01-17 14:19:47 +01:00
Emil Ernerfeldt
1f2aebc25a
Improve documentation
2021-01-17 12:24:13 +01:00
Emil Ernerfeldt
67c0fbdd01
Move Response and Sense to own files
2021-01-17 10:15:25 +01:00
Emil Ernerfeldt
53d0114d3c
Rename MouseInput to CursorState
2021-01-17 02:34:21 +01:00
Emil Ernerfeldt
421e8bc91e
Don't glob-include eveything in mod layers
2021-01-17 02:27:58 +01:00
Emil Ernerfeldt
4203944892
doc fixes
2021-01-17 02:17:57 +01:00
Emil Ernerfeldt
8598c365a1
[epaint] Replace tuple (Rect, Shape) with tuple-struct ClippedShape
2021-01-17 01:40:14 +01:00
Emil Ernerfeldt
7b318887ee
Put input/output data types into mod egui::data
2021-01-17 00:21:58 +01:00
Emil Ernerfeldt
33545501f9
Simplified color picker
2021-01-16 20:55:02 +01:00
Emil Ernerfeldt
03c667149a
TextEdit: only show cursor preview when moving mouse
2021-01-16 18:52:01 +01:00
Emil Ernerfeldt
cc002763ed
Add border around color button
2021-01-16 18:48:37 +01:00
Emil Ernerfeldt
2b48f9723b
[grid] Fix the last corner cases and bugs
2021-01-16 18:37:11 +01:00
Emil Ernerfeldt
07f1b074ca
[grid] Allow putting a separator in a grid
2021-01-16 11:48:30 +01:00
Emil Ernerfeldt
a5ce1ba711
Don't highlight window titles when interacting with the window
...
It is very distracting.
2021-01-16 01:47:21 +01:00
Emil Ernerfeldt
60006cd9c6
Highlight window name when clicking a window
2021-01-16 01:33:41 +01:00
Emil Ernerfeldt
620e43d483
New sleeker visual style
...
Remove a lot of borders, remove transparency, simplify and unify.
2021-01-15 22:23:08 +01:00
Emil Ernerfeldt
6d5eaeeafa
[grid] Make striped slightly wider than contents
2021-01-15 21:21:17 +01:00
Emil Ernerfeldt
b1157ee642
[grid] Option to set spacing
2021-01-15 21:17:56 +01:00
Emil Ernerfeldt
480c6db37f
[grid] Set default row height to interact_size.y
...
It is what we use for horizontal layouts, and makes sense.
2021-01-15 21:17:56 +01:00
Emil Ernerfeldt
03c9cda89b
[grid] Ensure the contents of each grid cell is aligned left+center
2021-01-15 21:17:56 +01:00
Emil Ernerfeldt
db591bc56c
Fix minor alignment/size issue in TextEdit
2021-01-15 21:17:52 +01:00
Emil Ernerfeldt
17d88c8187
[grid] Make the stripes fairly sizes
2021-01-15 18:30:09 +01:00
Emil Ernerfeldt
8e1c7625f1
[refactor] Simplify how ui calls placer after adding a widget
2021-01-15 18:30:09 +01:00