Héctor Ramón Jiménez
3320ac1126
Use f32 for Padding
2023-02-17 16:09:49 +01:00
Héctor Ramón Jiménez
0e9c1ab192
Add Renderer argument to operate
2022-12-22 14:29:24 +01:00
tarkah
f1ada7a803
Allow &mut self in overlay
2022-11-29 12:17:29 -08:00
Ryan Scheidter
b0678f4c75
Implement Widget::operate for PaneGrid
2022-11-14 00:09:48 +01:00
Héctor Ramón Jiménez
1480ab2030
Fix broken documentation links
2022-11-10 00:10:53 +01:00
Héctor Ramón Jiménez
18fb74f200
Introduce Custom variants for every style in the built-in Theme
2022-11-09 04:05:31 +01:00
Cory Forsstrom
7de9d2475d
Couple layout & content to avoid desync
2022-11-08 08:49:26 -08:00
Cory Forsstrom
853ff4bcf4
Add pub method for getting maximized value
2022-11-03 11:32:36 -07:00
Cory Forsstrom
951fbc83ff
Remove maximized when split occurs
2022-11-03 08:02:20 -07:00
tarkah
2f6c71d99a
Fix doc links
2022-11-02 20:04:19 -07:00
tarkah
988515d57f
Add state::Scoped & rename Elements as Contents
2022-11-02 20:04:16 -07:00
Cory Forsstrom
b761ab5e1d
Add maximize / restore to PaneGrid
2022-11-02 17:05:40 -07:00
Cory Forsstrom
dca99f35e9
Fix pane grid mouse interactions
...
- Use `grabbing` interaction while dragging
- Ignore grab interaction when dragging is disabled
2022-10-17 14:38:24 -07:00
Cory Forsstrom
20fd1f2047
Render pane grid titlebar after body
2022-10-07 09:03:44 -07:00
Matthew Kennerly
ea2df18147
When pane grid title bar is cramped, still show content until hover and allow dragging where content would've been
2022-08-27 06:25:12 +08:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API
2022-07-27 06:49:20 +02:00
Poly
15f794b7a8
Address Clippy lints
2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
fa55dff61d
Merge branch 'master' into theming
2022-07-08 19:31:45 +02:00
Héctor Ramón Jiménez
97555e67af
Implement theme styling for Container
2022-06-07 04:11:24 +02:00
mtkennerly
20780f36d1
Prevent pane grid title bar content and controls from overlapping
2022-06-07 07:30:44 +08:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
...
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Héctor Ramón Jiménez
68e9eb0a9b
Fix broken intra-doc links in documentation
2022-04-30 14:20:52 +02:00
Héctor Ramón Jiménez
6dd187ff08
Implement pure version of PaneGrid widget
2022-03-14 17:44:25 +07:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait
2022-02-23 21:31:54 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event
2022-01-11 14:12:28 +07:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
...
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
631e95ee0b
Move viewport argument to last position in mouse_interaction methods
...
This keeps the order of the arguments consistent with `draw`.
2021-11-02 15:03:29 +07:00
Héctor Ramón Jiménez
c330bb1b69
Fix mouse_interaction using wrong layout in PaneGrid
...
... when no titlebar is present.
2021-11-01 17:39:46 +07:00
Héctor Ramón Jiménez
40a5de5811
Reintroduce Box for style_sheet in Container
2021-10-31 17:02:59 +07:00
Héctor Ramón Jiménez
0aafcde0ef
Remove widget module re-exports in iced_native
2021-10-31 16:14:34 +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
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
03b3493138
Remove trait-specific draw logic in iced_native
2021-10-14 16:07:22 +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
Cory Forsstrom
be65a847b0
Prevent body events pane is picked / dragging
2021-07-27 15:41:45 -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
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
Héctor Ramón
8a3b71df8b
Replace ignored doc-tests with additional documentation for Padding
2021-06-01 19:45:47 +07:00
Ben LeFevre
fe0a27c56d
Add support for asymmetrical padding
2021-06-01 19:05:39 +07:00
Clark Moody
d4c5f3ee95
Enable event handling within the title elements
...
Shrink the pick area to avoid both the controls and the title elements.
Handle events and merge title area event status with control events.
2021-05-24 16:37:47 -05:00
Héctor Ramón
7eb5127748
Merge pull request #770 from hecrj/feature/clipboard-write
...
Write clipboard support and `TextInput` copy and cut behavior
2021-03-10 21:13:07 +01:00
Héctor Ramón
939fcfe9db
Merge pull request #771 from hecrj/fix/tooltip-layering
...
Reposition `Tooltip` inside `viewport` bounds
2021-03-10 03:28:04 +01:00
Héctor Ramón Jiménez
21971e0037
Make Clipboard argument in Widget trait mutable
2021-03-10 01:59:02 +01:00
Héctor Ramón Jiménez
bbca5c4bde
Call hash_layout for controls in pane_grid::TitleBar
2021-03-09 04:49:17 +01:00
Héctor Ramón Jiménez
f52f8c1337
Fix viewport argument in PaneGrid draw calls
2021-02-27 03:36:46 +01:00
Héctor Ramón Jiménez
e7344d03b4
Use BTreeMap for splits and regions in pane_grid
...
This preserves ordering between calls to update and draw logic.
2021-01-07 21:07:44 +01:00