rustbasic and Emil Ernerfeldt
47c0aeb7b9
Add Label::halign ( #4975 )
...
Function to specify `Align` to `Label`
There are cases where you want to display `Label` on the left or right
regardless of other `Layout` specifications.
Before : Note the part showing the rust source code.

After : Note the part showing the rust source code.

---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2024-08-26 15:38:00 +02:00
rustbasic and Antoine Beyeler
b84a1e2a29
Add additional cases and the egui inspectors to the test_ui_stack example ( #4992 )
...
Improvement: test_ui_stack
---------
Co-authored-by: Antoine Beyeler <49431240+abey79@users.noreply.github.com >
2024-08-26 15:32:27 +02:00
rustbasic
555ea9f7aa
Refactor: use if let instead of for on Options ( #4934 )
...
This is recommended by `rust-analyzer`
It might be a good idea to fix this to appease `rust-analyzer`.
2024-08-26 15:31:26 +02:00
rustbasic
ba80038f3d
egui_extras: Fix file mime from path (wrong feature name) (#4933 )
...
Fix: features "mime_guess" to "file"
typo: 1
Is this what you intended?
If you intended to add `mime_guess` to `cargo.toml`, please drop it.
2024-08-26 11:24:08 +02:00
rustbasic
fd0ce5fb65
Add TextWrapMode in Style ui ( #4994 )
...
Add `TextWrapMode` in `Style ui`
I think this would be useful for debugging.
2024-08-26 09:41:54 +02:00
rustbasic
76fe6c855b
Fix: Backspace not working after IME input ( #4912 )
...
Fix: Changed the handling method of `Ime::Preedit(_, None)`
Fix: backspace fail after ime input
* Related #4358
* Related #4430
* Related #4436
* Related #4794
* Related #4896
* Closes #4908
Issues: backspace fail after ime input
* #4908 (Chinese)
Changed the handling method of `Ime::Preedit(_, None)`
2024-08-05 11:09:51 +02:00
rustbasic
378df03910
Clamp margin values in Margin::ui ( #4873 )
...
limit margin value in `settings.ui()`.
Issues: If the `window margin` of `settings.ui()` becomes -10.0 or less,
a panic occurs.
2024-07-30 20:11:33 +02:00
rustbasic
20359a870f
eframe: Improve glow context switching ( #4814 )
...
Improved `change_gl_context()`
**Before:**
Create a new `not_current_glcontext`.
**After:**
If `not_current_glcontext` exists, apply it. Otherwise, create it.
This will make the program smoother when dragging, etc.
2024-07-11 11:43:21 +02:00
rustbasic
fcd02bd7d1
Handle the IME event first in TextEdit to fix some bugs ( #4794 )
...
Handle the `IME` event first
There is a need to handle the Ime event first.
Fix Issues : When you press `BackSpace`, the entire text is erased, and
when you press another letter, it appears again.
Fix Issues : When you press `Left`, the character being entered will be
copied once more.
Fix Issues : When you press `Enter`, `Enter` with `repeat` set is
entered and `Enter` is entered twice.
Fix Issues : When you press a key in `IME` mode, `repeat` is often set.
Fix Issues : Since you may be selecting something in the IME, this also
disables the `Arrow` keys.
2024-07-07 22:03:13 +02:00
rustbasic
cd1e4c573a
Remove dead code (EpiIntegration::frame_start) ( #4790 )
...
`frame_start` appears to be deprecated now.
( Am I wrong? )
It would be a good idea to add `#[allow(dead_code)]` or remove
`frame_start`.
2024-07-07 08:52:14 +02:00
rustbasic
ad597a8491
Add Image::uri() ( #4720 )
...
`uri()` for image
The advantages of this are :
1. No need for `ctx()` and `source()`
2. Displays `name.gif#0` as `name.gif`
2024-07-05 08:20:20 +02:00
rustbasic
d9c5fb04ae
Fix dragging of custom_window_frame example on Windows ( #4656 )
...
* Related #4592
* Closes #4647
Fix dragging of custom_window_frame on Windows (re-edited)
2024-06-19 16:19:41 +02:00
rustbasic
d3ea90f5ef
Fix dragging of custom_window_frame on Windows ( #4592 )
...
Fix: example `custom_window_frame`
Sending `ViewportCommand::StartDrag` when the secondary button is
clicked in Windows will disable drag, and drag will not be possible with
the primary button afterwards.
So in the example `custom_window_frame`, modified to use
`dragged_by(PointerButton::Primary)` instead of
`is_pointer_button_down_on()`.
2024-05-31 15:22:46 +02:00
rustbasic
3b3ce22adc
Make sure plot size is positive ( #4429 )
...
* Closes #4425
Fix: in Plot, Minimum values for screen protection.
2024-05-11 16:49:27 +02:00
rustbasic
66d2b3ffe4
Treat Event::PointerGone as PointerEvent::Released ( #4419 )
...
* Closes #4406
* Closes #4418
If `Event::PointerGone` occurs, it is treated as
`PointerEvent::Released`.
2024-05-11 13:17:58 +02:00
rustbasic and Emil Ernerfeldt
27a22f991d
Fix : In Windows, the 'egui_demo_app' screen does not appear. ( #4410 )
...
* Related #4337
* Closes #4409
Fix : In Windows, the 'egui_demo_app' screen does not appear After the
#4337 update.
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2024-05-11 00:41:02 +02:00
rustbasic
a9efbcff36
IME for chinese ( #4436 )
...
* Completed.
* Closes #4430
IME for chinese
2024-05-11 00:09:14 +02:00
rustbasic and Emil Ernerfeldt
436c671331
Improve IME support with new Event::Ime ( #4358 )
...
* Closes #4354
Fix: can't repeat input chinese words
AND
For Windows :
ImeEnable
ImeDisable
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2024-04-22 12:43:07 +02:00
rustbasic
d2c4269240
Fix : take rounding into account when using Slider::trailing_fill ( #4308 )
...
Handles `rounding` when doing trailing_fill on the rail of `Slider`.
We can see this by setting the rounding to around 8.0
```
ui.visuals_mut().widgets.inactive.rounding = Rounding::same(8.0);
```
Before : There is a little bit of blue painted on the left end.

After : Fix

2024-04-21 11:49:14 +02:00
rustbasic
21835c3176
Fix ViewportCommand::InnerSize not resizing viewport on Wayland ( #4211 )
2024-03-30 20:09:28 +01:00
rustbasic and Emil Ernerfeldt
d410bc5b9a
Fix example/test_viewports title change ( #4221 )
...
fix : `example/test_viewports` title Change accurately
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2024-03-25 12:40:49 +01:00
rustbasic
21d045e8ef
Fix: IME bug when typing Chinese characters ( #4210 )
...
* Closes #4209
Fix: IME bug when typing Chinese characters
2024-03-22 12:27:08 +01:00
rustbasic and Emil Ernerfeldt
769199648d
Prevent egui::Window from becoming larger than Viewport ( #4199 )
...
* Closes #3987
* Closes #3988
There is a need to prevent egui::Window from becoming larger than the
Viewport.
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2024-03-21 13:47:25 +01:00
rustbasic
7d3d7ce0ca
typos : intersects_ray() ( #4201 )
...
typos : intersects_ray()
2024-03-21 12:10:02 +01:00
rustbasic and Emil Ernerfeldt
861a1b6225
Adjustable Slider rail height ( #4092 )
...
Adjustable Slider rail height

---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2024-03-21 10:48:40 +01:00
rustbasic
1b34289608
Fix bug in Context::parent_viewport_id ( #4190 )
...
* Closes #4084
Fix : Display parent viewport id Issues
2024-03-20 12:55:44 +01:00
rustbasic
f019032033
TextEdit: fix crash when hitting SHIFT + TAB around non-ASCII text ( #3984 )
...
* Closes #3846
* Closes #3878
Dear emilk.
Leaving aside other function,
I think this is all you need to fix to patch the panic that occurs when
Shift + TAB.
Thank you, emilk.
2024-03-12 11:21:33 +01:00
rustbasic
385daeb354
Fix IME bug where currently typed characters got copied
...
* Closes #3730
Fix IME: Currently typed characters get copied when switching TextEdit
fields
2024-03-08 10:00:28 +01:00
rustbasic
68eb3db648
Fix high CPU usage on Windows when app is minimized ( #3985 )
...
patch #3982
2024-02-06 13:24:49 +01:00
rustbasic
e3cfcf7d2e
eframe: don't call App::update on minimized windows ( #3877 )
...
* Closes #3321
2024-01-25 10:15:38 +01:00
rustbasic and Emil Ernerfeldt
7733d1d87c
Bug Fix : Response::is_pointer_button_down_on is now false the frame the button is released ( #3833 )
...
* Closes #3809
* Closes #3669
* Closes #3791
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2024-01-17 16:33:11 +01:00
rustbasic
7bde0252c1
Keep ViewportInfo::maximized and minimized up-to-date on Windows ( #3831 )
...
This works fine on Windows.
2024-01-17 13:01:33 +01:00