cosmic-comp/src/shell/element
Ian Douglas Scott 94fecec9cb Add a SplitRenderElements type, with useful methods
`(w_elements, p_elements)` tuples are used in a bunch of places. A
struct with named fields is generally an improvement just due to the
fact the order is non-obvious.

But we can also add methods. In particular,
`extend_from_workspace_elements` abstracts out some of the more
redundant code in `workspace_elements`.

It would be nice to avoid allocation everywhere, but iterators would
complicate lifetimes, run into issues with needing multiple mutable
borrows to things like the `Renderer`, and be awkward in certain
functions without generator syntax. In any case, cosmic-comp already
relies on allocating vectors here.

If this abstraction is commonly useful in compositors, perhaps it could
be moved to Smithay.
2024-07-15 17:12:05 +02:00
..
stack chore: libcosmic update 2024-07-08 12:11:58 +02:00
mod.rs Add a SplitRenderElements type, with useful methods 2024-07-15 17:12:05 +02:00
resize_indicator.rs feat: runtime configurable keybindings 2024-07-01 15:20:23 +02:00
stack.rs Add a SplitRenderElements type, with useful methods 2024-07-15 17:12:05 +02:00
stack_hover.rs Fix Text for the floating stacks hint is gone #387 2024-03-27 18:10:33 +01:00
surface.rs Add a SplitRenderElements type, with useful methods 2024-07-15 17:12:05 +02:00
swap_indicator.rs Update libcosmic/iced 2024-03-22 21:54:45 +01:00
window.rs Add a SplitRenderElements type, with useful methods 2024-07-15 17:12:05 +02:00