Skip to main content

swiftui_native/views/
generated.rs

1//! Generated modifiers.
2
3use super::*;
4use crate::abi;
5use crate::resolve;
6//
7// Plain arguments in, `some View` out. Nothing here is hand-mangled: the
8// result type comes from the opaque return type descriptor beside each
9// function, which is what makes binding them uniform enough to generate.
10//
11// The ones taking a SwiftUI value take it as an enum of that type's own
12// static properties, read through their getters.
13//
14// Three were generated and dropped: `colorMultiply`, `toolbarRole` and
15// `tabBarMinimizeBehavior` take their argument by a convention this does not
16// use, and crash rather than mismatch.
17
18swift_statics! {
19    /// `SwiftUI.AlternatingRowBackgroundBehavior`.
20    ///
21    /// The cases are the type's documented static properties, each read through
22    /// its own getter. Types carry further statics that are not API; a value the
23    /// reference cannot spell cannot be compared, so those are left out.
24    pub enum AlternatingRowBackgroundBehavior {
25        Enabled = c"$s7SwiftUI32AlternatingRowBackgroundBehaviorV7enabledACvgZ",
26        Disabled = c"$s7SwiftUI32AlternatingRowBackgroundBehaviorV8disabledACvgZ",
27        Automatic = c"$s7SwiftUI32AlternatingRowBackgroundBehaviorV9automaticACvgZ",
28    }
29}
30
31swift_statics! {
32    /// `SwiftUI.BadgeProminence`.
33    ///
34    /// The cases are the type's documented static properties, each read through
35    /// its own getter. Types carry further statics that are not API; a value the
36    /// reference cannot spell cannot be compared, so those are left out.
37    pub enum BadgeProminence {
38        Standard = c"$s7SwiftUI15BadgeProminenceV8standardACvgZ",
39        Decreased = c"$s7SwiftUI15BadgeProminenceV9decreasedACvgZ",
40        Increased = c"$s7SwiftUI15BadgeProminenceV9increasedACvgZ",
41    }
42}
43
44swift_statics! {
45    /// `SwiftUI.ButtonBorderShape`.
46    ///
47    /// The cases are the type's documented static properties, each read through
48    /// its own getter. Types carry further statics that are not API; a value the
49    /// reference cannot spell cannot be compared, so those are left out.
50    pub enum ButtonBorderShape {
51        RoundedRectangle = c"$s7SwiftUI17ButtonBorderShapeV16roundedRectangleACvgZ",
52        Circle = c"$s7SwiftUI17ButtonBorderShapeV6circleACvgZ",
53        Capsule = c"$s7SwiftUI17ButtonBorderShapeV7capsuleACvgZ",
54        Automatic = c"$s7SwiftUI17ButtonBorderShapeV9automaticACvgZ",
55    }
56}
57
58swift_statics! {
59    /// `SwiftUI.ButtonRepeatBehavior`.
60    ///
61    /// The cases are the type's documented static properties, each read through
62    /// its own getter. Types carry further statics that are not API; a value the
63    /// reference cannot spell cannot be compared, so those are left out.
64    pub enum ButtonRepeatBehavior {
65        Enabled = c"$s7SwiftUI20ButtonRepeatBehaviorV7enabledACvgZ",
66        Disabled = c"$s7SwiftUI20ButtonRepeatBehaviorV8disabledACvgZ",
67        Automatic = c"$s7SwiftUI20ButtonRepeatBehaviorV9automaticACvgZ",
68    }
69}
70
71swift_statics! {
72    /// `SwiftUI.ButtonSizing`.
73    ///
74    /// The cases are the type's documented static properties, each read through
75    /// its own getter. Types carry further statics that are not API; a value the
76    /// reference cannot spell cannot be compared, so those are left out.
77    pub enum ButtonSizing {
78        Fitted = c"$s7SwiftUI12ButtonSizingV6fittedACvgZ",
79        Flexible = c"$s7SwiftUI12ButtonSizingV8flexibleACvgZ",
80        Automatic = c"$s7SwiftUI12ButtonSizingV9automaticACvgZ",
81    }
82}
83
84swift_statics! {
85    /// `SwiftUI.DialogSeverity`.
86    ///
87    /// The cases are the type's documented static properties, each read through
88    /// its own getter. Types carry further statics that are not API; a value the
89    /// reference cannot spell cannot be compared, so those are left out.
90    pub enum DialogSeverity {
91        Critical = c"$s7SwiftUI14DialogSeverityV8criticalACvgZ",
92        Standard = c"$s7SwiftUI14DialogSeverityV8standardACvgZ",
93        Automatic = c"$s7SwiftUI14DialogSeverityV9automaticACvgZ",
94    }
95}
96
97swift_statics! {
98    /// `SwiftUI.DragDropPreviewsFormation`.
99    ///
100    /// The cases are the type's documented static properties, each read through
101    /// its own getter. Types carry further statics that are not API; a value the
102    /// reference cannot spell cannot be compared, so those are left out.
103    pub enum DragDropPreviewsFormation {
104        List = c"$s7SwiftUI25DragDropPreviewsFormationV4listACvgZ",
105        None = c"$s7SwiftUI25DragDropPreviewsFormationV4noneACvgZ",
106        Pile = c"$s7SwiftUI25DragDropPreviewsFormationV4pileACvgZ",
107        Stack = c"$s7SwiftUI25DragDropPreviewsFormationV5stackACvgZ",
108        Default = c"$s7SwiftUI25DragDropPreviewsFormationV7defaultACvgZ",
109    }
110}
111
112swift_statics! {
113    /// `SwiftUI.FileDialogBrowserOptions`.
114    ///
115    /// The cases are the type's documented static properties, each read through
116    /// its own getter. Types carry further statics that are not API; a value the
117    /// reference cannot spell cannot be compared, so those are left out.
118    pub enum FileDialogBrowserOptions {
119        EnumeratePackages = c"$s7SwiftUI24FileDialogBrowserOptionsV17enumeratePackagesACvgZ",
120        IncludeHiddenFiles = c"$s7SwiftUI24FileDialogBrowserOptionsV18includeHiddenFilesACvgZ",
121    }
122}
123
124swift_statics! {
125    /// `SwiftUI.GlassEffectTransition`.
126    ///
127    /// The cases are the type's documented static properties, each read through
128    /// its own getter. Types carry further statics that are not API; a value the
129    /// reference cannot spell cannot be compared, so those are left out.
130    pub enum GlassEffectTransition {
131        Materialize = c"$s7SwiftUI21GlassEffectTransitionV11materializeACvgZ",
132        MatchedGeometry = c"$s7SwiftUI21GlassEffectTransitionV15matchedGeometryACvgZ",
133        Identity = c"$s7SwiftUI21GlassEffectTransitionV8identityACvgZ",
134    }
135}
136
137swift_statics! {
138    /// `SwiftUI.InterfaceOrientation`.
139    ///
140    /// The cases are the type's documented static properties, each read through
141    /// its own getter. Types carry further statics that are not API; a value the
142    /// reference cannot spell cannot be compared, so those are left out.
143    pub enum InterfaceOrientation {
144        LandscapeLeft = c"$s7SwiftUI20InterfaceOrientationV13landscapeLeftACvgZ",
145        LandscapeRight = c"$s7SwiftUI20InterfaceOrientationV14landscapeRightACvgZ",
146        PortraitUpsideDown = c"$s7SwiftUI20InterfaceOrientationV18portraitUpsideDownACvgZ",
147        Portrait = c"$s7SwiftUI20InterfaceOrientationV8portraitACvgZ",
148    }
149}
150
151swift_statics! {
152    /// `SwiftUI.KeyboardShortcut`.
153    ///
154    /// The cases are the type's documented static properties, each read through
155    /// its own getter. Types carry further statics that are not API; a value the
156    /// reference cannot spell cannot be compared, so those are left out.
157    pub enum KeyboardShortcut {
158        CancelAction = c"$s7SwiftUI16KeyboardShortcutV12cancelActionACvgZ",
159        DefaultAction = c"$s7SwiftUI16KeyboardShortcutV13defaultActionACvgZ",
160    }
161}
162
163swift_statics! {
164    /// `SwiftUI.LayoutDirectionBehavior`.
165    ///
166    /// The cases are the type's documented static properties, each read through
167    /// its own getter. Types carry further statics that are not API; a value the
168    /// reference cannot spell cannot be compared, so those are left out.
169    pub enum LayoutDirectionBehavior {
170        Mirrors = c"$s7SwiftUI23LayoutDirectionBehaviorO7mirrorsACvgZ",
171    }
172}
173
174swift_statics! {
175    /// `SwiftUI.MaterialActiveAppearance`.
176    ///
177    /// The cases are the type's documented static properties, each read through
178    /// its own getter. Types carry further statics that are not API; a value the
179    /// reference cannot spell cannot be compared, so those are left out.
180    pub enum MaterialActiveAppearance {
181        MatchWindow = c"$s7SwiftUI24MaterialActiveAppearanceV11matchWindowACvgZ",
182        Active = c"$s7SwiftUI24MaterialActiveAppearanceV6activeACvgZ",
183        Inactive = c"$s7SwiftUI24MaterialActiveAppearanceV8inactiveACvgZ",
184        Automatic = c"$s7SwiftUI24MaterialActiveAppearanceV9automaticACvgZ",
185    }
186}
187
188swift_statics! {
189    /// `SwiftUI.MenuActionDismissBehavior`.
190    ///
191    /// The cases are the type's documented static properties, each read through
192    /// its own getter. Types carry further statics that are not API; a value the
193    /// reference cannot spell cannot be compared, so those are left out.
194    pub enum MenuActionDismissBehavior {
195        Enabled = c"$s7SwiftUI25MenuActionDismissBehaviorV7enabledACvgZ",
196        Automatic = c"$s7SwiftUI25MenuActionDismissBehaviorV9automaticACvgZ",
197    }
198}
199
200swift_statics! {
201    /// `SwiftUI.MenuOrder`.
202    ///
203    /// The cases are the type's documented static properties, each read through
204    /// its own getter. Types carry further statics that are not API; a value the
205    /// reference cannot spell cannot be compared, so those are left out.
206    pub enum MenuOrder {
207        Fixed = c"$s7SwiftUI9MenuOrderV5fixedACvgZ",
208        Automatic = c"$s7SwiftUI9MenuOrderV9automaticACvgZ",
209    }
210}
211
212swift_statics! {
213    /// `SwiftUI.PaletteSelectionEffect`.
214    ///
215    /// The cases are the type's documented static properties, each read through
216    /// its own getter. Types carry further statics that are not API; a value the
217    /// reference cannot spell cannot be compared, so those are left out.
218    pub enum PaletteSelectionEffect {
219        Custom = c"$s7SwiftUI22PaletteSelectionEffectV6customACvgZ",
220        Automatic = c"$s7SwiftUI22PaletteSelectionEffectV9automaticACvgZ",
221    }
222}
223
224swift_statics! {
225    /// `SwiftUI.PresentationAdaptation`.
226    ///
227    /// The cases are the type's documented static properties, each read through
228    /// its own getter. Types carry further statics that are not API; a value the
229    /// reference cannot spell cannot be compared, so those are left out.
230    pub enum PresentationAdaptation {
231        FullScreenCover = c"$s7SwiftUI22PresentationAdaptationV15fullScreenCoverACvgZ",
232        None = c"$s7SwiftUI22PresentationAdaptationV4noneACvgZ",
233        Sheet = c"$s7SwiftUI22PresentationAdaptationV5sheetACvgZ",
234        Popover = c"$s7SwiftUI22PresentationAdaptationV7popoverACvgZ",
235        Automatic = c"$s7SwiftUI22PresentationAdaptationV9automaticACvgZ",
236    }
237}
238
239swift_statics! {
240    /// `SwiftUI.PresentationBackgroundInteraction`.
241    ///
242    /// The cases are the type's documented static properties, each read through
243    /// its own getter. Types carry further statics that are not API; a value the
244    /// reference cannot spell cannot be compared, so those are left out.
245    pub enum PresentationBackgroundInteraction {
246        Enabled = c"$s7SwiftUI33PresentationBackgroundInteractionV7enabledACvgZ",
247        Disabled = c"$s7SwiftUI33PresentationBackgroundInteractionV8disabledACvgZ",
248        Automatic = c"$s7SwiftUI33PresentationBackgroundInteractionV9automaticACvgZ",
249    }
250}
251
252swift_statics! {
253    /// `SwiftUI.PresentationContentInteraction`.
254    ///
255    /// The cases are the type's documented static properties, each read through
256    /// its own getter. Types carry further statics that are not API; a value the
257    /// reference cannot spell cannot be compared, so those are left out.
258    pub enum PresentationContentInteraction {
259        Resizes = c"$s7SwiftUI30PresentationContentInteractionV7resizesACvgZ",
260        Scrolls = c"$s7SwiftUI30PresentationContentInteractionV7scrollsACvgZ",
261        Automatic = c"$s7SwiftUI30PresentationContentInteractionV9automaticACvgZ",
262    }
263}
264
265swift_statics! {
266    /// `SwiftUI.ScrollDismissesKeyboardMode`.
267    ///
268    /// The cases are the type's documented static properties, each read through
269    /// its own getter. Types carry further statics that are not API; a value the
270    /// reference cannot spell cannot be compared, so those are left out.
271    pub enum ScrollDismissesKeyboardMode {
272        Immediately = c"$s7SwiftUI27ScrollDismissesKeyboardModeV11immediatelyACvgZ",
273        Interactively = c"$s7SwiftUI27ScrollDismissesKeyboardModeV13interactivelyACvgZ",
274        Never = c"$s7SwiftUI27ScrollDismissesKeyboardModeV5neverACvgZ",
275        Automatic = c"$s7SwiftUI27ScrollDismissesKeyboardModeV9automaticACvgZ",
276    }
277}
278
279swift_statics! {
280    /// `SwiftUI.SearchPresentationToolbarBehavior`.
281    ///
282    /// The cases are the type's documented static properties, each read through
283    /// its own getter. Types carry further statics that are not API; a value the
284    /// reference cannot spell cannot be compared, so those are left out.
285    pub enum SearchPresentationToolbarBehavior {
286        AvoidHidingContent = c"$s7SwiftUI33SearchPresentationToolbarBehaviorV18avoidHidingContentACvgZ",
287        Automatic = c"$s7SwiftUI33SearchPresentationToolbarBehaviorV9automaticACvgZ",
288    }
289}
290
291swift_statics! {
292    /// `SwiftUI.SearchToolbarBehavior`.
293    ///
294    /// The cases are the type's documented static properties, each read through
295    /// its own getter. Types carry further statics that are not API; a value the
296    /// reference cannot spell cannot be compared, so those are left out.
297    pub enum SearchToolbarBehavior {
298        Automatic = c"$s7SwiftUI21SearchToolbarBehaviorV9automaticACvgZ",
299    }
300}
301
302swift_statics! {
303    /// `SwiftUI.SpringLoadingBehavior`.
304    ///
305    /// The cases are the type's documented static properties, each read through
306    /// its own getter. Types carry further statics that are not API; a value the
307    /// reference cannot spell cannot be compared, so those are left out.
308    pub enum SpringLoadingBehavior {
309        Enabled = c"$s7SwiftUI21SpringLoadingBehaviorV7enabledACvgZ",
310        Disabled = c"$s7SwiftUI21SpringLoadingBehaviorV8disabledACvgZ",
311        Automatic = c"$s7SwiftUI21SpringLoadingBehaviorV9automaticACvgZ",
312    }
313}
314
315swift_statics! {
316    /// `SwiftUI.SubmitLabel`.
317    ///
318    /// The cases are the type's documented static properties, each read through
319    /// its own getter. Types carry further statics that are not API; a value the
320    /// reference cannot spell cannot be compared, so those are left out.
321    pub enum SubmitLabel {
322        Go = c"$s7SwiftUI11SubmitLabelV2goACvgZ",
323        Done = c"$s7SwiftUI11SubmitLabelV4doneACvgZ",
324        Join = c"$s7SwiftUI11SubmitLabelV4joinACvgZ",
325        Next = c"$s7SwiftUI11SubmitLabelV4nextACvgZ",
326        Send = c"$s7SwiftUI11SubmitLabelV4sendACvgZ",
327        Route = c"$s7SwiftUI11SubmitLabelV5routeACvgZ",
328        Return = c"$s7SwiftUI11SubmitLabelV6returnACvgZ",
329        Search = c"$s7SwiftUI11SubmitLabelV6searchACvgZ",
330        Continue = c"$s7SwiftUI11SubmitLabelV8continueACvgZ",
331    }
332}
333
334swift_statics! {
335    /// `SwiftUI.SymbolVariants`.
336    ///
337    /// The cases are the type's documented static properties, each read through
338    /// its own getter. Types carry further statics that are not API; a value the
339    /// reference cannot spell cannot be compared, so those are left out.
340    pub enum SymbolVariants {
341        Fill = c"$s7SwiftUI14SymbolVariantsV4fillACvgZ",
342        None = c"$s7SwiftUI14SymbolVariantsV4noneACvgZ",
343        Slash = c"$s7SwiftUI14SymbolVariantsV5slashACvgZ",
344        Circle = c"$s7SwiftUI14SymbolVariantsV6circleACvgZ",
345        Square = c"$s7SwiftUI14SymbolVariantsV6squareACvgZ",
346        Rectangle = c"$s7SwiftUI14SymbolVariantsV9rectangleACvgZ",
347    }
348}
349
350swift_statics! {
351    /// `SwiftUI.ToolbarTitleDisplayMode`.
352    ///
353    /// The cases are the type's documented static properties, each read through
354    /// its own getter. Types carry further statics that are not API; a value the
355    /// reference cannot spell cannot be compared, so those are left out.
356    pub enum ToolbarTitleDisplayMode {
357        InlineLarge = c"$s7SwiftUI23ToolbarTitleDisplayModeV11inlineLargeACvgZ",
358        Inline = c"$s7SwiftUI23ToolbarTitleDisplayModeV6inlineACvgZ",
359        Automatic = c"$s7SwiftUI23ToolbarTitleDisplayModeV9automaticACvgZ",
360    }
361}
362
363swift_statics! {
364    /// `SwiftUI.WindowInteractionBehavior`.
365    ///
366    /// The cases are the type's documented static properties, each read through
367    /// its own getter. Types carry further statics that are not API; a value the
368    /// reference cannot spell cannot be compared, so those are left out.
369    pub enum WindowInteractionBehavior {
370        Enabled = c"$s7SwiftUI25WindowInteractionBehaviorV7enabledACvgZ",
371        Disabled = c"$s7SwiftUI25WindowInteractionBehaviorV8disabledACvgZ",
372        Automatic = c"$s7SwiftUI25WindowInteractionBehaviorV9automaticACvgZ",
373    }
374}
375
376swift_statics! {
377    /// `SwiftUI.WindowToolbarFullScreenVisibility`.
378    ///
379    /// The cases are the type's documented static properties, each read through
380    /// its own getter. Types carry further statics that are not API; a value the
381    /// reference cannot spell cannot be compared, so those are left out.
382    pub enum WindowToolbarFullScreenVisibility {
383        OnHover = c"$s7SwiftUI33WindowToolbarFullScreenVisibilityV7onHoverACvgZ",
384        Visible = c"$s7SwiftUI33WindowToolbarFullScreenVisibilityV7visibleACvgZ",
385        Automatic = c"$s7SwiftUI33WindowToolbarFullScreenVisibilityV9automaticACvgZ",
386    }
387}
388
389swift_statics! {
390    /// `SwiftUI.WritingToolsBehavior`.
391    ///
392    /// The cases are the type's documented static properties, each read through
393    /// its own getter. Types carry further statics that are not API; a value the
394    /// reference cannot spell cannot be compared, so those are left out.
395    pub enum WritingToolsBehavior {
396        Limited = c"$s7SwiftUI20WritingToolsBehaviorV7limitedACvgZ",
397        Complete = c"$s7SwiftUI20WritingToolsBehaviorV8completeACvgZ",
398        Disabled = c"$s7SwiftUI20WritingToolsBehaviorV8disabledACvgZ",
399        Automatic = c"$s7SwiftUI20WritingToolsBehaviorV9automaticACvgZ",
400    }
401}
402
403modifiers! {
404    /// Apply `.backgroundExtensionEffect(_:)`.
405    fn background_extension_effect() = modifier0(background_extension_effect_fn, background_extension_effect_oret);
406    /// Apply `.colorInvert(_:)`.
407    fn color_invert() = modifier0(color_invert_fn, color_invert_oret);
408    /// Apply `.focusSection(_:)`.
409    fn focus_section() = modifier0(focus_section_fn, focus_section_oret);
410    /// Apply `.horizontalRadioGroupLayout(_:)`.
411    fn horizontal_radio_group_layout() = modifier0(horizontal_radio_group_layout_fn, horizontal_radio_group_layout_oret);
412    /// Apply `.labelsHidden(_:)`.
413    fn labels_hidden() = modifier0(labels_hidden_fn, labels_hidden_oret);
414    /// Apply `.luminanceToAlpha(_:)`.
415    fn luminance_to_alpha() = modifier0(luminance_to_alpha_fn, luminance_to_alpha_oret);
416    /// Apply `.monospacedDigit(_:)`.
417    fn monospaced_digit() = modifier0(monospaced_digit_fn, monospaced_digit_oret);
418    /// Apply `.scaledToFill(_:)`.
419    fn scaled_to_fill() = modifier0(scaled_to_fill_fn, scaled_to_fill_oret);
420    /// Apply `.scaledToFit(_:)`.
421    fn scaled_to_fit() = modifier0(scaled_to_fit_fn, scaled_to_fit_oret);
422    /// Apply `.unredacted(_:)`.
423    fn unredacted() = modifier0(unredacted_fn, unredacted_oret);
424    /// Apply `.baselineOffset(_:)`.
425    fn baseline_offset(value: f64) = modifier_f64(baseline_offset_fn, baseline_offset_oret, value);
426    /// Apply `.inspectorColumnWidth(_:)`.
427    fn inspector_column_width(value: f64) = modifier_f64(inspector_column_width_fn, inspector_column_width_oret, value);
428    /// Apply `.labelIconToTitleSpacing(_:)`.
429    fn label_icon_to_title_spacing(value: f64) = modifier_f64(label_icon_to_title_spacing_fn, label_icon_to_title_spacing_oret, value);
430    /// Apply `.labelReservedIconWidth(_:)`.
431    fn label_reserved_icon_width(value: f64) = modifier_f64(label_reserved_icon_width_fn, label_reserved_icon_width_oret, value);
432    /// Apply `.layoutPriority(_:)`.
433    fn layout_priority(value: f64) = modifier_f64(layout_priority_fn, layout_priority_oret, value);
434    /// Apply `.minimumScaleFactor(_:)`.
435    fn minimum_scale_factor(value: f64) = modifier_f64(minimum_scale_factor_fn, minimum_scale_factor_oret, value);
436    /// Apply `.speechAdjustedPitch(_:)`.
437    fn speech_adjusted_pitch(value: f64) = modifier_f64(speech_adjusted_pitch_fn, speech_adjusted_pitch_oret, value);
438    /// Apply `.accessibilityIgnoresInvertColors(_:)`.
439    fn accessibility_ignores_invert_colors(value: bool) = modifier_bool(accessibility_ignores_invert_colors_fn, accessibility_ignores_invert_colors_oret, value);
440    /// Apply `.allowsHitTesting(_:)`.
441    fn allows_hit_testing(value: bool) = modifier_bool(allows_hit_testing_fn, allows_hit_testing_oret, value);
442    /// Apply `.allowsTightening(_:)`.
443    fn allows_tightening(value: bool) = modifier_bool(allows_tightening_fn, allows_tightening_oret, value);
444    /// Apply `.deleteDisabled(_:)`.
445    fn delete_disabled(value: bool) = modifier_bool(delete_disabled_fn, delete_disabled_oret, value);
446    /// Apply `.fileDialogImportsUnresolvedAliases(_:)`.
447    fn file_dialog_imports_unresolved_aliases(value: bool) = modifier_bool(file_dialog_imports_unresolved_aliases_fn, file_dialog_imports_unresolved_aliases_oret, value);
448    /// Apply `.findDisabled(_:)`.
449    fn find_disabled(value: bool) = modifier_bool(find_disabled_fn, find_disabled_oret, value);
450    /// Apply `.flipsForRightToLeftLayoutDirection(_:)`.
451    fn flips_for_right_to_left_layout_direction(value: bool) = modifier_bool(flips_for_right_to_left_layout_direction_fn, flips_for_right_to_left_layout_direction_oret, value);
452    /// Apply `.focusEffectDisabled(_:)`.
453    fn focus_effect_disabled(value: bool) = modifier_bool(focus_effect_disabled_fn, focus_effect_disabled_oret, value);
454    /// Apply `.interactiveDismissDisabled(_:)`.
455    fn interactive_dismiss_disabled(value: bool) = modifier_bool(interactive_dismiss_disabled_fn, interactive_dismiss_disabled_oret, value);
456    /// Apply `.invalidatableContent(_:)`.
457    fn invalidatable_content(value: bool) = modifier_bool(invalidatable_content_fn, invalidatable_content_oret, value);
458    /// Apply `.moveDisabled(_:)`.
459    fn move_disabled(value: bool) = modifier_bool(move_disabled_fn, move_disabled_oret, value);
460    /// Apply `.navigationBarBackButtonHidden(_:)`.
461    fn navigation_bar_back_button_hidden(value: bool) = modifier_bool(navigation_bar_back_button_hidden_fn, navigation_bar_back_button_hidden_oret, value);
462    /// Apply `.privacySensitive(_:)`.
463    fn privacy_sensitive(value: bool) = modifier_bool(privacy_sensitive_fn, privacy_sensitive_oret, value);
464    /// Apply `.replaceDisabled(_:)`.
465    fn replace_disabled(value: bool) = modifier_bool(replace_disabled_fn, replace_disabled_oret, value);
466    /// Apply `.scrollClipDisabled(_:)`.
467    fn scroll_clip_disabled(value: bool) = modifier_bool(scroll_clip_disabled_fn, scroll_clip_disabled_oret, value);
468    /// Apply `.scrollDisabled(_:)`.
469    fn scroll_disabled(value: bool) = modifier_bool(scroll_disabled_fn, scroll_disabled_oret, value);
470    /// Apply `.speechAlwaysIncludesPunctuation(_:)`.
471    fn speech_always_includes_punctuation(value: bool) = modifier_bool(speech_always_includes_punctuation_fn, speech_always_includes_punctuation_oret, value);
472    /// Apply `.speechAnnouncementsQueued(_:)`.
473    fn speech_announcements_queued(value: bool) = modifier_bool(speech_announcements_queued_fn, speech_announcements_queued_oret, value);
474    /// Apply `.speechSpellsOutCharacters(_:)`.
475    fn speech_spells_out_characters(value: bool) = modifier_bool(speech_spells_out_characters_fn, speech_spells_out_characters_oret, value);
476    /// Apply `.submitScope(_:)`.
477    fn submit_scope(value: bool) = modifier_bool(submit_scope_fn, submit_scope_oret, value);
478    /// Apply `.toolbarItemHidden(_:)`.
479    fn toolbar_item_hidden(value: bool) = modifier_bool(toolbar_item_hidden_fn, toolbar_item_hidden_oret, value);
480    /// Apply `.touchBarItemPrincipal(_:)`.
481    fn touch_bar_item_principal(value: bool) = modifier_bool(touch_bar_item_principal_fn, touch_bar_item_principal_oret, value);
482    /// Apply `.badge(_:)`.
483    fn badge(value: i64) = modifier_i64(badge_fn, badge_oret, value);
484    /// Apply `.gridCellColumns(_:)`.
485    fn grid_cell_columns(value: i64) = modifier_i64(grid_cell_columns_fn, grid_cell_columns_oret, value);
486    /// Apply `.fileDialogCustomizationID(_:)`.
487    fn file_dialog_customization_id(value: &str) = modifier_str(file_dialog_customization_id_fn, file_dialog_customization_id_oret, value);
488    /// Apply `.interactionActivityTrackingTag(_:)`.
489    fn interaction_activity_tracking_tag(value: &str) = modifier_str(interaction_activity_tracking_tag_fn, interaction_activity_tracking_tag_oret, value);
490}
491/// Apply `.alternatingRowBackgrounds(_:)`.
492pub fn alternating_row_backgrounds(view: &ViewHandle, value: AlternatingRowBackgroundBehavior) -> ViewHandle {
493    unsafe {
494        let meta = abi::metadata0(resolve::alternating_row_background_behavior_ma());
495        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
496        opaque_modifier(
497            resolve::alternating_row_backgrounds_fn(),
498            resolve::alternating_row_backgrounds_oret(),
499            view,
500            &[arg.as_mut_ptr() as u64],
501            [0.0; 4],
502        )
503    }
504}
505
506
507pub fn badge_prominence(view: &ViewHandle, value: BadgeProminence) -> ViewHandle {
508    unsafe {
509        let meta = abi::metadata0(resolve::badge_prominence_ma());
510        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
511        opaque_modifier(
512            resolve::badge_prominence_fn(),
513            resolve::badge_prominence_oret(),
514            view,
515            &[arg.as_mut_ptr() as u64],
516            [0.0; 4],
517        )
518    }
519}
520
521
522pub fn button_border_shape(view: &ViewHandle, value: ButtonBorderShape) -> ViewHandle {
523    unsafe {
524        let meta = abi::metadata0(resolve::button_border_shape_ma());
525        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
526        opaque_modifier(
527            resolve::button_border_shape_fn(),
528            resolve::button_border_shape_oret(),
529            view,
530            &[arg.as_mut_ptr() as u64],
531            [0.0; 4],
532        )
533    }
534}
535
536
537pub fn button_repeat_behavior(view: &ViewHandle, value: ButtonRepeatBehavior) -> ViewHandle {
538    unsafe {
539        let meta = abi::metadata0(resolve::button_repeat_behavior_ma());
540        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
541        opaque_modifier(
542            resolve::button_repeat_behavior_fn(),
543            resolve::button_repeat_behavior_oret(),
544            view,
545            &[arg.as_mut_ptr() as u64],
546            [0.0; 4],
547        )
548    }
549}
550
551
552pub fn button_sizing(view: &ViewHandle, value: ButtonSizing) -> ViewHandle {
553    unsafe {
554        let meta = abi::metadata0(resolve::button_sizing_ma());
555        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
556        opaque_modifier(
557            resolve::button_sizing_fn(),
558            resolve::button_sizing_oret(),
559            view,
560            &[arg.as_mut_ptr() as u64],
561            [0.0; 4],
562        )
563    }
564}
565
566
567pub fn dialog_severity(view: &ViewHandle, value: DialogSeverity) -> ViewHandle {
568    unsafe {
569        let meta = abi::metadata0(resolve::dialog_severity_ma());
570        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
571        opaque_modifier(
572            resolve::dialog_severity_fn(),
573            resolve::dialog_severity_oret(),
574            view,
575            &[arg.as_mut_ptr() as u64],
576            [0.0; 4],
577        )
578    }
579}
580
581
582pub fn drag_previews_formation(view: &ViewHandle, value: DragDropPreviewsFormation) -> ViewHandle {
583    unsafe {
584        let meta = abi::metadata0(resolve::drag_drop_previews_formation_ma());
585        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
586        opaque_modifier(
587            resolve::drag_previews_formation_fn(),
588            resolve::drag_previews_formation_oret(),
589            view,
590            &[arg.as_mut_ptr() as u64],
591            [0.0; 4],
592        )
593    }
594}
595
596
597pub fn drop_previews_formation(view: &ViewHandle, value: DragDropPreviewsFormation) -> ViewHandle {
598    unsafe {
599        let meta = abi::metadata0(resolve::drag_drop_previews_formation_ma());
600        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
601        opaque_modifier(
602            resolve::drop_previews_formation_fn(),
603            resolve::drop_previews_formation_oret(),
604            view,
605            &[arg.as_mut_ptr() as u64],
606            [0.0; 4],
607        )
608    }
609}
610
611
612pub fn file_dialog_browser_options(view: &ViewHandle, value: FileDialogBrowserOptions) -> ViewHandle {
613    unsafe {
614        let meta = abi::metadata0(resolve::file_dialog_browser_options_ma());
615        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
616        opaque_modifier(
617            resolve::file_dialog_browser_options_fn(),
618            resolve::file_dialog_browser_options_oret(),
619            view,
620            &[arg.as_mut_ptr() as u64],
621            [0.0; 4],
622        )
623    }
624}
625
626
627pub fn glass_effect_transition(view: &ViewHandle, value: GlassEffectTransition) -> ViewHandle {
628    unsafe {
629        let meta = abi::metadata0(resolve::glass_effect_transition_ma());
630        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
631        opaque_modifier(
632            resolve::glass_effect_transition_fn(),
633            resolve::glass_effect_transition_oret(),
634            view,
635            &[arg.as_mut_ptr() as u64],
636            [0.0; 4],
637        )
638    }
639}
640
641
642pub fn keyboard_shortcut(view: &ViewHandle, value: KeyboardShortcut) -> ViewHandle {
643    unsafe {
644        let meta = abi::metadata0(resolve::keyboard_shortcut_ma());
645        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
646        opaque_modifier(
647            resolve::keyboard_shortcut_fn(),
648            resolve::keyboard_shortcut_oret(),
649            view,
650            &[arg.as_mut_ptr() as u64],
651            [0.0; 4],
652        )
653    }
654}
655
656
657pub fn layout_direction_behavior(view: &ViewHandle, value: LayoutDirectionBehavior) -> ViewHandle {
658    unsafe {
659        let meta = abi::metadata0(resolve::layout_direction_behavior_ma());
660        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
661        opaque_modifier(
662            resolve::layout_direction_behavior_fn(),
663            resolve::layout_direction_behavior_oret(),
664            view,
665            &[arg.as_mut_ptr() as u64],
666            [0.0; 4],
667        )
668    }
669}
670
671
672pub fn material_active_appearance(view: &ViewHandle, value: MaterialActiveAppearance) -> ViewHandle {
673    unsafe {
674        let meta = abi::metadata0(resolve::material_active_appearance_ma());
675        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
676        opaque_modifier(
677            resolve::material_active_appearance_fn(),
678            resolve::material_active_appearance_oret(),
679            view,
680            &[arg.as_mut_ptr() as u64],
681            [0.0; 4],
682        )
683    }
684}
685
686
687pub fn menu_action_dismiss_behavior(view: &ViewHandle, value: MenuActionDismissBehavior) -> ViewHandle {
688    unsafe {
689        let meta = abi::metadata0(resolve::menu_action_dismiss_behavior_ma());
690        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
691        opaque_modifier(
692            resolve::menu_action_dismiss_behavior_fn(),
693            resolve::menu_action_dismiss_behavior_oret(),
694            view,
695            &[arg.as_mut_ptr() as u64],
696            [0.0; 4],
697        )
698    }
699}
700
701
702pub fn menu_order(view: &ViewHandle, value: MenuOrder) -> ViewHandle {
703    unsafe {
704        let meta = abi::metadata0(resolve::menu_order_ma());
705        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
706        opaque_modifier(
707            resolve::menu_order_fn(),
708            resolve::menu_order_oret(),
709            view,
710            &[arg.as_mut_ptr() as u64],
711            [0.0; 4],
712        )
713    }
714}
715
716
717pub fn palette_selection_effect(view: &ViewHandle, value: PaletteSelectionEffect) -> ViewHandle {
718    unsafe {
719        let meta = abi::metadata0(resolve::palette_selection_effect_ma());
720        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
721        opaque_modifier(
722            resolve::palette_selection_effect_fn(),
723            resolve::palette_selection_effect_oret(),
724            view,
725            &[arg.as_mut_ptr() as u64],
726            [0.0; 4],
727        )
728    }
729}
730
731
732pub fn presentation_background_interaction(view: &ViewHandle, value: PresentationBackgroundInteraction) -> ViewHandle {
733    unsafe {
734        let meta = abi::metadata0(resolve::presentation_background_interaction_ma());
735        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
736        opaque_modifier(
737            resolve::presentation_background_interaction_fn(),
738            resolve::presentation_background_interaction_oret(),
739            view,
740            &[arg.as_mut_ptr() as u64],
741            [0.0; 4],
742        )
743    }
744}
745
746
747pub fn presentation_compact_adaptation(view: &ViewHandle, value: PresentationAdaptation) -> ViewHandle {
748    unsafe {
749        let meta = abi::metadata0(resolve::presentation_adaptation_ma());
750        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
751        opaque_modifier(
752            resolve::presentation_compact_adaptation_fn(),
753            resolve::presentation_compact_adaptation_oret(),
754            view,
755            &[arg.as_mut_ptr() as u64],
756            [0.0; 4],
757        )
758    }
759}
760
761
762pub fn presentation_content_interaction(view: &ViewHandle, value: PresentationContentInteraction) -> ViewHandle {
763    unsafe {
764        let meta = abi::metadata0(resolve::presentation_content_interaction_ma());
765        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
766        opaque_modifier(
767            resolve::presentation_content_interaction_fn(),
768            resolve::presentation_content_interaction_oret(),
769            view,
770            &[arg.as_mut_ptr() as u64],
771            [0.0; 4],
772        )
773    }
774}
775
776
777pub fn preview_interface_orientation(view: &ViewHandle, value: InterfaceOrientation) -> ViewHandle {
778    unsafe {
779        let meta = abi::metadata0(resolve::interface_orientation_ma());
780        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
781        opaque_modifier(
782            resolve::preview_interface_orientation_fn(),
783            resolve::preview_interface_orientation_oret(),
784            view,
785            &[arg.as_mut_ptr() as u64],
786            [0.0; 4],
787        )
788    }
789}
790
791
792pub fn scroll_dismisses_keyboard(view: &ViewHandle, value: ScrollDismissesKeyboardMode) -> ViewHandle {
793    unsafe {
794        let meta = abi::metadata0(resolve::scroll_dismisses_keyboard_mode_ma());
795        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
796        opaque_modifier(
797            resolve::scroll_dismisses_keyboard_fn(),
798            resolve::scroll_dismisses_keyboard_oret(),
799            view,
800            &[arg.as_mut_ptr() as u64],
801            [0.0; 4],
802        )
803    }
804}
805
806
807pub fn search_presentation_toolbar_behavior(view: &ViewHandle, value: SearchPresentationToolbarBehavior) -> ViewHandle {
808    unsafe {
809        let meta = abi::metadata0(resolve::search_presentation_toolbar_behavior_ma());
810        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
811        opaque_modifier(
812            resolve::search_presentation_toolbar_behavior_fn(),
813            resolve::search_presentation_toolbar_behavior_oret(),
814            view,
815            &[arg.as_mut_ptr() as u64],
816            [0.0; 4],
817        )
818    }
819}
820
821
822pub fn search_toolbar_behavior(view: &ViewHandle, value: SearchToolbarBehavior) -> ViewHandle {
823    unsafe {
824        let meta = abi::metadata0(resolve::search_toolbar_behavior_ma());
825        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
826        opaque_modifier(
827            resolve::search_toolbar_behavior_fn(),
828            resolve::search_toolbar_behavior_oret(),
829            view,
830            &[arg.as_mut_ptr() as u64],
831            [0.0; 4],
832        )
833    }
834}
835
836
837pub fn spring_loading_behavior(view: &ViewHandle, value: SpringLoadingBehavior) -> ViewHandle {
838    unsafe {
839        let meta = abi::metadata0(resolve::spring_loading_behavior_ma());
840        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
841        opaque_modifier(
842            resolve::spring_loading_behavior_fn(),
843            resolve::spring_loading_behavior_oret(),
844            view,
845            &[arg.as_mut_ptr() as u64],
846            [0.0; 4],
847        )
848    }
849}
850
851
852pub fn submit_label(view: &ViewHandle, value: SubmitLabel) -> ViewHandle {
853    unsafe {
854        let meta = abi::metadata0(resolve::submit_label_ma());
855        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
856        opaque_modifier(
857            resolve::submit_label_fn(),
858            resolve::submit_label_oret(),
859            view,
860            &[arg.as_mut_ptr() as u64],
861            [0.0; 4],
862        )
863    }
864}
865
866
867pub fn symbol_variant(view: &ViewHandle, value: SymbolVariants) -> ViewHandle {
868    unsafe {
869        let meta = abi::metadata0(resolve::symbol_variants_ma());
870        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
871        opaque_modifier(
872            resolve::symbol_variant_fn(),
873            resolve::symbol_variant_oret(),
874            view,
875            &[arg.as_mut_ptr() as u64],
876            [0.0; 4],
877        )
878    }
879}
880
881
882pub fn toolbar_title_display_mode(view: &ViewHandle, value: ToolbarTitleDisplayMode) -> ViewHandle {
883    unsafe {
884        let meta = abi::metadata0(resolve::toolbar_title_display_mode_ma());
885        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
886        opaque_modifier(
887            resolve::toolbar_title_display_mode_fn(),
888            resolve::toolbar_title_display_mode_oret(),
889            view,
890            &[arg.as_mut_ptr() as u64],
891            [0.0; 4],
892        )
893    }
894}
895
896
897pub fn window_dismiss_behavior(view: &ViewHandle, value: WindowInteractionBehavior) -> ViewHandle {
898    unsafe {
899        let meta = abi::metadata0(resolve::window_interaction_behavior_ma());
900        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
901        opaque_modifier(
902            resolve::window_dismiss_behavior_fn(),
903            resolve::window_dismiss_behavior_oret(),
904            view,
905            &[arg.as_mut_ptr() as u64],
906            [0.0; 4],
907        )
908    }
909}
910
911
912pub fn window_full_screen_behavior(view: &ViewHandle, value: WindowInteractionBehavior) -> ViewHandle {
913    unsafe {
914        let meta = abi::metadata0(resolve::window_interaction_behavior_ma());
915        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
916        opaque_modifier(
917            resolve::window_full_screen_behavior_fn(),
918            resolve::window_full_screen_behavior_oret(),
919            view,
920            &[arg.as_mut_ptr() as u64],
921            [0.0; 4],
922        )
923    }
924}
925
926
927pub fn window_minimize_behavior(view: &ViewHandle, value: WindowInteractionBehavior) -> ViewHandle {
928    unsafe {
929        let meta = abi::metadata0(resolve::window_interaction_behavior_ma());
930        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
931        opaque_modifier(
932            resolve::window_minimize_behavior_fn(),
933            resolve::window_minimize_behavior_oret(),
934            view,
935            &[arg.as_mut_ptr() as u64],
936            [0.0; 4],
937        )
938    }
939}
940
941
942pub fn window_resize_behavior(view: &ViewHandle, value: WindowInteractionBehavior) -> ViewHandle {
943    unsafe {
944        let meta = abi::metadata0(resolve::window_interaction_behavior_ma());
945        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
946        opaque_modifier(
947            resolve::window_resize_behavior_fn(),
948            resolve::window_resize_behavior_oret(),
949            view,
950            &[arg.as_mut_ptr() as u64],
951            [0.0; 4],
952        )
953    }
954}
955
956
957pub fn window_toolbar_full_screen_visibility(view: &ViewHandle, value: WindowToolbarFullScreenVisibility) -> ViewHandle {
958    unsafe {
959        let meta = abi::metadata0(resolve::window_toolbar_full_screen_visibility_ma());
960        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
961        opaque_modifier(
962            resolve::window_toolbar_full_screen_visibility_fn(),
963            resolve::window_toolbar_full_screen_visibility_oret(),
964            view,
965            &[arg.as_mut_ptr() as u64],
966            [0.0; 4],
967        )
968    }
969}
970
971
972pub fn writing_tools_behavior(view: &ViewHandle, value: WritingToolsBehavior) -> ViewHandle {
973    unsafe {
974        let meta = abi::metadata0(resolve::writing_tools_behavior_ma());
975        let mut arg = static_getter_indirect(value.resolved(), meta, 0);
976        opaque_modifier(
977            resolve::writing_tools_behavior_fn(),
978            resolve::writing_tools_behavior_oret(),
979            view,
980            &[arg.as_mut_ptr() as u64],
981            [0.0; 4],
982        )
983    }
984}