Emil Ernerfeldt
b72184dc7e
clippy fix
4 years ago
Emil Ernerfeldt
5d0c71350d
Add `fn Memory::gained_kb_focus() -> bool` query
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
fa4752f315
Add the syntect feature to egui_demo_app
4 years ago
Emil Ernerfeldt
9c8439d053
Add some helper functions to Response
4 years ago
Emil Ernerfeldt
fb2db4940e
Release 0.10.0 - Plot and polish
4 years ago
Emil Ernerfeldt
f793ac7f3e
[demo] Remove dead code
4 years ago
Emil Ernerfeldt
8fb1472560
Add glsl files to egui_web and egui_glium includes
4 years ago
Emil Ernerfeldt
8047a0f87f
Publish new web demo
4 years ago
Emil Ernerfeldt
1fb3b43dfc
[demo] Improve painting demo slightly
4 years ago
Emil Ernerfeldt
e417fac52e
Fix web shaders
Got broken in https://github.com/emilk/egui/pull/187
4 years ago
Emil Ernerfeldt
a9a49f19ca
cargo update
4 years ago
Emil Ernerfeldt
24d68cc55e
Merge epi/CHANGELOG.md into eframe/CHANGELOG.md
4 years ago
Emil Ernerfeldt
84cc227f11
eframe: always provide a texture allocator
4 years ago
Emil Ernerfeldt
fdb1aa6bec
improve documentation
4 years ago
Emil Ernerfeldt
8be37b3d6c
Add Response::has_kb_focus()
Closes https://github.com/emilk/egui/issues/196
4 years ago
Emil Ernerfeldt
834078a476
Turn off the cursor preview when hovering a TextEdit
4 years ago
Emil Ernerfeldt
d3fd51d6a4
Add Response::changed(): see if e.g. text was entered or slider dragged
4 years ago
Patrik Höglund
a859b2a26e
Add icon support to eframe ( #193 )
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
4 years ago
Emil Ernerfeldt
bdbc59455c
Improve documentation for the most common widgets
4 years ago
Emil Ernerfeldt
814f8c0dd8
Add support for all integers in DragValue and Slider (except 128-bit)
4 years ago
Emil Ernerfeldt
02a65132e4
Add epi::App::initial_window_size to control initial native window size
4 years ago
Emil Ernerfeldt
049a7b0382
Make DragValue::from_get_set public
Closes https://github.com/emilk/egui/issues/188
4 years ago
Emil Ernerfeldt
5f6a468812
Add Context::set_pixels_per_point to control the scale of the UI
4 years ago
Emil Ernerfeldt
c601db5956
refactor: move tooltip state handling out of memory
4 years ago
Emil Ernerfeldt
67623919d7
refactor: move DragValue state
4 years ago
Emil Ernerfeldt
24a1c3136c
Add a pull_request_template.md
4 years ago
Emil Ernerfeldt
82350a2f1e
Improve documentation
4 years ago
Kayo Phoenix
c9919daa11
Added shaders on GLSL 1.2 ( #187 )
* Added shaders on GLSL 1.2
- Used `glium::program` to create shaders
- Moved shaders code to its own sources and include it as str
- Added shaders implementation on GLSL which allows run egui on old hardware
(Raspberry Pi 1/zero in game again)
* Moved webgl shaders code to sources in `shader` subdir
* Added GLSL ES shaders to glium backend to support OpenGL ES
* Described changes related to GLSL versions support
4 years ago
Emil Ernerfeldt
ebc2486d22
Slider: use a DragValue for the value, and implement suffix/prefix
4 years ago
Emil Ernerfeldt
32f35c6251
Implement "Smart Aim" for DragValue
4 years ago
Emil Ernerfeldt
7ac26b84b1
DragValue: handle slowly dragging a value with limited precision
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
4e041185f1
Add module special_emojis with apple, linux, windows & github logos
4 years ago
Emil Ernerfeldt
9b58d5d4d9
color picker: just copy the r,g,b,a values without a "rgba(…)" wrapper
4 years ago
Emil Ernerfeldt
ac356e2bd8
Add a link from the crate-level docs to the online egui web demo
4 years ago
Emil Ernerfeldt
6354709fe1
[demo] Link to the egui docs from the widget gallery
4 years ago
Emil Ernerfeldt
040553da78
impl<F> Widget for F where F: FnOnce(&mut Ui) -> Response
This enables functions that return `impl Widget`, so that you can
create a widget by just returning a lambda from a function.
For instance: `ui.add(toggle(bool))` (instead of `toggle(ui, bool)`)
4 years ago
Emil Ernerfeldt
6fe70e685b
Simplify and unify colors of selectable widgets
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
d5bb85b245
Add InputState::is_still to compliment InputState::is_moving
4 years ago
Emil Ernerfeldt
9c3b7d719b
Bug fix: child painters now inherit color tint (e.g. grayed out)
4 years ago
Emil Ernerfeldt
21c99e1130
Add Ui::hyperlink_to
4 years ago
Emil Ernerfeldt
9e38674d13
[demo] Alwyas start with widget gallery
4 years ago
Emil Ernerfeldt
0f13fff24b
Assign default colors to plot lines if not explicitly set
4 years ago
Emil Ernerfeldt
a19140ec67
A simple 2D plot library
4 years ago
Emil Ernerfeldt
7dad76b913
Use explicit `epaint` over `paint` alias (re-export)
egui reexports the `epaint` crate both under its original name
and under the alias `paint` (for historical reasons)
4 years ago
Emil Ernerfeldt
6d255cd179
Use explicit `emath` to `math` alias
egui exports `emath` under its original name AND under the alias `math`
(for historical reasons).
4 years ago
Emil Ernerfeldt
c376d0bb7e
[emath] RectTransform: transforms Pos2 from one Rect to another
Very useful for transforming coordinate systems, e.g. for painting
4 years ago