Commit graph

602 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
54a9a232f8
Draw scrollbar in Widget::draw for Scrollable 2021-10-18 14:48:33 +07:00
Héctor Ramón Jiménez
a4f4d83161
Introduce fill_rectangle to Renderer trait 2021-10-18 14:47:49 +07:00
Héctor Ramón Jiménez
dfceee99aa
Implement Widget::draw for Scrollable
Rendering the scroller is still WIP
2021-10-14 17:15:29 +07:00
Héctor Ramón Jiménez
7c4738735b
Implement Widget::draw for Container 2021-10-14 17:05:47 +07:00
Héctor Ramón Jiménez
f8895a42b0
Implement Widget::draw for Row 2021-10-14 17:05:37 +07:00
Héctor Ramón Jiménez
1ab2afe72d
Implement Widget::draw for Column 2021-10-14 17:05:08 +07:00
Héctor Ramón Jiménez
3a0c503db9
Implement Widget::draw for Text 2021-10-14 17:00:38 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native 2021-10-14 16:07:22 +07:00
Héctor Ramón Jiménez
a0ad399622
Refactor alignment types into an alignment module 2021-09-20 15:14:08 +07:00
Héctor Ramón Jiménez
5fae6e59ff
Introduce and use CrossAlign enum for Column and Row 2021-09-20 15:12:43 +07:00
Cory Forsstrom
95e4791a1e
Improve readability of Align::Fill branching 2021-09-20 15:11:06 +07:00
Cory Forsstrom
e89bbe8a79
Calc fill cross and use for all children 2021-09-20 15:11:06 +07:00
Cory Forsstrom
be51cac3d7
Add Align::Fill variant 2021-09-20 15:11:06 +07:00
Héctor Ramón
099981cfc2
Merge pull request #1047 from iced-rs/revert-menus
Revert system menus support
2021-09-15 15:50:25 +07:00
Héctor Ramón Jiménez
c0ab988842
Revert system menus support
The current implementation has some important issues on Windows. We will reintroduce the feature once we figure them out!

I have kept some of the changes in #945, like the new `keyboard::Modifiers` powered by `bitflags`.
2021-09-15 15:31:40 +07:00
Héctor Ramón Jiménez
643500bbdf
Use Option to encode empty text case in hit test methods 2021-09-15 14:49:13 +07:00
Héctor Ramón Jiménez
2c630809d4
Write missing docs and Debug implementations for native 2021-09-13 11:24:22 +07:00
Héctor Ramón Jiménez
6fce35393f
Hide implementation details of Command in iced_futures 2021-09-02 15:50:32 +07:00
Héctor Ramón Jiménez
c9711ff48f
Handle clipboard::Action in iced_winit shell 2021-09-02 13:46:01 +07:00
Héctor Ramón Jiménez
76698ff2b5
Make Command implementations platform-specific
This allows us to introduce a platform-specific `Action` to both `iced_native`
and `iced_web` and remove the `Clipboard` from `Application::update` to maintain
purity.

