euv_core/scene/dsl/style_props/impl.rs
1use super::*;
2
3/// Zero-cost IDE Go-to-Definition property anchors for `StyleProps`.
4impl StyleProps {
5 /// Sets flex main-axis direction (`row`, `column`, or `FlexDirection`).
6 pub const fn direction() {}
7
8 /// Sets box display mode (`Display::Flex`, `Display::Grid`, `Display::Block`, `Display::None`).
9 pub const fn display() {}
10
11 /// Sets positioning mode (`Position::Relative`, `Position::Absolute`, `Position::Fixed`).
12 pub const fn position() {}
13
14 /// Sets `(top, right, bottom, left)` offsets as `(Option<f32>, Option<f32>, Option<f32>, Option<f32>)`.
15 pub const fn inset() {}
16
17 /// Sets box width (`Length::Px`, `Length::Percent`, `Length::Auto`).
18 pub const fn width() {}
19
20 /// Sets box height (`Length::Px`, `Length::Percent`, `Length::Auto`).
21 pub const fn height() {}
22
23 /// Sets minimum box width constraint (`Length`).
24 pub const fn min_width() {}
25
26 /// Sets minimum box height constraint (`Length`).
27 pub const fn min_height() {}
28
29 /// Sets maximum box width constraint (`Length`).
30 pub const fn max_width() {}
31
32 /// Sets maximum box height constraint (`Length`).
33 pub const fn max_height() {}
34
35 /// Sets preferred width-to-height aspect ratio (`f32`).
36 pub const fn aspect_ratio() {}
37
38 /// Sets inner box padding (`Edges`).
39 pub const fn padding() {}
40
41 /// Sets outer box margin (`Edges`).
42 pub const fn margin() {}
43
44 /// Sets uniform row and column child gap (`f32`).
45 pub const fn gap() {}
46
47 /// Sets solid background fill color (`Color`).
48 pub const fn background() {}
49
50 /// Sets linear gradient background fill (`LinearGradient`).
51 pub const fn gradient() {}
52
53 /// Sets drop shadow elevation (`Shadow`).
54 pub const fn shadow() {}
55
56 /// Sets keyboard focus outline stroke (`Border`).
57 pub const fn focus_ring() {}
58
59 /// Sets pointer hover cursor icon (`CursorIcon`).
60 pub const fn cursor() {}
61
62 /// Controls pointer hit-testing participation (`PointerEvents`).
63 pub const fn pointer_events() {}
64
65 /// Blocks wheel/touch scroll bubbling to ancestor scroll containers (`bool`).
66 pub const fn stop_scroll_propagation() {}
67
68 /// Blocks pointer and click event bubbling to ancestor nodes (`bool`).
69 pub const fn stop_event_propagation() {}
70
71 /// Sets foreground text color (`Color`).
72 pub const fn color() {}
73
74 /// Sets uniform corner radius in logical pixels (`f32`).
75 pub const fn radius() {}
76
77 /// Sets cross-axis child alignment (`AlignItems`).
78 pub const fn align() {}
79
80 /// Sets main-axis content justification (`JustifyContent`).
81 pub const fn justify() {}
82
83 /// Sets flex grow factor (`f32`).
84 pub const fn flex_grow() {}
85
86 /// Sets flex shrink factor (`f32`).
87 pub const fn flex_shrink() {}
88
89 /// Sets flex line wrapping policy (`FlexWrap`).
90 pub const fn flex_wrap() {}
91
92 /// Sets child clipping or scroll behavior (`Overflow`).
93 pub const fn overflow() {}
94
95 /// Sets text font size in logical pixels (`f32`).
96 pub const fn font_size() {}
97
98 /// Sets text font weight (`FontWeight`).
99 pub const fn font_weight() {}
100
101 /// Sets text font family (`FontFamily::Sans`, `FontFamily::Serif`, `FontFamily::Monospace`).
102 pub const fn font_family() {}
103
104 /// Enables or disables italic font slant (`bool`).
105 pub const fn italic() {}
106
107 /// Sets horizontal text alignment (`TextAlign`).
108 pub const fn text_align() {}
109
110 /// Sets text overflow strategy (`TextOverflow::Wrap`, `TextOverflow::Clip`, `TextOverflow::Ellipsis`).
111 pub const fn text_overflow() {}
112
113 /// Enables or disables native text selection (`bool`, inherited by descendant text nodes unless overridden).
114 pub const fn selectable() {}
115
116 /// Sets the highlight fill color used for selected text ranges (`Color`).
117 pub const fn selection_color() {}
118
119 /// Sets subtree opacity multiplier in `[0.0, 1.0]` (`f32`).
120 pub const fn opacity() {}
121
122 /// Sets sibling/portal paint stacking order (`i32`).
123 pub const fn z_index() {}
124
125 /// Sets border `(width, color)` tuple (`(f32, Color)`).
126 pub const fn border() {}
127
128 /// Sets uniform CSS Grid column count (`u16`).
129 pub const fn columns() {}
130}