-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ViewWindowsProps.ts
80 lines (69 loc) · 2.03 KB
/
ViewWindowsProps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
* @format
*/
import {IKeyboardProps} from '../Keyboard/KeyboardExtProps';
import {NativeSyntheticEvent, ViewProps} from 'react-native';
export type INativeMouseEvent = {
target: number;
identifier: number;
pageX: number;
pageY: number;
locationX: number;
locationY: number;
timestamp: number;
pointerType: string;
force: number;
isLeftButton: boolean;
isRightButton: boolean;
isMiddleButton: boolean;
isBarrelButtonPressed: boolean;
isHorizontalScrollWheel: boolean;
isEraser: boolean;
shiftKey: boolean;
ctrlKey: boolean;
altKey: boolean;
};
export type IMouseEvent = NativeSyntheticEvent<INativeMouseEvent>;
/**
* @remarks
* Props type for ViewWindows component
*
* Extends: {@link IKeyboardProps} and {@link https://facebook.github.io/react-native/docs/view | react-native's ViewProps}
*/
export interface IViewWindowsProps extends IKeyboardProps, ViewProps {
children?: any;
/**
* Indicates to accessibility services that the UI Component is within a set and has the given numbered position.
*
* See https://github.com/ReactWindows/discussions-and-proposals/blob/harinik-accessibility/proposals/0000-accessibilityapis-lists.md
*/
accessibilityPosInSet?: number;
/**
* Indicates to accessibility services that the UI Component is within a set with the given size.
*
* See https://github.com/ReactWindows/discussions-and-proposals/blob/harinik-accessibility/proposals/0000-accessibilityapis-lists.md
*/
accessibilitySetSize?: number;
/**
* Specifies the Tooltip for the view
*/
tooltip?: string;
/**
* Indicates the TabIndex to use for this view
*/
tabIndex?: number;
/**
* Specifies if the control should show System focus visuals
*/
enableFocusRing?: boolean;
/**
* Event fired when the mouse leaves the view
*/
onMouseLeave?: (args: IMouseEvent) => void;
/**
* Event fired when the mouse enters the view
*/
onMouseEnter?: (args: IMouseEvent) => void;
}