1
0
Fork 0
forked from wry/wry

all: add support for hy3 like tiling

This commit is contained in:
kossLAN 2026-04-10 13:16:35 -04:00
parent a41dbae899
commit cea4187fc0
No known key found for this signature in database
21 changed files with 1237 additions and 48 deletions

View file

@ -259,6 +259,20 @@ impl RendererBase<'_> {
render_intent: RenderIntent,
corner_radius: CornerRadius,
border_width: f32,
) {
self.fill_rounded_rect_z(rect, color, alpha, cd, render_intent, corner_radius, border_width, 0)
}
pub fn fill_rounded_rect_z(
&mut self,
rect: Rect,
color: &Color,
alpha: Option<f32>,
cd: &Rc<LinearColorDescription>,
render_intent: RenderIntent,
corner_radius: CornerRadius,
border_width: f32,
z_order: u32,
) {
if *color == Color::TRANSPARENT {
return;
@ -288,6 +302,7 @@ impl RendererBase<'_> {
corner_radius: cr,
border_width,
scale,
z_order,
}));
}