Commit graph

644 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
fe4dfeafdb
Wire up style to PickList and overlay::Menu 2021-10-28 15:41:12 +07:00
Héctor Ramón Jiménez
4a11cbd994
Implement Widget::mouse_interaction for PaneGrid
... and fix rendering of drag interaction in `PaneGrid` by
introducing an explicit `with_translation` method to `Renderer`
and simplifying the `with_layer` and `Clip` primitive.
2021-10-25 16:35:02 +07:00
Héctor Ramón Jiménez
41394b4e90
Implement Widget::draw for PaneGrid 2021-10-25 15:37:28 +07:00
Héctor Ramón Jiménez
1afbc98544
Implement Widget::draw for Image 2021-10-25 15:03:57 +07:00
Héctor Ramón Jiménez
e7ae442231
Implement Widget::mouse_interaction for Checkbox 2021-10-21 19:07:30 +07:00
Héctor Ramón Jiménez
1397be38ca
Implement Widget::draw for Checkbox 2021-10-21 19:06:22 +07:00
Héctor Ramón Jiménez
7c08c6bd13
Remove Renderer trait for Checkbox 2021-10-21 18:50:27 +07:00
Héctor Ramón Jiménez
b6ae87ae55
Implement Widget::mouse_interaction for Radio 2021-10-20 19:19:20 +07:00
Héctor Ramón Jiménez
47c8f6ceee
Implement Widget::draw for Radio 2021-10-20 19:19:13 +07:00
Héctor Ramón Jiménez
d39ad717ed
Wire up styling to Radio in iced_native 2021-10-20 19:18:40 +07:00
Héctor Ramón Jiménez
cc560aca18
Implement Widget::mouse_interaction for TextInput 2021-10-20 18:45:45 +07:00
Héctor Ramón Jiménez
e914888f57
Implement Widget::draw for TextInput 2021-10-20 18:40:39 +07:00
Héctor Ramón Jiménez
954d6349a8
Implement Widget::mouse_interaction for Slider 2021-10-20 16:28:27 +07:00
Héctor Ramón Jiménez
c800fd07c3
Implement Widget::draw for Slider 2021-10-20 16:28:12 +07:00
Héctor Ramón Jiménez
11bcb13427
Wire up styling to Slider in iced_native 2021-10-20 15:50:42 +07:00
Héctor Ramón Jiménez
4f5f444d7c
Implement Widget::mouse_interaction for Button 2021-10-18 16:59:42 +07:00
Héctor Ramón Jiménez
9a4fb82b58
Implement Widget::mouse_interaction for Scrollable 2021-10-18 16:53:50 +07:00
Héctor Ramón Jiménez
14dc750149
Implement Widget::mouse_interaction for Row 2021-10-18 16:48:39 +07:00
Héctor Ramón Jiménez
519a0cc233
Implement Widget::mouse_interaction for Column 2021-10-18 16:48:08 +07:00
Héctor Ramón Jiménez
5130e98dc8
Implement Widget::mouse_interaction for Container 2021-10-18 16:48:02 +07:00
Héctor Ramón Jiménez
be97a5d502
Introduce mouse_interaction method to Widget trait 2021-10-18 16:43:18 +07:00
Héctor Ramón Jiménez
7a876c8b29
Implement Widget::draw for Button 2021-10-18 16:10:16 +07:00
Héctor Ramón Jiménez
3140cdc4ba
Wire up styling to Button in iced_native 2021-10-18 16:02:30 +07:00
Héctor Ramón Jiménez
945f69e567
Draw styling in Widget::draw for Container 2021-10-18 15:44:03 +07:00
Héctor Ramón Jiménez
d61cb58d92
Wire up container styling to iced_native 2021-10-18 15:36:32 +07:00
Héctor Ramón Jiménez
edea093350
Move Defaults from iced_graphics to iced_native 2021-10-18 15:19:04 +07:00
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