Module clip_shape

Source
Expand description

Axis-aligned and rounded local clip shapes.

§Examples

use ailloli_ui_core::geometry::clip_shape::ClipShape;
use ailloli_ui_core::Rect;
assert!(matches!(ClipShape::rect(Rect::new(0.0, 0.0, 1.0, 1.0)), ClipShape::Rect(_)));

Logical clip regions (GPU strategy is chosen in ailloli_ui_render_wgpu).

Enums§

ClipShape
Axis-aligned or rounded clip region in local coordinates.