Héctor Ramón Jiménez
d08bc6e45d
Add relabel helper to pane_grid::State
2024-10-24 14:17:38 +02:00
Héctor Ramón Jiménez
55504ffcd4
Rename state::Widget to pane_grid::Memory
2024-10-24 13:55:04 +02:00
Héctor Ramón Jiménez
659669dd58
Remove duplicated maximized state in pane_grid
2024-10-24 13:48:34 +02:00
Cory Forsstrom
5ebd8ac83f
Keep Pane associated to state / layout after swap
...
State continuity is dependent on keeping a node associated
to it's original `Pane` id. When splitting -> swapping
nodes, we need to assign it back to the original `Pane`
to enforce continuity.
2024-10-24 13:05:42 +02:00
Cory Forsstrom
9ac3318357
Retain widget state against incoming panes
...
We can associate each state with a `Pane` and compare
that against the new panes to remove states w/ respective
panes which no longer exist.
Because we always increment `Pane`, new states are always
added to the end, so this retain + add new state approach
will ensure continuity when panes are added & removed
2024-10-24 13:05:42 +02:00
Cory Forsstrom
415fd4f643
Use BTreeMap for Ord iteration of panes
...
This ensures continuity in how panes are iterated on
when building widget state
2024-10-24 13:05:42 +02:00
Héctor Ramón Jiménez
f5bcfec821
Use rustc-hash for most of our HashMap and HashSet instances
2024-04-01 12:00:15 +02:00
Héctor Ramón Jiménez
c723c101d4
Fix PaneGrid mouse interaction when clicking a pane
2024-02-27 02:19:41 +01:00
Joao Freitas
116fb666b0
Add deadband distance before initiating drag action on pane grid
2023-12-15 10:29:43 +00:00
Héctor Ramón Jiménez
6c386e90a1
Fix clippy::trivially-copy-pass-by-ref
2023-09-20 04:33:48 +02:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned
2023-09-20 04:11:52 +02:00
Matthias Vogelgesang
89d9f1d7d2
Fix majority of unresolved documentation links
2023-09-09 18:59:17 +02:00
Héctor Ramón Jiménez
c5a623f32b
Introduce drop helper to pane_grid::State
2023-07-06 07:57:24 +02:00
Joao Freitas
995c7c1ca9
Reuse code
2023-07-06 07:55:50 +02:00
Joao Freitas
e5c9dd54b3
Add ability to drag pane to the pane grid edges & optional style for dragged pane
2023-07-06 07:55:49 +02:00
Joao Freitas
9b5f32ee40
Rename invert -> swap
2023-05-19 12:15:44 +01:00
Joao Freitas
bc590e2d6f
Take pane state internally
2023-05-19 12:12:08 +01:00
Joao Freitas
99aa54cd88
Add pane_grid functionality to split a pane with another pane
2023-05-16 16:12:29 +01:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase
2023-03-04 05:37:11 +01:00