1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//! Callback type definitions for UI components.
//!
//! This module provides unified callback type aliases to ensure consistency
//! across all components. All callbacks use `Arc<dyn Fn>` for optimal
//! performance and flexibility in Rust.
use Arc;
use ;
/// Callback for click events.
///
/// # Parameters
/// - `&ClickEvent` - The click event data
/// - `&mut Window` - The window context
/// - `&mut App` - The application context
pub type ClickCallback = ;
/// Callback for click events with element identifier.
///
/// # Parameters
/// - `&ElementId` - The identifier of the clicked element
/// - `&ClickEvent` - The click event data
/// - `&mut Window` - The window context
/// - `&mut App` - The application context
pub type ElementClickCallback = ;
/// Callback for mouse down events with element identifier.
///
/// Useful for context menus or custom mouse interactions.
pub type ElementMouseDownCallback = ;
/// Callback for hover state changes.
///
/// # Parameters
/// - `bool` - Whether the element is hovered
/// - `&mut Window` - The window context
/// - `&mut App` - The application context
pub type HoverCallback = ;
/// Callback for toggle events (e.g., checkbox, switch).
///
/// # Parameters
/// - `bool` - The new toggle state
/// - `&ClickEvent` - The click event data (optional, can be None for programmatic changes)
/// - `&mut Window` - The window context
/// - `&mut App` - The application context
pub type ToggleCallback = ;
/// Callback for value changes with generic value type.
///
/// # Parameters
/// - `T` - The new value
/// - `&mut Window` - The window context
/// - `&mut App` - The application context
pub type ChangeCallback<T> = ;
/// Callback for value changes with event information.
///
/// # Parameters
/// - `T` - The new value
/// - `&ClickEvent` - The click event data
/// - `&mut Window` - The window context
/// - `&mut App` - The application context
pub type ChangeWithEventCallback<T> = ;
/// Callback for generic element identifier events.
///
/// # Parameters
/// - `&ElementId` - The identifier of the element
pub type ElementCallback = ;
/// Callback for window events.
///
/// # Parameters
/// - `&mut Window` - The window context
/// - `&mut App` - The application context
pub type WindowCallback = ;
/// Callback for generic events.
///
/// # Parameters
/// - `T` - The event data
pub type EventCallback<T> = ;