From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../src/Windows/UI/Xaml/Automation/Peers/mod.rs | 385 ++++++++++++++++++++ .../src/Windows/UI/Xaml/Automation/Provider/mod.rs | 36 ++ .../src/Windows/UI/Xaml/Automation/Text/mod.rs | 31 ++ .../src/Windows/UI/Xaml/Automation/mod.rs | 398 +++++++++++++++++++++ 4 files changed, 850 insertions(+) create mode 100644 vendor/windows-sys/src/Windows/UI/Xaml/Automation/Peers/mod.rs create mode 100644 vendor/windows-sys/src/Windows/UI/Xaml/Automation/Provider/mod.rs create mode 100644 vendor/windows-sys/src/Windows/UI/Xaml/Automation/Text/mod.rs create mode 100644 vendor/windows-sys/src/Windows/UI/Xaml/Automation/mod.rs (limited to 'vendor/windows-sys/src/Windows/UI/Xaml/Automation') diff --git a/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Peers/mod.rs b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Peers/mod.rs new file mode 100644 index 000000000..cab4c39f8 --- /dev/null +++ b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Peers/mod.rs @@ -0,0 +1,385 @@ +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AccessibilityView(pub i32); +impl AccessibilityView { + pub const Raw: Self = Self(0i32); + pub const Control: Self = Self(1i32); + pub const Content: Self = Self(2i32); +} +impl ::core::marker::Copy for AccessibilityView {} +impl ::core::clone::Clone for AccessibilityView { + fn clone(&self) -> Self { + *self + } +} +pub type AppBarAutomationPeer = *mut ::core::ffi::c_void; +pub type AppBarButtonAutomationPeer = *mut ::core::ffi::c_void; +pub type AppBarToggleButtonAutomationPeer = *mut ::core::ffi::c_void; +pub type AutoSuggestBoxAutomationPeer = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationControlType(pub i32); +impl AutomationControlType { + pub const Button: Self = Self(0i32); + pub const Calendar: Self = Self(1i32); + pub const CheckBox: Self = Self(2i32); + pub const ComboBox: Self = Self(3i32); + pub const Edit: Self = Self(4i32); + pub const Hyperlink: Self = Self(5i32); + pub const Image: Self = Self(6i32); + pub const ListItem: Self = Self(7i32); + pub const List: Self = Self(8i32); + pub const Menu: Self = Self(9i32); + pub const MenuBar: Self = Self(10i32); + pub const MenuItem: Self = Self(11i32); + pub const ProgressBar: Self = Self(12i32); + pub const RadioButton: Self = Self(13i32); + pub const ScrollBar: Self = Self(14i32); + pub const Slider: Self = Self(15i32); + pub const Spinner: Self = Self(16i32); + pub const StatusBar: Self = Self(17i32); + pub const Tab: Self = Self(18i32); + pub const TabItem: Self = Self(19i32); + pub const Text: Self = Self(20i32); + pub const ToolBar: Self = Self(21i32); + pub const ToolTip: Self = Self(22i32); + pub const Tree: Self = Self(23i32); + pub const TreeItem: Self = Self(24i32); + pub const Custom: Self = Self(25i32); + pub const Group: Self = Self(26i32); + pub const Thumb: Self = Self(27i32); + pub const DataGrid: Self = Self(28i32); + pub const DataItem: Self = Self(29i32); + pub const Document: Self = Self(30i32); + pub const SplitButton: Self = Self(31i32); + pub const Window: Self = Self(32i32); + pub const Pane: Self = Self(33i32); + pub const Header: Self = Self(34i32); + pub const HeaderItem: Self = Self(35i32); + pub const Table: Self = Self(36i32); + pub const TitleBar: Self = Self(37i32); + pub const Separator: Self = Self(38i32); + pub const SemanticZoom: Self = Self(39i32); + pub const AppBar: Self = Self(40i32); +} +impl ::core::marker::Copy for AutomationControlType {} +impl ::core::clone::Clone for AutomationControlType { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationEvents(pub i32); +impl AutomationEvents { + pub const ToolTipOpened: Self = Self(0i32); + pub const ToolTipClosed: Self = Self(1i32); + pub const MenuOpened: Self = Self(2i32); + pub const MenuClosed: Self = Self(3i32); + pub const AutomationFocusChanged: Self = Self(4i32); + pub const InvokePatternOnInvoked: Self = Self(5i32); + pub const SelectionItemPatternOnElementAddedToSelection: Self = Self(6i32); + pub const SelectionItemPatternOnElementRemovedFromSelection: Self = Self(7i32); + pub const SelectionItemPatternOnElementSelected: Self = Self(8i32); + pub const SelectionPatternOnInvalidated: Self = Self(9i32); + pub const TextPatternOnTextSelectionChanged: Self = Self(10i32); + pub const TextPatternOnTextChanged: Self = Self(11i32); + pub const AsyncContentLoaded: Self = Self(12i32); + pub const PropertyChanged: Self = Self(13i32); + pub const StructureChanged: Self = Self(14i32); + pub const DragStart: Self = Self(15i32); + pub const DragCancel: Self = Self(16i32); + pub const DragComplete: Self = Self(17i32); + pub const DragEnter: Self = Self(18i32); + pub const DragLeave: Self = Self(19i32); + pub const Dropped: Self = Self(20i32); + pub const LiveRegionChanged: Self = Self(21i32); + pub const InputReachedTarget: Self = Self(22i32); + pub const InputReachedOtherElement: Self = Self(23i32); + pub const InputDiscarded: Self = Self(24i32); + pub const WindowClosed: Self = Self(25i32); + pub const WindowOpened: Self = Self(26i32); + pub const ConversionTargetChanged: Self = Self(27i32); + pub const TextEditTextChanged: Self = Self(28i32); + pub const LayoutInvalidated: Self = Self(29i32); +} +impl ::core::marker::Copy for AutomationEvents {} +impl ::core::clone::Clone for AutomationEvents { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationHeadingLevel(pub i32); +impl AutomationHeadingLevel { + pub const None: Self = Self(0i32); + pub const Level1: Self = Self(1i32); + pub const Level2: Self = Self(2i32); + pub const Level3: Self = Self(3i32); + pub const Level4: Self = Self(4i32); + pub const Level5: Self = Self(5i32); + pub const Level6: Self = Self(6i32); + pub const Level7: Self = Self(7i32); + pub const Level8: Self = Self(8i32); + pub const Level9: Self = Self(9i32); +} +impl ::core::marker::Copy for AutomationHeadingLevel {} +impl ::core::clone::Clone for AutomationHeadingLevel { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationLandmarkType(pub i32); +impl AutomationLandmarkType { + pub const None: Self = Self(0i32); + pub const Custom: Self = Self(1i32); + pub const Form: Self = Self(2i32); + pub const Main: Self = Self(3i32); + pub const Navigation: Self = Self(4i32); + pub const Search: Self = Self(5i32); +} +impl ::core::marker::Copy for AutomationLandmarkType {} +impl ::core::clone::Clone for AutomationLandmarkType { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationLiveSetting(pub i32); +impl AutomationLiveSetting { + pub const Off: Self = Self(0i32); + pub const Polite: Self = Self(1i32); + pub const Assertive: Self = Self(2i32); +} +impl ::core::marker::Copy for AutomationLiveSetting {} +impl ::core::clone::Clone for AutomationLiveSetting { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationNavigationDirection(pub i32); +impl AutomationNavigationDirection { + pub const Parent: Self = Self(0i32); + pub const NextSibling: Self = Self(1i32); + pub const PreviousSibling: Self = Self(2i32); + pub const FirstChild: Self = Self(3i32); + pub const LastChild: Self = Self(4i32); +} +impl ::core::marker::Copy for AutomationNavigationDirection {} +impl ::core::clone::Clone for AutomationNavigationDirection { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationNotificationKind(pub i32); +impl AutomationNotificationKind { + pub const ItemAdded: Self = Self(0i32); + pub const ItemRemoved: Self = Self(1i32); + pub const ActionCompleted: Self = Self(2i32); + pub const ActionAborted: Self = Self(3i32); + pub const Other: Self = Self(4i32); +} +impl ::core::marker::Copy for AutomationNotificationKind {} +impl ::core::clone::Clone for AutomationNotificationKind { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationNotificationProcessing(pub i32); +impl AutomationNotificationProcessing { + pub const ImportantAll: Self = Self(0i32); + pub const ImportantMostRecent: Self = Self(1i32); + pub const All: Self = Self(2i32); + pub const MostRecent: Self = Self(3i32); + pub const CurrentThenMostRecent: Self = Self(4i32); +} +impl ::core::marker::Copy for AutomationNotificationProcessing {} +impl ::core::clone::Clone for AutomationNotificationProcessing { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationOrientation(pub i32); +impl AutomationOrientation { + pub const None: Self = Self(0i32); + pub const Horizontal: Self = Self(1i32); + pub const Vertical: Self = Self(2i32); +} +impl ::core::marker::Copy for AutomationOrientation {} +impl ::core::clone::Clone for AutomationOrientation { + fn clone(&self) -> Self { + *self + } +} +pub type AutomationPeer = *mut ::core::ffi::c_void; +pub type AutomationPeerAnnotation = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct AutomationStructureChangeType(pub i32); +impl AutomationStructureChangeType { + pub const ChildAdded: Self = Self(0i32); + pub const ChildRemoved: Self = Self(1i32); + pub const ChildrenInvalidated: Self = Self(2i32); + pub const ChildrenBulkAdded: Self = Self(3i32); + pub const ChildrenBulkRemoved: Self = Self(4i32); + pub const ChildrenReordered: Self = Self(5i32); +} +impl ::core::marker::Copy for AutomationStructureChangeType {} +impl ::core::clone::Clone for AutomationStructureChangeType { + fn clone(&self) -> Self { + *self + } +} +pub type ButtonAutomationPeer = *mut ::core::ffi::c_void; +pub type ButtonBaseAutomationPeer = *mut ::core::ffi::c_void; +pub type CalendarDatePickerAutomationPeer = *mut ::core::ffi::c_void; +pub type CaptureElementAutomationPeer = *mut ::core::ffi::c_void; +pub type CheckBoxAutomationPeer = *mut ::core::ffi::c_void; +pub type ColorPickerSliderAutomationPeer = *mut ::core::ffi::c_void; +pub type ColorSpectrumAutomationPeer = *mut ::core::ffi::c_void; +pub type ComboBoxAutomationPeer = *mut ::core::ffi::c_void; +pub type ComboBoxItemAutomationPeer = *mut ::core::ffi::c_void; +pub type ComboBoxItemDataAutomationPeer = *mut ::core::ffi::c_void; +pub type DatePickerAutomationPeer = *mut ::core::ffi::c_void; +pub type DatePickerFlyoutPresenterAutomationPeer = *mut ::core::ffi::c_void; +pub type FlipViewAutomationPeer = *mut ::core::ffi::c_void; +pub type FlipViewItemAutomationPeer = *mut ::core::ffi::c_void; +pub type FlipViewItemDataAutomationPeer = *mut ::core::ffi::c_void; +pub type FlyoutPresenterAutomationPeer = *mut ::core::ffi::c_void; +pub type FrameworkElementAutomationPeer = *mut ::core::ffi::c_void; +pub type GridViewAutomationPeer = *mut ::core::ffi::c_void; +pub type GridViewHeaderItemAutomationPeer = *mut ::core::ffi::c_void; +pub type GridViewItemAutomationPeer = *mut ::core::ffi::c_void; +pub type GridViewItemDataAutomationPeer = *mut ::core::ffi::c_void; +pub type GroupItemAutomationPeer = *mut ::core::ffi::c_void; +pub type HubAutomationPeer = *mut ::core::ffi::c_void; +pub type HubSectionAutomationPeer = *mut ::core::ffi::c_void; +pub type HyperlinkButtonAutomationPeer = *mut ::core::ffi::c_void; +pub type ImageAutomationPeer = *mut ::core::ffi::c_void; +pub type InkToolbarAutomationPeer = *mut ::core::ffi::c_void; +pub type ItemAutomationPeer = *mut ::core::ffi::c_void; +pub type ItemsControlAutomationPeer = *mut ::core::ffi::c_void; +pub type ListBoxAutomationPeer = *mut ::core::ffi::c_void; +pub type ListBoxItemAutomationPeer = *mut ::core::ffi::c_void; +pub type ListBoxItemDataAutomationPeer = *mut ::core::ffi::c_void; +pub type ListPickerFlyoutPresenterAutomationPeer = *mut ::core::ffi::c_void; +pub type ListViewAutomationPeer = *mut ::core::ffi::c_void; +pub type ListViewBaseAutomationPeer = *mut ::core::ffi::c_void; +pub type ListViewBaseHeaderItemAutomationPeer = *mut ::core::ffi::c_void; +pub type ListViewHeaderItemAutomationPeer = *mut ::core::ffi::c_void; +pub type ListViewItemAutomationPeer = *mut ::core::ffi::c_void; +pub type ListViewItemDataAutomationPeer = *mut ::core::ffi::c_void; +pub type LoopingSelectorAutomationPeer = *mut ::core::ffi::c_void; +pub type LoopingSelectorItemAutomationPeer = *mut ::core::ffi::c_void; +pub type LoopingSelectorItemDataAutomationPeer = *mut ::core::ffi::c_void; +pub type MapControlAutomationPeer = *mut ::core::ffi::c_void; +pub type MediaElementAutomationPeer = *mut ::core::ffi::c_void; +pub type MediaPlayerElementAutomationPeer = *mut ::core::ffi::c_void; +pub type MediaTransportControlsAutomationPeer = *mut ::core::ffi::c_void; +pub type MenuBarAutomationPeer = *mut ::core::ffi::c_void; +pub type MenuBarItemAutomationPeer = *mut ::core::ffi::c_void; +pub type MenuFlyoutItemAutomationPeer = *mut ::core::ffi::c_void; +pub type MenuFlyoutPresenterAutomationPeer = *mut ::core::ffi::c_void; +pub type NavigationViewItemAutomationPeer = *mut ::core::ffi::c_void; +pub type PasswordBoxAutomationPeer = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +#[repr(transparent)] +pub struct PatternInterface(pub i32); +impl PatternInterface { + pub const Invoke: Self = Self(0i32); + pub const Selection: Self = Self(1i32); + pub const Value: Self = Self(2i32); + pub const RangeValue: Self = Self(3i32); + pub const Scroll: Self = Self(4i32); + pub const ScrollItem: Self = Self(5i32); + pub const ExpandCollapse: Self = Self(6i32); + pub const Grid: Self = Self(7i32); + pub const GridItem: Self = Self(8i32); + pub const MultipleView: Self = Self(9i32); + pub const Window: Self = Self(10i32); + pub const SelectionItem: Self = Self(11i32); + pub const Dock: Self = Self(12i32); + pub const Table: Self = Self(13i32); + pub const TableItem: Self = Self(14i32); + pub const Toggle: Self = Self(15i32); + pub const Transform: Self = Self(16i32); + pub const Text: Self = Self(17i32); + pub const ItemContainer: Self = Self(18i32); + pub const VirtualizedItem: Self = Self(19i32); + pub const Text2: Self = Self(20i32); + pub const TextChild: Self = Self(21i32); + pub const TextRange: Self = Self(22i32); + pub const Annotation: Self = Self(23i32); + pub const Drag: Self = Self(24i32); + pub const DropTarget: Self = Self(25i32); + pub const ObjectModel: Self = Self(26i32); + pub const Spreadsheet: Self = Self(27i32); + pub const SpreadsheetItem: Self = Self(28i32); + pub const Styles: Self = Self(29i32); + pub const Transform2: Self = Self(30i32); + pub const SynchronizedInput: Self = Self(31i32); + pub const TextEdit: Self = Self(32i32); + pub const CustomNavigation: Self = Self(33i32); +} +impl ::core::marker::Copy for PatternInterface {} +impl ::core::clone::Clone for PatternInterface { + fn clone(&self) -> Self { + *self + } +} +pub type PersonPictureAutomationPeer = *mut ::core::ffi::c_void; +pub type PickerFlyoutPresenterAutomationPeer = *mut ::core::ffi::c_void; +pub type PivotAutomationPeer = *mut ::core::ffi::c_void; +pub type PivotItemAutomationPeer = *mut ::core::ffi::c_void; +pub type PivotItemDataAutomationPeer = *mut ::core::ffi::c_void; +pub type ProgressBarAutomationPeer = *mut ::core::ffi::c_void; +pub type ProgressRingAutomationPeer = *mut ::core::ffi::c_void; +pub type RadioButtonAutomationPeer = *mut ::core::ffi::c_void; +pub type RangeBaseAutomationPeer = *mut ::core::ffi::c_void; +pub type RatingControlAutomationPeer = *mut ::core::ffi::c_void; +#[repr(C)] +#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] +pub struct RawElementProviderRuntimeId { + pub Part1: u32, + pub Part2: u32, +} +impl ::core::marker::Copy for RawElementProviderRuntimeId {} +impl ::core::clone::Clone for RawElementProviderRuntimeId { + fn clone(&self) -> Self { + *self + } +} +pub type RepeatButtonAutomationPeer = *mut ::core::ffi::c_void; +pub type RichEditBoxAutomationPeer = *mut ::core::ffi::c_void; +pub type RichTextBlockAutomationPeer = *mut ::core::ffi::c_void; +pub type RichTextBlockOverflowAutomationPeer = *mut ::core::ffi::c_void; +pub type ScrollBarAutomationPeer = *mut ::core::ffi::c_void; +pub type ScrollViewerAutomationPeer = *mut ::core::ffi::c_void; +pub type SearchBoxAutomationPeer = *mut ::core::ffi::c_void; +pub type SelectorAutomationPeer = *mut ::core::ffi::c_void; +pub type SelectorItemAutomationPeer = *mut ::core::ffi::c_void; +pub type SemanticZoomAutomationPeer = *mut ::core::ffi::c_void; +pub type SettingsFlyoutAutomationPeer = *mut ::core::ffi::c_void; +pub type SliderAutomationPeer = *mut ::core::ffi::c_void; +pub type TextBlockAutomationPeer = *mut ::core::ffi::c_void; +pub type TextBoxAutomationPeer = *mut ::core::ffi::c_void; +pub type ThumbAutomationPeer = *mut ::core::ffi::c_void; +pub type TimePickerAutomationPeer = *mut ::core::ffi::c_void; +pub type TimePickerFlyoutPresenterAutomationPeer = *mut ::core::ffi::c_void; +pub type ToggleButtonAutomationPeer = *mut ::core::ffi::c_void; +pub type ToggleMenuFlyoutItemAutomationPeer = *mut ::core::ffi::c_void; +pub type ToggleSwitchAutomationPeer = *mut ::core::ffi::c_void; +pub type TreeViewItemAutomationPeer = *mut ::core::ffi::c_void; +pub type TreeViewListAutomationPeer = *mut ::core::ffi::c_void; diff --git a/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Provider/mod.rs b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Provider/mod.rs new file mode 100644 index 000000000..399ba7967 --- /dev/null +++ b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Provider/mod.rs @@ -0,0 +1,36 @@ +pub type IAnnotationProvider = *mut ::core::ffi::c_void; +pub type ICustomNavigationProvider = *mut ::core::ffi::c_void; +pub type IDockProvider = *mut ::core::ffi::c_void; +pub type IDragProvider = *mut ::core::ffi::c_void; +pub type IDropTargetProvider = *mut ::core::ffi::c_void; +pub type IExpandCollapseProvider = *mut ::core::ffi::c_void; +pub type IGridItemProvider = *mut ::core::ffi::c_void; +pub type IGridProvider = *mut ::core::ffi::c_void; +pub type IInvokeProvider = *mut ::core::ffi::c_void; +pub type IItemContainerProvider = *mut ::core::ffi::c_void; +pub type IMultipleViewProvider = *mut ::core::ffi::c_void; +pub type IObjectModelProvider = *mut ::core::ffi::c_void; +pub type IRangeValueProvider = *mut ::core::ffi::c_void; +pub type IRawElementProviderSimple = *mut ::core::ffi::c_void; +pub type IScrollItemProvider = *mut ::core::ffi::c_void; +pub type IScrollProvider = *mut ::core::ffi::c_void; +pub type ISelectionItemProvider = *mut ::core::ffi::c_void; +pub type ISelectionProvider = *mut ::core::ffi::c_void; +pub type ISpreadsheetItemProvider = *mut ::core::ffi::c_void; +pub type ISpreadsheetProvider = *mut ::core::ffi::c_void; +pub type IStylesProvider = *mut ::core::ffi::c_void; +pub type ISynchronizedInputProvider = *mut ::core::ffi::c_void; +pub type ITableItemProvider = *mut ::core::ffi::c_void; +pub type ITableProvider = *mut ::core::ffi::c_void; +pub type ITextChildProvider = *mut ::core::ffi::c_void; +pub type ITextEditProvider = *mut ::core::ffi::c_void; +pub type ITextProvider = *mut ::core::ffi::c_void; +pub type ITextProvider2 = *mut ::core::ffi::c_void; +pub type ITextRangeProvider = *mut ::core::ffi::c_void; +pub type ITextRangeProvider2 = *mut ::core::ffi::c_void; +pub type IToggleProvider = *mut ::core::ffi::c_void; +pub type ITransformProvider = *mut ::core::ffi::c_void; +pub type ITransformProvider2 = *mut ::core::ffi::c_void; +pub type IValueProvider = *mut ::core::ffi::c_void; +pub type IVirtualizedItemProvider = *mut ::core::ffi::c_void; +pub type IWindowProvider = *mut ::core::ffi::c_void; diff --git a/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Text/mod.rs b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Text/mod.rs new file mode 100644 index 000000000..3bc0d7034 --- /dev/null +++ b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/Text/mod.rs @@ -0,0 +1,31 @@ +#[doc = "*Required features: `\"UI_Xaml_Automation_Text\"`*"] +#[repr(transparent)] +pub struct TextPatternRangeEndpoint(pub i32); +impl TextPatternRangeEndpoint { + pub const Start: Self = Self(0i32); + pub const End: Self = Self(1i32); +} +impl ::core::marker::Copy for TextPatternRangeEndpoint {} +impl ::core::clone::Clone for TextPatternRangeEndpoint { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation_Text\"`*"] +#[repr(transparent)] +pub struct TextUnit(pub i32); +impl TextUnit { + pub const Character: Self = Self(0i32); + pub const Format: Self = Self(1i32); + pub const Word: Self = Self(2i32); + pub const Line: Self = Self(3i32); + pub const Paragraph: Self = Self(4i32); + pub const Page: Self = Self(5i32); + pub const Document: Self = Self(6i32); +} +impl ::core::marker::Copy for TextUnit {} +impl ::core::clone::Clone for TextUnit { + fn clone(&self) -> Self { + *self + } +} diff --git a/vendor/windows-sys/src/Windows/UI/Xaml/Automation/mod.rs b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/mod.rs new file mode 100644 index 000000000..a92efb030 --- /dev/null +++ b/vendor/windows-sys/src/Windows/UI/Xaml/Automation/mod.rs @@ -0,0 +1,398 @@ +#[cfg(feature = "UI_Xaml_Automation_Peers")] +pub mod Peers; +#[cfg(feature = "UI_Xaml_Automation_Provider")] +pub mod Provider; +#[cfg(feature = "UI_Xaml_Automation_Text")] +pub mod Text; +pub type AnnotationPatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AnnotationType(pub i32); +impl AnnotationType { + pub const Unknown: Self = Self(60000i32); + pub const SpellingError: Self = Self(60001i32); + pub const GrammarError: Self = Self(60002i32); + pub const Comment: Self = Self(60003i32); + pub const FormulaError: Self = Self(60004i32); + pub const TrackChanges: Self = Self(60005i32); + pub const Header: Self = Self(60006i32); + pub const Footer: Self = Self(60007i32); + pub const Highlighted: Self = Self(60008i32); + pub const Endnote: Self = Self(60009i32); + pub const Footnote: Self = Self(60010i32); + pub const InsertionChange: Self = Self(60011i32); + pub const DeletionChange: Self = Self(60012i32); + pub const MoveChange: Self = Self(60013i32); + pub const FormatChange: Self = Self(60014i32); + pub const UnsyncedChange: Self = Self(60015i32); + pub const EditingLockedChange: Self = Self(60016i32); + pub const ExternalChange: Self = Self(60017i32); + pub const ConflictingChange: Self = Self(60018i32); + pub const Author: Self = Self(60019i32); + pub const AdvancedProofingIssue: Self = Self(60020i32); + pub const DataValidationError: Self = Self(60021i32); + pub const CircularReferenceError: Self = Self(60022i32); +} +impl ::core::marker::Copy for AnnotationType {} +impl ::core::clone::Clone for AnnotationType { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationActiveEnd(pub i32); +impl AutomationActiveEnd { + pub const None: Self = Self(0i32); + pub const Start: Self = Self(1i32); + pub const End: Self = Self(2i32); +} +impl ::core::marker::Copy for AutomationActiveEnd {} +impl ::core::clone::Clone for AutomationActiveEnd { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationAnimationStyle(pub i32); +impl AutomationAnimationStyle { + pub const None: Self = Self(0i32); + pub const LasVegasLights: Self = Self(1i32); + pub const BlinkingBackground: Self = Self(2i32); + pub const SparkleText: Self = Self(3i32); + pub const MarchingBlackAnts: Self = Self(4i32); + pub const MarchingRedAnts: Self = Self(5i32); + pub const Shimmer: Self = Self(6i32); + pub const Other: Self = Self(7i32); +} +impl ::core::marker::Copy for AutomationAnimationStyle {} +impl ::core::clone::Clone for AutomationAnimationStyle { + fn clone(&self) -> Self { + *self + } +} +pub type AutomationAnnotation = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationBulletStyle(pub i32); +impl AutomationBulletStyle { + pub const None: Self = Self(0i32); + pub const HollowRoundBullet: Self = Self(1i32); + pub const FilledRoundBullet: Self = Self(2i32); + pub const HollowSquareBullet: Self = Self(3i32); + pub const FilledSquareBullet: Self = Self(4i32); + pub const DashBullet: Self = Self(5i32); + pub const Other: Self = Self(6i32); +} +impl ::core::marker::Copy for AutomationBulletStyle {} +impl ::core::clone::Clone for AutomationBulletStyle { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationCaretBidiMode(pub i32); +impl AutomationCaretBidiMode { + pub const LTR: Self = Self(0i32); + pub const RTL: Self = Self(1i32); +} +impl ::core::marker::Copy for AutomationCaretBidiMode {} +impl ::core::clone::Clone for AutomationCaretBidiMode { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationCaretPosition(pub i32); +impl AutomationCaretPosition { + pub const Unknown: Self = Self(0i32); + pub const EndOfLine: Self = Self(1i32); + pub const BeginningOfLine: Self = Self(2i32); +} +impl ::core::marker::Copy for AutomationCaretPosition {} +impl ::core::clone::Clone for AutomationCaretPosition { + fn clone(&self) -> Self { + *self + } +} +pub type AutomationElementIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationFlowDirections(pub i32); +impl AutomationFlowDirections { + pub const Default: Self = Self(0i32); + pub const RightToLeft: Self = Self(1i32); + pub const BottomToTop: Self = Self(2i32); + pub const Vertical: Self = Self(3i32); +} +impl ::core::marker::Copy for AutomationFlowDirections {} +impl ::core::clone::Clone for AutomationFlowDirections { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationOutlineStyles(pub i32); +impl AutomationOutlineStyles { + pub const None: Self = Self(0i32); + pub const Outline: Self = Self(1i32); + pub const Shadow: Self = Self(2i32); + pub const Engraved: Self = Self(3i32); + pub const Embossed: Self = Self(4i32); +} +impl ::core::marker::Copy for AutomationOutlineStyles {} +impl ::core::clone::Clone for AutomationOutlineStyles { + fn clone(&self) -> Self { + *self + } +} +pub type AutomationProperties = *mut ::core::ffi::c_void; +pub type AutomationProperty = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationStyleId(pub i32); +impl AutomationStyleId { + pub const Heading1: Self = Self(70001i32); + pub const Heading2: Self = Self(70002i32); + pub const Heading3: Self = Self(70003i32); + pub const Heading4: Self = Self(70004i32); + pub const Heading5: Self = Self(70005i32); + pub const Heading6: Self = Self(70006i32); + pub const Heading7: Self = Self(70007i32); + pub const Heading8: Self = Self(70008i32); + pub const Heading9: Self = Self(70009i32); + pub const Title: Self = Self(70010i32); + pub const Subtitle: Self = Self(70011i32); + pub const Normal: Self = Self(70012i32); + pub const Emphasis: Self = Self(70013i32); + pub const Quote: Self = Self(70014i32); + pub const BulletedList: Self = Self(70015i32); +} +impl ::core::marker::Copy for AutomationStyleId {} +impl ::core::clone::Clone for AutomationStyleId { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationTextDecorationLineStyle(pub i32); +impl AutomationTextDecorationLineStyle { + pub const None: Self = Self(0i32); + pub const Single: Self = Self(1i32); + pub const WordsOnly: Self = Self(2i32); + pub const Double: Self = Self(3i32); + pub const Dot: Self = Self(4i32); + pub const Dash: Self = Self(5i32); + pub const DashDot: Self = Self(6i32); + pub const DashDotDot: Self = Self(7i32); + pub const Wavy: Self = Self(8i32); + pub const ThickSingle: Self = Self(9i32); + pub const DoubleWavy: Self = Self(10i32); + pub const ThickWavy: Self = Self(11i32); + pub const LongDash: Self = Self(12i32); + pub const ThickDash: Self = Self(13i32); + pub const ThickDashDot: Self = Self(14i32); + pub const ThickDashDotDot: Self = Self(15i32); + pub const ThickDot: Self = Self(16i32); + pub const ThickLongDash: Self = Self(17i32); + pub const Other: Self = Self(18i32); +} +impl ::core::marker::Copy for AutomationTextDecorationLineStyle {} +impl ::core::clone::Clone for AutomationTextDecorationLineStyle { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct AutomationTextEditChangeType(pub i32); +impl AutomationTextEditChangeType { + pub const None: Self = Self(0i32); + pub const AutoCorrect: Self = Self(1i32); + pub const Composition: Self = Self(2i32); + pub const CompositionFinalized: Self = Self(3i32); +} +impl ::core::marker::Copy for AutomationTextEditChangeType {} +impl ::core::clone::Clone for AutomationTextEditChangeType { + fn clone(&self) -> Self { + *self + } +} +pub type DockPatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct DockPosition(pub i32); +impl DockPosition { + pub const Top: Self = Self(0i32); + pub const Left: Self = Self(1i32); + pub const Bottom: Self = Self(2i32); + pub const Right: Self = Self(3i32); + pub const Fill: Self = Self(4i32); + pub const None: Self = Self(5i32); +} +impl ::core::marker::Copy for DockPosition {} +impl ::core::clone::Clone for DockPosition { + fn clone(&self) -> Self { + *self + } +} +pub type DragPatternIdentifiers = *mut ::core::ffi::c_void; +pub type DropTargetPatternIdentifiers = *mut ::core::ffi::c_void; +pub type ExpandCollapsePatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct ExpandCollapseState(pub i32); +impl ExpandCollapseState { + pub const Collapsed: Self = Self(0i32); + pub const Expanded: Self = Self(1i32); + pub const PartiallyExpanded: Self = Self(2i32); + pub const LeafNode: Self = Self(3i32); +} +impl ::core::marker::Copy for ExpandCollapseState {} +impl ::core::clone::Clone for ExpandCollapseState { + fn clone(&self) -> Self { + *self + } +} +pub type GridItemPatternIdentifiers = *mut ::core::ffi::c_void; +pub type GridPatternIdentifiers = *mut ::core::ffi::c_void; +pub type MultipleViewPatternIdentifiers = *mut ::core::ffi::c_void; +pub type RangeValuePatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct RowOrColumnMajor(pub i32); +impl RowOrColumnMajor { + pub const RowMajor: Self = Self(0i32); + pub const ColumnMajor: Self = Self(1i32); + pub const Indeterminate: Self = Self(2i32); +} +impl ::core::marker::Copy for RowOrColumnMajor {} +impl ::core::clone::Clone for RowOrColumnMajor { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct ScrollAmount(pub i32); +impl ScrollAmount { + pub const LargeDecrement: Self = Self(0i32); + pub const SmallDecrement: Self = Self(1i32); + pub const NoAmount: Self = Self(2i32); + pub const LargeIncrement: Self = Self(3i32); + pub const SmallIncrement: Self = Self(4i32); +} +impl ::core::marker::Copy for ScrollAmount {} +impl ::core::clone::Clone for ScrollAmount { + fn clone(&self) -> Self { + *self + } +} +pub type ScrollPatternIdentifiers = *mut ::core::ffi::c_void; +pub type SelectionItemPatternIdentifiers = *mut ::core::ffi::c_void; +pub type SelectionPatternIdentifiers = *mut ::core::ffi::c_void; +pub type SpreadsheetItemPatternIdentifiers = *mut ::core::ffi::c_void; +pub type StylesPatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct SupportedTextSelection(pub i32); +impl SupportedTextSelection { + pub const None: Self = Self(0i32); + pub const Single: Self = Self(1i32); + pub const Multiple: Self = Self(2i32); +} +impl ::core::marker::Copy for SupportedTextSelection {} +impl ::core::clone::Clone for SupportedTextSelection { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct SynchronizedInputType(pub i32); +impl SynchronizedInputType { + pub const KeyUp: Self = Self(1i32); + pub const KeyDown: Self = Self(2i32); + pub const LeftMouseUp: Self = Self(4i32); + pub const LeftMouseDown: Self = Self(8i32); + pub const RightMouseUp: Self = Self(16i32); + pub const RightMouseDown: Self = Self(32i32); +} +impl ::core::marker::Copy for SynchronizedInputType {} +impl ::core::clone::Clone for SynchronizedInputType { + fn clone(&self) -> Self { + *self + } +} +pub type TableItemPatternIdentifiers = *mut ::core::ffi::c_void; +pub type TablePatternIdentifiers = *mut ::core::ffi::c_void; +pub type TogglePatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct ToggleState(pub i32); +impl ToggleState { + pub const Off: Self = Self(0i32); + pub const On: Self = Self(1i32); + pub const Indeterminate: Self = Self(2i32); +} +impl ::core::marker::Copy for ToggleState {} +impl ::core::clone::Clone for ToggleState { + fn clone(&self) -> Self { + *self + } +} +pub type TransformPattern2Identifiers = *mut ::core::ffi::c_void; +pub type TransformPatternIdentifiers = *mut ::core::ffi::c_void; +pub type ValuePatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct WindowInteractionState(pub i32); +impl WindowInteractionState { + pub const Running: Self = Self(0i32); + pub const Closing: Self = Self(1i32); + pub const ReadyForUserInteraction: Self = Self(2i32); + pub const BlockedByModalWindow: Self = Self(3i32); + pub const NotResponding: Self = Self(4i32); +} +impl ::core::marker::Copy for WindowInteractionState {} +impl ::core::clone::Clone for WindowInteractionState { + fn clone(&self) -> Self { + *self + } +} +pub type WindowPatternIdentifiers = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct WindowVisualState(pub i32); +impl WindowVisualState { + pub const Normal: Self = Self(0i32); + pub const Maximized: Self = Self(1i32); + pub const Minimized: Self = Self(2i32); +} +impl ::core::marker::Copy for WindowVisualState {} +impl ::core::clone::Clone for WindowVisualState { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] +#[repr(transparent)] +pub struct ZoomUnit(pub i32); +impl ZoomUnit { + pub const NoAmount: Self = Self(0i32); + pub const LargeDecrement: Self = Self(1i32); + pub const SmallDecrement: Self = Self(2i32); + pub const LargeIncrement: Self = Self(3i32); + pub const SmallIncrement: Self = Self(4i32); +} +impl ::core::marker::Copy for ZoomUnit {} +impl ::core::clone::Clone for ZoomUnit { + fn clone(&self) -> Self { + *self + } +} -- cgit v1.2.3