Commit graph

502 commits

Author SHA1 Message Date
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
Cory Forsstrom
ddcf02f9d0
Add background styling to span / rich text 2024-07-28 13:06:57 +02:00
Héctor Ramón Jiménez
555ee3e9c6
Fix lints for Rust 1.80 2024-07-26 11:01:33 +02:00
Héctor Ramón Jiménez
e9e06c8fe2
Add placeholder support to text_editor widget 2024-07-24 14:52:01 +02:00
Héctor Ramón Jiménez
a8c772eb8a
Fix mssing Link generic in From impl for Span 2024-07-23 18:18:11 +02:00
Héctor Ramón Jiménez
65b525af7f
Introduce markdown::Settings 2024-07-21 20:00:02 +02:00
Héctor Ramón Jiménez
9bfaf2840c
Add Link support to rich_text widget 2024-07-21 12:45:05 +02:00
Héctor Ramón Jiménez
c851e67734
Fix text::State downcast in some widgets 2024-07-19 00:59:54 +02:00
Héctor Ramón Jiménez
904704d7c1
Flesh out the markdown example a bit more 2024-07-18 13:14:56 +02:00
Héctor Ramón Jiménez
910eb72a06
Implement rich_text widget and markdown example 2024-07-17 22:04:11 +02:00
Héctor Ramón Jiménez
ffb520fb37
Decouple caching from Paragraph API 2024-07-17 18:50:53 +02:00
Héctor Ramón Jiménez
d9a29f5176
Remove Vector::UNIT constant 2024-07-13 13:41:00 +02:00
Héctor Ramón Jiménez
5e6d994199
Add default and base stylings to text widget 2024-07-13 13:26:37 +02:00
Héctor Ramón Jiménez
a108b2eebe
Add resize_events subscription to window module 2024-07-13 12:53:06 +02:00
Héctor Ramón Jiménez
2513213e89
Add directional border::Radius helpers 2024-07-12 19:35:01 +02:00
Héctor Ramón Jiménez
ab392cee94
Improve Border ergonomics 2024-07-12 19:10:52 +02:00
Héctor Ramón Jiménez
7c3341760d
Improve Padding ergonomics
We expose free functions for creating a `Padding`
and methods with the same name to modify its fields.
2024-07-12 18:43:25 +02:00