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
Clark Moody
27b42ca6b6
Allow overlay from pane grid title bar
2021-06-17 14:51:23 -05:00
Yusuf Bera Ertan
83d19689c8
docs: update all 0.2 github links to 0.3
2021-06-14 21:01:37 +03:00
Héctor Ramón
d46dd67a91
Update disabled example of Button in docs
2021-06-10 18:58:40 +07:00
Jonas Matser
e66120b9c1
Fix failing doctests
2021-06-10 18:28:38 +07:00
Jonas Matser
dbc1181011
Adds doc comment for disabled button
...
Makes disabled button behavior consistent in web
2021-06-10 18:28:37 +07:00
Héctor Ramón
3051d4ec76
Introduce on_scroll event in Scrollable
2021-06-04 20:46:27 +07:00
Héctor Ramón
827577c179
Introduce snap_to and unsnap to scrollable::State
2021-06-04 20:09:15 +07:00
Yusuf Bera Ertan
f7d6e40bf0
feat(native): Make scrollable programmatically scrollable for some use cases, add snap_to_bottom by default
2021-06-04 19:29:58 +07:00
Héctor Ramón
ef5f46bcdd
Use intra-doc links in Toggler docs
2021-06-03 20:28:36 +07:00
Héctor Ramón
a32ce271bd
Rename text_align to text_alignment in Toggler
2021-06-03 20:27:32 +07:00
Kaiden42
c0cfd9d5cf
Update documentation of Toggler
2021-06-03 20:21:55 +07:00