Commit graph

518 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
Héctor Ramón Jiménez
28ec6df8f0
Fix cross-axis compression in layout::flex 2024-11-08 18:08:34 +01:00
Héctor Ramón Jiménez
e5f1e31a5c
Rename Overlay::on_event to update 2024-11-06 00:02:46 +01:00
Héctor Ramón Jiménez
f02bfc3f68
Rename Widget::on_event to update 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
dcc184b01b
Replace event::Status in Widget::on_event with Shell::capture_event 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
752403d70c
Split Shell::request_redraw into two different methods 2024-11-05 23:52:58 +01:00
l-const
6c5799e759
Introduce consecutive click distance like other toolkits such as gtk,qt, imgui. 2024-10-14 23:01:07 +03:00
BradySimon
f912d26d64
Add PartialEq derives for widget styles 2024-10-14 20:59:32 +02:00
Héctor
5ee82b2ef0
Merge pull request #2608 from ibaryshnikov/haskell
added physical_key to KeyReleased event
2024-10-02 17:02:13 +02:00
Héctor Ramón Jiménez
32cdc99e92
Add modified_key to keyboard::Event::KeyReleased 2024-10-02 16:53:10 +02:00
bbb651
7a86900a45 Fix various typos
Using https://github.com/crate-ci/typos
2024-09-29 16:37:35 +03:00
bbb651
afecc0f367 Document File{Dropped,Hovered,HoveredLeft} as unsupported on wayland
Blocked on https://github.com/rust-windowing/winit/issues/1881
2024-09-29 16:28:05 +03:00
ibaryshnikov
8b34f99b02 added physical_key to KeyReleased event 2024-09-26 17:13:32 +03:00
Héctor Ramón Jiménez
1383c6a4f7
Fix flex layout of Fill elements in a Shrink cross axis
Instead of collapsing, the `Fill` elements will fill the
cross space allocated by the other `Shrink` elements present
in the container.
2024-09-21 21:14:54 +02:00
Héctor Ramón Jiménez
2a547ae372
Drop short-hand notation support for color! macro
We'd need to use `stringify!` and `str::len` to properly
support the short-hand notation; however, we want the
macro to work in `const` contexts.
2024-09-20 17:27:43 +02:00
Héctor Ramón Jiménez
6ad7c7d308
Show text doc examples in multiple places 2024-09-19 06:10:44 +02:00
Héctor Ramón Jiménez
1448c5bfa5
Implement some From traits for text_input::Id 2024-09-18 20:30:14 +02:00
Héctor Ramón Jiménez
f897442831
Remove outdated window::Id::MAIN reference in docs 2024-09-18 03:12:49 +02:00
Héctor Ramón Jiménez
40ea3dabff
Bump version to 0.13.0 🎉 2024-09-18 02:38:49 +02:00
Héctor Ramón
e9e8e83cca
Merge pull request #2551 from airstrike/mouse-interactions
Expose additional mouse interaction cursors
2024-09-13 17:07:56 +02:00
Héctor Ramón Jiménez
d4b9b4720f
Add Copy and Help variants to mouse::Interaction 2024-09-13 16:58:44 +02:00
Héctor Ramón Jiménez
1cbedfaac7
Rename ResizingDiagonal* to ResizingDiagonally* 2024-09-13 16:55:40 +02:00
Héctor Ramón Jiménez
4e9428bc5a
Fix broken doc links in keyboard::key 2024-09-13 03:18:17 +02:00
Héctor Ramón Jiménez
94c8b9639c
Add modified_key to keyboard::Event 2024-09-13 03:10:40 +02:00
Héctor Ramón Jiménez
cbe91d4a7c
Add physical_key to keyboard::Event
Co-authored-by: Exidex <16986685+Exidex@users.noreply.github.com>
2024-09-13 03:02:07 +02:00
Héctor Ramón Jiménez
7901d4737c
Encourage use of color! macro in Color::parse docs 2024-09-11 01:28:03 +02:00
Héctor Ramón Jiménez
523708b5b1
Rename Color::from_hex to Color::parse 2024-09-11 01:21:12 +02:00
Héctor Ramón Jiménez
934667d263
Improve flexibility of color! macro 2024-09-11 01:21:12 +02:00
Vlad-Stefan Harbuz
816facc204
Add Color::from_hex 2024-09-11 01:21:12 +02:00
Nadji Abidi
190774258c
Add override_redirect for X11 windows
This commit add the `override_redirect` boolean field to the `PlatformSpecific` struct for linux platform.
This is a X11-specific flag allow bypassing window manager mapping for precise positioning of windows.
2024-09-11 00:00:40 +02:00
lufte
e102e89c6a
Implement scroll_by operation for scrollable
`scroll_by` allows scrolling an absolute offset
that is applied to the current scrolling position.
2024-09-10 22:09:03 +02:00
Isaac Marovitz
9edd805c02
Add mouse::Button to mouse::Click 2024-09-09 23:45:15 +02:00
Night_Hunter
d1ceada119
add option for undecorated_shadow on windows (#2285)
* add option for undecorated_shadow on windows

* formated
2024-09-05 11:17:44 +02:00
Héctor Ramón Jiménez
f98328f4f1
Add text::Wrapping support
Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
2024-09-04 21:26:47 +02:00
Héctor Ramón Jiménez
4c883f12b4
Make RichText generic over data structure
... and decouple `markdown::parse` from theming
2024-08-22 02:24:06 +02:00
Andy Terra
6dc71f6f3b Expose additional mouse interaction cursors 2024-08-16 10:44:58 -04:00
Héctor Ramón Jiménez
515772c9f8
Rename operation::chain to then
... and make `focus_*` operations generic over
the output type.
2024-08-15 01:30:24 +02:00
Héctor Ramón
6d6f354b42
Merge pull request #2536 from meithecatte/editor-clipping
text_editor: Avoid rendering text outside the border
2024-08-12 03:07:36 +02:00
Héctor Ramón Jiménez
03472dfd4f
Make Padding affect text_editor clipping 2024-08-12 02:53:23 +02:00
Héctor Ramón Jiménez
422568dee4
Introduce black_box and chain in widget::operation 2024-08-08 01:25:00 +02:00
Héctor Ramón Jiménez
6fbbc30f5c
Implement row::Wrapping widget
If you have a `Row`, simply call `Row::wrap` at
the end to turn it into a `Row` that will wrap its
contents.

The original alignment of the `Row` is preserved
per row wrapped.
2024-08-06 03:22:44 +02:00
Héctor Ramón Jiménez
d4b08462e5
Introduce Svg struct in core::svg 2024-08-04 04:52:55 +02:00
Héctor Ramón Jiménez
3904f0b83a
Remove todo! in core::renderer::null 2024-08-04 04:30:59 +02:00
Héctor Ramón Jiménez
92bd3ecd6b
Introduce Image struct in core::image 2024-08-04 04:30:12 +02:00
Héctor Ramón Jiménez
0ceee1cf3a
Implement image support for canvas widget 2024-08-04 03:28:43 +02:00
Héctor Ramón Jiménez
e84070acef
Implement From<&Handle> for image::Handle 2024-08-03 16:20:12 +02:00
Héctor Ramón Jiménez
ca8ebb16a6
Implement strikethrough support for rich_text spans 2024-07-28 17:45:11 +02:00
Héctor Ramón Jiménez
bf16d1ddcd
Implement underline support for rich_text spans 2024-07-28 15:09:54 +02:00
Héctor Ramón Jiménez
2796a6bc97
Add padding to text::Span 2024-07-28 13:58:14 +02:00
Héctor Ramón Jiménez
f7fe1edcbb
Improve ergonomics of span background highlighting 2024-07-28 13:44:08 +02:00