Skip to main content

euv_ui/component/trace/view/
struct.rs

1use super::*;
2
3/// Props for the [`euv_trace`] component.
4///
5/// The trace takes no settings of its own.
6#[derive(Clone, CustomDebug, Default)]
7pub struct EuvTraceProps {}
8
9/// Props for the [`euv_trace_line`] component.
10///
11/// The line carries the state of the step it describes.
12#[derive(Clone, CustomDebug, Default)]
13pub struct EuvTraceLineProps {
14    /// The state of the step.
15    pub status: Option<EuvTraceStatus>,
16}
17
18/// Props for the [`euv_trace_icon`] component.
19///
20/// The icon takes no settings of its own.
21#[derive(Clone, CustomDebug, Default)]
22pub struct EuvTraceIconProps {}
23
24/// Props for the [`euv_trace_title`] component.
25///
26/// The title takes no settings of its own.
27#[derive(Clone, CustomDebug, Default)]
28pub struct EuvTraceTitleProps {}
29
30/// Props for the [`euv_trace_description`] component.
31///
32/// The description takes no settings of its own.
33#[derive(Clone, CustomDebug, Default)]
34pub struct EuvTraceDescriptionProps {}
35
36/// Props for the [`euv_trace_collapsible`] component.
37///
38/// The collapsible carries the state of the section it folds.
39#[derive(Clone, CustomDebug, Default)]
40pub struct EuvTraceCollapsibleProps {
41    /// Whether the section is open.
42    pub open: Signal<bool>,
43}
44
45/// Props for the [`euv_trace_collapsible_trigger`] component.
46///
47/// The trigger carries the state of the section it folds.
48#[derive(Clone, CustomDebug, Default)]
49pub struct EuvTraceCollapsibleTriggerProps {
50    /// Whether the section is open.
51    pub open: Signal<bool>,
52}
53
54/// Props for the [`euv_trace_collapsible_content`] component.
55///
56/// The content carries the state of the section it belongs to.
57#[derive(Clone, CustomDebug, Default)]
58pub struct EuvTraceCollapsibleContentProps {
59    /// Whether the section is open.
60    pub open: Signal<bool>,
61}