Additionally, this should let us implement further actions to let users query
and modify the shell environment (e.g. window, clipboard, and more!)
2021-09-02 13:29:34 +07:00
Héctor Ramón Jiménez
7614127d36
Rename HitTestResult to Hit
... and also move it to a new `text` module in `iced_core`
2021-08-26 14:41:33 +07:00
Tom
aa63841e2c Implement textual hit testing 2021-08-21 10:31:26 -07:00
Héctor Ramón
a7c40665fe
Merge pull request #652 from twitchyliquid64/text_input_fix
text_input: Do not capture Tab/Up/Down keys
2021-08-12 12:58:08 +07:00
Héctor Ramón
a08e4ebccb
Merge pull request #971 from tarkah/fix/pane-dragging-overlay
fix: allow titlebar overlays to close when dragging pane
2021-07-28 15:47:13 +07:00
Héctor Ramón Jiménez
6618c6bdd9
Simplify is_picked expression in pane_grid 2021-07-28 15:36:30 +07:00
Cory Forsstrom
be65a847b0 Prevent body events pane is picked / dragging 2021-07-27 15:41:45 -07:00
Cory Forsstrom
2a49e415d2 Fix overlay in titlebar when initiating drag 2021-07-27 15:25:28 -07:00
Héctor Ramón Jiménez
78b345bc59
Allow PickList selection with mouse scroll only if command is pressed
This should avoid unintended interactions when using a `PickList` inside
a `Scrollable`
2021-07-27 12:48:14 +07:00
Cory Forsstrom
81eb3c276d Add window::Event::Moved 2021-07-26 12:36:13 -07:00
Héctor Ramón
dc0b96ce40
Merge pull request #872 from 13r0ck/master
add scrolling to pick_lists
2021-07-22 21:38:22 +07:00
Héctor Ramón Jiménez
46aab24d91
Enable scroll selection for PickList only when scroll is discrete 2021-07-22 21:28:21 +07:00
Héctor Ramón Jiménez
6069e90c9b
Abstract and improve scroll logic in PickList 2021-07-22 21:15:35 +07:00
Héctor Ramón
587dbbca42
Merge pull request #776 from AldoMX/master
Added `select_all` method to `TextInput`.
2021-07-22 20:48:03 +07:00
Héctor Ramón Jiménez
a866f8742e
Avoid cloning placeholder for PickList unnecessarily during draw 2021-07-22 20:22:38 +07:00
Héctor Ramón Jiménez
26b2a824a9
Remove duplication of measuring logic in PickList 2021-07-22 20:09:13 +07:00
Héctor Ramón Jiménez
45bd685f7c
Hash placeholder in hash_layout implementation for PickList 2021-07-22 19:13:00 +07:00
Jon Pacheco
fa433743b3
feat: add placeholders to pick_list
see issue #726
2021-07-22 19:12:56 +07:00
Héctor Ramón
82488de3ab
Merge pull request #885 from Chiheisen/master
image viewer: Only calculate viewport based width/length for Length::Unit|Shrink
2021-07-22 18:37:11 +07:00
Héctor Ramón
8e29709b69
Merge pull request #945 from derezzedex/menu
feat: add menus
2021-07-20 21:44:33 +07:00
Héctor Ramón Jiménez
4dc1bba5cd
Remove unnecesary use of Option::unwrap
... in `overlay` implementation for `pane_grid::TitleBar`
2021-07-15 16:49:19 +02:00
Héctor Ramón Jiménez
2993e9b466
Fix implementation of Widget::overlay for pane_grid::TitleBar 2021-07-15 16:43:52 +02:00
Héctor Ramón Jiménez
5df2a92f28
Force Application::Message to implement Clone
A `Message` should represent an application event (e.g. user
interactions, command results, subscription results...). Therefore, it
should always consist of pure, cloneable data.
2021-07-13 21:15:07 +02:00
Héctor Ramón Jiménez
b57d567981
Use bitflags for keyboard::Modifiers 2021-07-12 22:01:57 +02:00
Héctor Ramón Jiménez
735cfb7908
Move menu module from iced_native to iced_core 2021-07-12 21:44:01 +02:00
Héctor Ramón Jiménez
1428e9180a
Make Menu API a bit more functional 2021-07-12 21:38:54 +02:00
Richard
9fc5ad23ed Initial menu implementation 2021-07-05 16:24:10 -03:00
Richard
96a462d2f2
Use new enum variant and new winit repo 2021-06-25 14:14:03 +02:00
Richard
9ae22b58d8
Added events for url handling and create example 2021-06-25 14:14:03 +02:00
Héctor Ramón
b62fcca9b9
Merge pull request #915 from yusdacra/docs/update-links
docs: update all 0.2 github links to 0.3
2021-06-22 12:19:38 +02:00
Héctor Ramón Jiménez
15c17a7250
Use match statement in Content::overlay
... to improve readability a bit.
2021-06-22 11:36:36 +02:00