/
FrameworkVisibility.ts
56 lines (45 loc) · 2.05 KB
/
FrameworkVisibility.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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Utilities
*/
/**
* [[UiFramework.visibility]] interface
* @public
*/
export interface FrameworkVisibility {
/** Determines if the Ui is visible */
isUiVisible: boolean;
/** Determines whether the `auto-hide Ui` feature is on. Defaults to false.
* When true, the Ui automatically hides after a few seconds of inactivity.
*/
autoHideUi: boolean;
/** Determines whether the widget panels are shown and hidden. Defaults to false. */
showHidePanels: boolean;
/** Determines whether the status bar is shown and hidden. Defaults to false. */
showHideFooter: boolean;
/** Determines the amount of inactivity time before the Ui is hidden. Defaults to 3.5 seconds. */
inactivityTime: number;
/** Determines whether the proximity of the mouse should alter the opacity of a toolbar. Defaults to `true`.
* @deprecated in 4.11.x. The preferred mode is to change opacity in a snappy way (use {@link FrameworkVisibility.snapWidgetOpacity}).
*/
useProximityOpacity: boolean;
/** Determines whether the opacity of a toolbar should change immediately when the mouse gets close. Defaults to `false`. */
snapWidgetOpacity: boolean;
/** Handler for when a Frontstage is ready */
handleFrontstageReady(): void;
/** Handler for when the mouse moves over the content area */
handleContentMouseMove(
_event?: React.MouseEvent<HTMLElement, MouseEvent>
): void;
/** Handler for when the mouse enters a widget */
handleWidgetMouseEnter(
_event?: React.MouseEvent<HTMLElement, MouseEvent>
): void;
/** Shows the Ui and resets the inactivity timer */
showUiAndResetTimer(): void;
/** Shows the Ui and cancels the inactivity timer */
showUiAndCancelTimer(): void;
}