1use super::*;
4use crate::abi;
5use crate::resolve;
6swift_statics! {
19 pub enum AlternatingRowBackgroundBehavior {
25 Enabled = c"$s7SwiftUI32AlternatingRowBackgroundBehaviorV7enabledACvgZ",
26 Disabled = c"$s7SwiftUI32AlternatingRowBackgroundBehaviorV8disabledACvgZ",
27 Automatic = c"$s7SwiftUI32AlternatingRowBackgroundBehaviorV9automaticACvgZ",
28 }
29}
30
31swift_statics! {
32 pub enum BadgeProminence {
38 Standard = c"$s7SwiftUI15BadgeProminenceV8standardACvgZ",
39 Decreased = c"$s7SwiftUI15BadgeProminenceV9decreasedACvgZ",
40 Increased = c"$s7SwiftUI15BadgeProminenceV9increasedACvgZ",
41 }
42}
43
44swift_statics! {
45 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 pub enum ButtonRepeatBehavior {
65 Enabled = c"$s7SwiftUI20ButtonRepeatBehaviorV7enabledACvgZ",
66 Disabled = c"$s7SwiftUI20ButtonRepeatBehaviorV8disabledACvgZ",
67 Automatic = c"$s7SwiftUI20ButtonRepeatBehaviorV9automaticACvgZ",
68 }
69}
70
71swift_statics! {
72 pub enum ButtonSizing {
78 Fitted = c"$s7SwiftUI12ButtonSizingV6fittedACvgZ",
79 Flexible = c"$s7SwiftUI12ButtonSizingV8flexibleACvgZ",
80 Automatic = c"$s7SwiftUI12ButtonSizingV9automaticACvgZ",
81 }
82}
83
84swift_statics! {
85 pub enum DialogSeverity {
91 Critical = c"$s7SwiftUI14DialogSeverityV8criticalACvgZ",
92 Standard = c"$s7SwiftUI14DialogSeverityV8standardACvgZ",
93 Automatic = c"$s7SwiftUI14DialogSeverityV9automaticACvgZ",
94 }
95}
96
97swift_statics! {
98 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 pub enum FileDialogBrowserOptions {
119 EnumeratePackages = c"$s7SwiftUI24FileDialogBrowserOptionsV17enumeratePackagesACvgZ",
120 IncludeHiddenFiles = c"$s7SwiftUI24FileDialogBrowserOptionsV18includeHiddenFilesACvgZ",
121 }
122}
123
124swift_statics! {
125 pub enum GlassEffectTransition {
131 Materialize = c"$s7SwiftUI21GlassEffectTransitionV11materializeACvgZ",
132 MatchedGeometry = c"$s7SwiftUI21GlassEffectTransitionV15matchedGeometryACvgZ",
133 Identity = c"$s7SwiftUI21GlassEffectTransitionV8identityACvgZ",
134 }
135}
136
137swift_statics! {
138 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 pub enum KeyboardShortcut {
158 CancelAction = c"$s7SwiftUI16KeyboardShortcutV12cancelActionACvgZ",
159 DefaultAction = c"$s7SwiftUI16KeyboardShortcutV13defaultActionACvgZ",
160 }
161}
162
163swift_statics! {
164 pub enum LayoutDirectionBehavior {
170 Mirrors = c"$s7SwiftUI23LayoutDirectionBehaviorO7mirrorsACvgZ",
171 }
172}
173
174swift_statics! {
175 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 pub enum MenuActionDismissBehavior {
195 Enabled = c"$s7SwiftUI25MenuActionDismissBehaviorV7enabledACvgZ",
196 Automatic = c"$s7SwiftUI25MenuActionDismissBehaviorV9automaticACvgZ",
197 }
198}
199
200swift_statics! {
201 pub enum MenuOrder {
207 Fixed = c"$s7SwiftUI9MenuOrderV5fixedACvgZ",
208 Automatic = c"$s7SwiftUI9MenuOrderV9automaticACvgZ",
209 }
210}
211
212swift_statics! {
213 pub enum PaletteSelectionEffect {
219 Custom = c"$s7SwiftUI22PaletteSelectionEffectV6customACvgZ",
220 Automatic = c"$s7SwiftUI22PaletteSelectionEffectV9automaticACvgZ",
221 }
222}
223
224swift_statics! {
225 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 pub enum PresentationBackgroundInteraction {
246 Enabled = c"$s7SwiftUI33PresentationBackgroundInteractionV7enabledACvgZ",
247 Disabled = c"$s7SwiftUI33PresentationBackgroundInteractionV8disabledACvgZ",
248 Automatic = c"$s7SwiftUI33PresentationBackgroundInteractionV9automaticACvgZ",
249 }
250}
251
252swift_statics! {
253 pub enum PresentationContentInteraction {
259 Resizes = c"$s7SwiftUI30PresentationContentInteractionV7resizesACvgZ",
260 Scrolls = c"$s7SwiftUI30PresentationContentInteractionV7scrollsACvgZ",
261 Automatic = c"$s7SwiftUI30PresentationContentInteractionV9automaticACvgZ",
262 }
263}
264
265swift_statics! {
266 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 pub enum SearchPresentationToolbarBehavior {
286 AvoidHidingContent = c"$s7SwiftUI33SearchPresentationToolbarBehaviorV18avoidHidingContentACvgZ",
287 Automatic = c"$s7SwiftUI33SearchPresentationToolbarBehaviorV9automaticACvgZ",
288 }
289}
290
291swift_statics! {
292 pub enum SearchToolbarBehavior {
298 Automatic = c"$s7SwiftUI21SearchToolbarBehaviorV9automaticACvgZ",
299 }
300}
301
302swift_statics! {
303 pub enum SpringLoadingBehavior {
309 Enabled = c"$s7SwiftUI21SpringLoadingBehaviorV7enabledACvgZ",
310 Disabled = c"$s7SwiftUI21SpringLoadingBehaviorV8disabledACvgZ",
311 Automatic = c"$s7SwiftUI21SpringLoadingBehaviorV9automaticACvgZ",
312 }
313}
314
315swift_statics! {
316 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 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 pub enum ToolbarTitleDisplayMode {
357 InlineLarge = c"$s7SwiftUI23ToolbarTitleDisplayModeV11inlineLargeACvgZ",
358 Inline = c"$s7SwiftUI23ToolbarTitleDisplayModeV6inlineACvgZ",
359 Automatic = c"$s7SwiftUI23ToolbarTitleDisplayModeV9automaticACvgZ",
360 }
361}
362
363swift_statics! {
364 pub enum WindowInteractionBehavior {
370 Enabled = c"$s7SwiftUI25WindowInteractionBehaviorV7enabledACvgZ",
371 Disabled = c"$s7SwiftUI25WindowInteractionBehaviorV8disabledACvgZ",
372 Automatic = c"$s7SwiftUI25WindowInteractionBehaviorV9automaticACvgZ",
373 }
374}
375
376swift_statics! {
377 pub enum WindowToolbarFullScreenVisibility {
383 OnHover = c"$s7SwiftUI33WindowToolbarFullScreenVisibilityV7onHoverACvgZ",
384 Visible = c"$s7SwiftUI33WindowToolbarFullScreenVisibilityV7visibleACvgZ",
385 Automatic = c"$s7SwiftUI33WindowToolbarFullScreenVisibilityV9automaticACvgZ",
386 }
387}
388
389swift_statics! {
390 pub enum WritingToolsBehavior {
396 Limited = c"$s7SwiftUI20WritingToolsBehaviorV7limitedACvgZ",
397 Complete = c"$s7SwiftUI20WritingToolsBehaviorV8completeACvgZ",
398 Disabled = c"$s7SwiftUI20WritingToolsBehaviorV8disabledACvgZ",
399 Automatic = c"$s7SwiftUI20WritingToolsBehaviorV9automaticACvgZ",
400 }
401}
402
403modifiers! {
404 fn background_extension_effect() = modifier0(background_extension_effect_fn, background_extension_effect_oret);
406 fn color_invert() = modifier0(color_invert_fn, color_invert_oret);
408 fn focus_section() = modifier0(focus_section_fn, focus_section_oret);
410 fn horizontal_radio_group_layout() = modifier0(horizontal_radio_group_layout_fn, horizontal_radio_group_layout_oret);
412 fn labels_hidden() = modifier0(labels_hidden_fn, labels_hidden_oret);
414 fn luminance_to_alpha() = modifier0(luminance_to_alpha_fn, luminance_to_alpha_oret);
416 fn monospaced_digit() = modifier0(monospaced_digit_fn, monospaced_digit_oret);
418 fn scaled_to_fill() = modifier0(scaled_to_fill_fn, scaled_to_fill_oret);
420 fn scaled_to_fit() = modifier0(scaled_to_fit_fn, scaled_to_fit_oret);
422 fn unredacted() = modifier0(unredacted_fn, unredacted_oret);
424 fn baseline_offset(value: f64) = modifier_f64(baseline_offset_fn, baseline_offset_oret, value);
426 fn inspector_column_width(value: f64) = modifier_f64(inspector_column_width_fn, inspector_column_width_oret, value);
428 fn label_icon_to_title_spacing(value: f64) = modifier_f64(label_icon_to_title_spacing_fn, label_icon_to_title_spacing_oret, value);
430 fn label_reserved_icon_width(value: f64) = modifier_f64(label_reserved_icon_width_fn, label_reserved_icon_width_oret, value);
432 fn layout_priority(value: f64) = modifier_f64(layout_priority_fn, layout_priority_oret, value);
434 fn minimum_scale_factor(value: f64) = modifier_f64(minimum_scale_factor_fn, minimum_scale_factor_oret, value);
436 fn speech_adjusted_pitch(value: f64) = modifier_f64(speech_adjusted_pitch_fn, speech_adjusted_pitch_oret, value);
438 fn accessibility_ignores_invert_colors(value: bool) = modifier_bool(accessibility_ignores_invert_colors_fn, accessibility_ignores_invert_colors_oret, value);
440 fn allows_hit_testing(value: bool) = modifier_bool(allows_hit_testing_fn, allows_hit_testing_oret, value);
442 fn allows_tightening(value: bool) = modifier_bool(allows_tightening_fn, allows_tightening_oret, value);
444 fn delete_disabled(value: bool) = modifier_bool(delete_disabled_fn, delete_disabled_oret, value);
446 fn file_dialog_imports_unresolved_aliases(value: bool) = modifier_bool(file_dialog_imports_unresolved_aliases_fn, file_dialog_imports_unresolved_aliases_oret, value);
448 fn find_disabled(value: bool) = modifier_bool(find_disabled_fn, find_disabled_oret, value);
450 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 fn focus_effect_disabled(value: bool) = modifier_bool(focus_effect_disabled_fn, focus_effect_disabled_oret, value);
454 fn interactive_dismiss_disabled(value: bool) = modifier_bool(interactive_dismiss_disabled_fn, interactive_dismiss_disabled_oret, value);
456 fn invalidatable_content(value: bool) = modifier_bool(invalidatable_content_fn, invalidatable_content_oret, value);
458 fn move_disabled(value: bool) = modifier_bool(move_disabled_fn, move_disabled_oret, value);
460 fn navigation_bar_back_button_hidden(value: bool) = modifier_bool(navigation_bar_back_button_hidden_fn, navigation_bar_back_button_hidden_oret, value);
462 fn privacy_sensitive(value: bool) = modifier_bool(privacy_sensitive_fn, privacy_sensitive_oret, value);
464 fn replace_disabled(value: bool) = modifier_bool(replace_disabled_fn, replace_disabled_oret, value);
466 fn scroll_clip_disabled(value: bool) = modifier_bool(scroll_clip_disabled_fn, scroll_clip_disabled_oret, value);
468 fn scroll_disabled(value: bool) = modifier_bool(scroll_disabled_fn, scroll_disabled_oret, value);
470 fn speech_always_includes_punctuation(value: bool) = modifier_bool(speech_always_includes_punctuation_fn, speech_always_includes_punctuation_oret, value);
472 fn speech_announcements_queued(value: bool) = modifier_bool(speech_announcements_queued_fn, speech_announcements_queued_oret, value);
474 fn speech_spells_out_characters(value: bool) = modifier_bool(speech_spells_out_characters_fn, speech_spells_out_characters_oret, value);
476 fn submit_scope(value: bool) = modifier_bool(submit_scope_fn, submit_scope_oret, value);
478 fn toolbar_item_hidden(value: bool) = modifier_bool(toolbar_item_hidden_fn, toolbar_item_hidden_oret, value);
480 fn touch_bar_item_principal(value: bool) = modifier_bool(touch_bar_item_principal_fn, touch_bar_item_principal_oret, value);
482 fn badge(value: i64) = modifier_i64(badge_fn, badge_oret, value);
484 fn grid_cell_columns(value: i64) = modifier_i64(grid_cell_columns_fn, grid_cell_columns_oret, value);
486 fn file_dialog_customization_id(value: &str) = modifier_str(file_dialog_customization_id_fn, file_dialog_customization_id_oret, value);
488 fn interaction_activity_tracking_tag(value: &str) = modifier_str(interaction_activity_tracking_tag_fn, interaction_activity_tracking_tag_oret, value);
490}
491pub 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}