sliders (wip), fix wlx build

This commit is contained in:
Aleksander
2025-06-28 19:28:05 +02:00
parent 28d58fef59
commit 9d0c0f015c
15 changed files with 323 additions and 60 deletions

View File

@@ -2,7 +2,7 @@ use std::sync::Arc;
use taffy::{AlignItems, JustifyContent, prelude::length};
use crate::{
animation::{self, Animation, AnimationEasing},
animation::{Animation, AnimationEasing},
components::Component,
drawing::{self, Color},
event::{EventListenerCollection, EventListenerKind, WidgetCallback},
@@ -98,9 +98,9 @@ fn anim_hover_out(button: Arc<Button>, widget_id: WidgetID) -> Animation {
)
}
pub fn construct(
pub fn construct<U1, U2>(
layout: &mut Layout,
listeners: &mut EventListenerCollection<(), ()>,
listeners: &mut EventListenerCollection<U1, U2>,
parent: WidgetID,
params: Params,
) -> anyhow::Result<Arc<Button>> {