bevy/crates
davier 340957994d Implement the Overflow::Hidden style property for UI (#3296)
# Objective

This PR implements the `overflow` style property in `bevy_ui`. When set to `Overflow::Hidden`, the children of that node are clipped so that overflowing parts are not rendered. This is an important building block for UI widgets.

## Solution

Clipping is done on the CPU so that it does not break batching.

The clip regions update was implemented as a separate system for clarity, but it could be merged with the other UI systems to avoid doing an additional tree traversal. (I don't think it's important until we fix the layout performance issues though).

A scrolling list was added to the `ui_pipelined` example to showcase `Overflow::Hidden`. For the sake of simplicity, it can only be scrolled with a mouse.
2021-12-19 05:44:28 +00:00
..
bevy_app Update dependencies ron winit& fix cargo-deny lists (#3244) 2021-12-09 20:14:00 +00:00
bevy_asset Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_audio Remove wasm audio feature flag for 2021 (#3000) 2021-11-11 01:17:38 +00:00
bevy_core Rename fixed timestep state and add a test (#3260) 2021-12-12 21:26:40 +00:00
bevy_core_pipeline re-export ClearPassNode (#3336) 2021-12-15 22:04:39 +00:00
bevy_derive Remove vestigial derives (#3343) 2021-12-18 00:09:24 +00:00
bevy_diagnostic Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dylib Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dynamic_plugin Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_ecs Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_ecs_compile_fail_tests Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_gilrs Schedule gilrs system before input systems (#2989) 2021-12-16 00:04:34 +00:00
bevy_gltf Update wgpu to 0.12 and naga to 0.8 (#3375) 2021-12-19 03:03:06 +00:00
bevy_input Add documentation and tests to AxisSettings (#3303) 2021-12-18 20:00:18 +00:00
bevy_internal Fix doc warnings (#3339) 2021-12-18 00:09:23 +00:00
bevy_log Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_macro_utils Fix path used by macro not considering that we can use a sub-crate (#3178) 2021-11-29 23:10:31 +00:00
bevy_math Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_pbr Update wgpu to 0.12 and naga to 0.8 (#3375) 2021-12-19 03:03:06 +00:00
bevy_reflect Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_render Update wgpu to 0.12 and naga to 0.8 (#3375) 2021-12-19 03:03:06 +00:00
bevy_scene Update dependencies ron winit& fix cargo-deny lists (#3244) 2021-12-09 20:14:00 +00:00
bevy_sprite Implement the Overflow::Hidden style property for UI (#3296) 2021-12-19 05:44:28 +00:00
bevy_tasks Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_text Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_transform Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_ui Implement the Overflow::Hidden style property for UI (#3296) 2021-12-19 05:44:28 +00:00
bevy_utils Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_window Fix doc warnings (#3339) 2021-12-18 00:09:23 +00:00
bevy_winit Update dependencies ron winit& fix cargo-deny lists (#3244) 2021-12-09 20:14:00 +00:00
crevice Update wgpu to 0.12 and naga to 0.8 (#3375) 2021-12-19 03:03:06 +00:00