UNPKG

@nodert-win11/windows.ui.viewmanagement

Version:

Use the Windows.UI.ViewManagement UWP API directly from Node.js

878 lines (693 loc) 26.8 kB
Rect = (function () { var cls = function Rect() { }; return cls; }) (); exports.Rect = Rect; Size = (function () { var cls = function Size() { }; return cls; }) (); exports.Size = Size; Color = (function () { var cls = function Color() { }; return cls; }) (); exports.Color = Color; ViewManagementViewScalingContract = (function () { var cls = function ViewManagementViewScalingContract() { }; return cls; }) (); exports.ViewManagementViewScalingContract = ViewManagementViewScalingContract; _ApplicationViewBoundsMode = function () { this.useVisible = 0; this.useCoreWindow = 1; } exports.ApplicationViewBoundsMode = new _ApplicationViewBoundsMode(); _ApplicationViewMode = function () { this.default = 0; this.compactOverlay = 1; } exports.ApplicationViewMode = new _ApplicationViewMode(); _ApplicationViewOrientation = function () { this.landscape = 0; this.portrait = 1; } exports.ApplicationViewOrientation = new _ApplicationViewOrientation(); _ApplicationViewState = function () { this.fullScreenLandscape = 0; this.filled = 1; this.snapped = 2; this.fullScreenPortrait = 3; } exports.ApplicationViewState = new _ApplicationViewState(); _ApplicationViewSwitchingOptions = function () { this.default = 0; this.skipAnimation = 1; this.consolidateViews = 2; } exports.ApplicationViewSwitchingOptions = new _ApplicationViewSwitchingOptions(); _ApplicationViewWindowingMode = function () { this.auto = 0; this.preferredLaunchViewSize = 1; this.fullScreen = 2; this.compactOverlay = 3; this.maximized = 4; } exports.ApplicationViewWindowingMode = new _ApplicationViewWindowingMode(); _FullScreenSystemOverlayMode = function () { this.standard = 0; this.minimal = 1; } exports.FullScreenSystemOverlayMode = new _FullScreenSystemOverlayMode(); _HandPreference = function () { this.leftHanded = 0; this.rightHanded = 1; } exports.HandPreference = new _HandPreference(); _UIColorType = function () { this.background = 0; this.foreground = 1; this.accentDark3 = 2; this.accentDark2 = 3; this.accentDark1 = 4; this.accent = 5; this.accentLight1 = 6; this.accentLight2 = 7; this.accentLight3 = 8; this.complement = 9; } exports.UIColorType = new _UIColorType(); _UIElementType = function () { this.activeCaption = 0; this.background = 1; this.buttonFace = 2; this.buttonText = 3; this.captionText = 4; this.grayText = 5; this.highlight = 6; this.highlightText = 7; this.hotlight = 8; this.inactiveCaption = 9; this.inactiveCaptionText = 10; this.window = 11; this.windowText = 12; this.accentColor = 13; this.textHigh = 14; this.textMedium = 15; this.textLow = 16; this.textContrastWithHigh = 17; this.nonTextHigh = 18; this.nonTextMediumHigh = 19; this.nonTextMedium = 20; this.nonTextMediumLow = 21; this.nonTextLow = 22; this.pageBackground = 23; this.popupBackground = 24; this.overlayOutsidePopup = 25; } exports.UIElementType = new _UIElementType(); _UserInteractionMode = function () { this.mouse = 0; this.touch = 1; } exports.UserInteractionMode = new _UserInteractionMode(); _ViewSizePreference = function () { this.default = 0; this.useLess = 1; this.useHalf = 2; this.useMore = 3; this.useMinimum = 4; this.useNone = 5; this.custom = 6; } exports.ViewSizePreference = new _ViewSizePreference(); AccessibilitySettings = (function () { var cls = function AccessibilitySettings() { this.highContrast = new Boolean(); this.highContrastScheme = new String(); }; cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AccessibilitySettings = AccessibilitySettings; ActivationViewSwitcher = (function () { var cls = function ActivationViewSwitcher() { }; cls.prototype.showAsStandaloneAsync = function showAsStandaloneAsync(viewId, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// </signature> } cls.prototype.showAsStandaloneAsync = function showAsStandaloneAsync(viewId, sizePreference, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// <param name="sizePreference" type="ViewSizePreference">A param.</param> /// </signature> } cls.prototype.isViewPresentedOnActivationVirtualDesktop = function isViewPresentedOnActivationVirtualDesktop(viewId) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } return cls; }) (); exports.ActivationViewSwitcher = ActivationViewSwitcher; ApplicationView = (function () { var cls = function ApplicationView() { this.title = new String(); this.isScreenCaptureEnabled = new Boolean(); this.adjacentToLeftDisplayEdge = new Boolean(); this.adjacentToRightDisplayEdge = new Boolean(); this.id = new Number(); this.isFullScreen = new Boolean(); this.isOnLockScreen = new Boolean(); this.orientation = new ApplicationViewOrientation(); this.suppressSystemOverlays = new Boolean(); this.visibleBounds = new Object(); this.desiredBoundsMode = new ApplicationViewBoundsMode(); this.fullScreenSystemOverlayMode = new FullScreenSystemOverlayMode(); this.isFullScreenMode = new Boolean(); this.titleBar = new ApplicationViewTitleBar(); this.viewMode = new ApplicationViewMode(); this.persistedStateId = new String(); this.windowingEnvironment = new Object(); this.uIContext = new Object(); }; cls.prototype.tryEnterViewModeAsync = function tryEnterViewModeAsync(viewMode, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewMode" type="ApplicationViewMode">A param.</param> /// </signature> } cls.prototype.tryEnterViewModeAsync = function tryEnterViewModeAsync(viewMode, viewModePreferences, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewMode" type="ApplicationViewMode">A param.</param> /// <param name="viewModePreferences" type="ViewModePreferences">A param.</param> /// </signature> } cls.prototype.tryConsolidateAsync = function tryConsolidateAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.setDesiredBoundsMode = function setDesiredBoundsMode(boundsMode) { /// <signature> /// <summary>Function summary.</summary> /// <param name="boundsMode" type="ApplicationViewBoundsMode">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.tryEnterFullScreenMode = function tryEnterFullScreenMode() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.exitFullScreenMode = function exitFullScreenMode() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.showStandardSystemOverlays = function showStandardSystemOverlays() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.tryResizeView = function tryResizeView(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="Object">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.setPreferredMinSize = function setPreferredMinSize(minSize) { /// <signature> /// <summary>Function summary.</summary> /// <param name="minSize" type="Object">A param.</param> /// </signature> } cls.prototype.isViewModeSupported = function isViewModeSupported(viewMode) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewMode" type="ApplicationViewMode">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.getDisplayRegions = function getDisplayRegions() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Object" /> /// </signature> return new Object(); } cls.clearAllPersistedState = function clearAllPersistedState() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.clearPersistedState = function clearPersistedState(key) { /// <signature> /// <summary>Function summary.</summary> /// <param name="key" type="String">A param.</param> /// </signature> } cls.tryUnsnapToFullscreen = function tryUnsnapToFullscreen() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.getApplicationViewIdForWindow = function getApplicationViewIdForWindow(window) { /// <signature> /// <summary>Function summary.</summary> /// <param name="window" type="Object">A param.</param> /// <returns type="Number" /> /// </signature> return new Number(); } cls.getForCurrentView = function getForCurrentView() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="ApplicationView" /> /// </signature> return new ApplicationView(); } cls.tryUnsnap = function tryUnsnap() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.value = new ApplicationViewState(); cls.terminateAppOnFinalViewClose = new Boolean(); cls.preferredLaunchWindowingMode = new ApplicationViewWindowingMode(); cls.preferredLaunchViewSize = new Object(); cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.ApplicationView = ApplicationView; ApplicationViewConsolidatedEventArgs = (function () { var cls = function ApplicationViewConsolidatedEventArgs() { this.isUserInitiated = new Boolean(); this.isAppInitiated = new Boolean(); }; return cls; }) (); exports.ApplicationViewConsolidatedEventArgs = ApplicationViewConsolidatedEventArgs; ApplicationViewScaling = (function () { var cls = function ApplicationViewScaling() { }; cls.trySetDisableLayoutScaling = function trySetDisableLayoutScaling(disableLayoutScaling) { /// <signature> /// <summary>Function summary.</summary> /// <param name="disableLayoutScaling" type="Boolean">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.disableLayoutScaling = new Boolean(); return cls; }) (); exports.ApplicationViewScaling = ApplicationViewScaling; ApplicationViewSwitcher = (function () { var cls = function ApplicationViewSwitcher() { }; cls.tryShowAsViewModeAsync = function tryShowAsViewModeAsync(viewId, viewMode, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// <param name="viewMode" type="ApplicationViewMode">A param.</param> /// </signature> } cls.tryShowAsViewModeAsync = function tryShowAsViewModeAsync(viewId, viewMode, viewModePreferences, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// <param name="viewMode" type="ApplicationViewMode">A param.</param> /// <param name="viewModePreferences" type="ViewModePreferences">A param.</param> /// </signature> } cls.tryShowAsStandaloneAsync = function tryShowAsStandaloneAsync(viewId, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// </signature> } cls.tryShowAsStandaloneAsync = function tryShowAsStandaloneAsync(viewId, sizePreference, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// <param name="sizePreference" type="ViewSizePreference">A param.</param> /// </signature> } cls.tryShowAsStandaloneAsync = function tryShowAsStandaloneAsync(viewId, sizePreference, anchorViewId, anchorSizePreference, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// <param name="sizePreference" type="ViewSizePreference">A param.</param> /// <param name="anchorViewId" type="Number">A param.</param> /// <param name="anchorSizePreference" type="ViewSizePreference">A param.</param> /// </signature> } cls.switchAsync = function switchAsync(viewId, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewId" type="Number">A param.</param> /// </signature> } cls.switchAsync = function switchAsync(toViewId, fromViewId, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="toViewId" type="Number">A param.</param> /// <param name="fromViewId" type="Number">A param.</param> /// </signature> } cls.switchAsync = function switchAsync(toViewId, fromViewId, options, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="toViewId" type="Number">A param.</param> /// <param name="fromViewId" type="Number">A param.</param> /// <param name="options" type="ApplicationViewSwitchingOptions">A param.</param> /// </signature> } cls.prepareForCustomAnimatedSwitchAsync = function prepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, options, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="toViewId" type="Number">A param.</param> /// <param name="fromViewId" type="Number">A param.</param> /// <param name="options" type="ApplicationViewSwitchingOptions">A param.</param> /// </signature> } cls.disableSystemViewActivationPolicy = function disableSystemViewActivationPolicy() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.disableShowingMainViewOnActivation = function disableShowingMainViewOnActivation() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } return cls; }) (); exports.ApplicationViewSwitcher = ApplicationViewSwitcher; ApplicationViewTitleBar = (function () { var cls = function ApplicationViewTitleBar() { this.inactiveForegroundColor = new Object(); this.inactiveBackgroundColor = new Object(); this.foregroundColor = new Object(); this.buttonPressedForegroundColor = new Object(); this.buttonPressedBackgroundColor = new Object(); this.buttonInactiveForegroundColor = new Object(); this.buttonInactiveBackgroundColor = new Object(); this.buttonHoverForegroundColor = new Object(); this.buttonHoverBackgroundColor = new Object(); this.buttonForegroundColor = new Object(); this.buttonBackgroundColor = new Object(); this.backgroundColor = new Object(); }; return cls; }) (); exports.ApplicationViewTitleBar = ApplicationViewTitleBar; ApplicationViewTransferContext = (function () { var cls = function ApplicationViewTransferContext() { this.viewId = new Number(); }; cls.dataPackageFormatId = new String(); return cls; }) (); exports.ApplicationViewTransferContext = ApplicationViewTransferContext; InputPane = (function () { var cls = function InputPane() { this.occludedRect = new Object(); this.visible = new Boolean(); }; cls.prototype.tryShow = function tryShow() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.tryHide = function tryHide() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.getForUIContext = function getForUIContext(context) { /// <signature> /// <summary>Function summary.</summary> /// <param name="context" type="Object">A param.</param> /// <returns type="InputPane" /> /// </signature> return new InputPane(); } cls.getForCurrentView = function getForCurrentView() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="InputPane" /> /// </signature> return new InputPane(); } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.InputPane = InputPane; InputPaneVisibilityEventArgs = (function () { var cls = function InputPaneVisibilityEventArgs() { this.ensuredFocusedElementInView = new Boolean(); this.occludedRect = new Object(); }; return cls; }) (); exports.InputPaneVisibilityEventArgs = InputPaneVisibilityEventArgs; ProjectionManager = (function () { var cls = function ProjectionManager() { }; cls.startProjectingAsync = function startProjectingAsync(projectionViewId, anchorViewId, displayDeviceInfo, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="projectionViewId" type="Number">A param.</param> /// <param name="anchorViewId" type="Number">A param.</param> /// <param name="displayDeviceInfo" type="Object">A param.</param> /// </signature> } cls.startProjectingAsync = function startProjectingAsync(projectionViewId, anchorViewId, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="projectionViewId" type="Number">A param.</param> /// <param name="anchorViewId" type="Number">A param.</param> /// </signature> } cls.requestStartProjectingAsync = function requestStartProjectingAsync(projectionViewId, anchorViewId, selection, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="projectionViewId" type="Number">A param.</param> /// <param name="anchorViewId" type="Number">A param.</param> /// <param name="selection" type="Object">A param.</param> /// </signature> } cls.requestStartProjectingAsync = function requestStartProjectingAsync(projectionViewId, anchorViewId, selection, prefferedPlacement, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="projectionViewId" type="Number">A param.</param> /// <param name="anchorViewId" type="Number">A param.</param> /// <param name="selection" type="Object">A param.</param> /// <param name="prefferedPlacement" type="Number">A param.</param> /// </signature> } cls.swapDisplaysForViewsAsync = function swapDisplaysForViewsAsync(projectionViewId, anchorViewId, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="projectionViewId" type="Number">A param.</param> /// <param name="anchorViewId" type="Number">A param.</param> /// </signature> } cls.stopProjectingAsync = function stopProjectingAsync(projectionViewId, anchorViewId, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="projectionViewId" type="Number">A param.</param> /// <param name="anchorViewId" type="Number">A param.</param> /// </signature> } cls.getDeviceSelector = function getDeviceSelector() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="String" /> /// </signature> return new String(); } cls.projectionDisplayAvailable = new Boolean(); cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.ProjectionManager = ProjectionManager; StatusBar = (function () { var cls = function StatusBar() { this.foregroundColor = new Object(); this.backgroundOpacity = new Number(); this.backgroundColor = new Object(); this.occludedRect = new Object(); this.progressIndicator = new StatusBarProgressIndicator(); }; cls.prototype.showAsync = function showAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.hideAsync = function hideAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.getForCurrentView = function getForCurrentView() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="StatusBar" /> /// </signature> return new StatusBar(); } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.StatusBar = StatusBar; StatusBarProgressIndicator = (function () { var cls = function StatusBarProgressIndicator() { this.text = new String(); this.progressValue = new Number(); }; cls.prototype.showAsync = function showAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.hideAsync = function hideAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } return cls; }) (); exports.StatusBarProgressIndicator = StatusBarProgressIndicator; UISettings = (function () { var cls = function UISettings() { this.animationsEnabled = new Boolean(); this.caretBlinkRate = new Number(); this.caretBrowsingEnabled = new Boolean(); this.caretWidth = new Number(); this.cursorSize = new Object(); this.doubleClickTime = new Number(); this.handPreference = new HandPreference(); this.messageDuration = new Number(); this.mouseHoverTime = new Number(); this.scrollBarArrowSize = new Object(); this.scrollBarSize = new Object(); this.scrollBarThumbBoxSize = new Object(); this.textScaleFactor = new Number(); this.advancedEffectsEnabled = new Boolean(); this.autoHideScrollBars = new Boolean(); }; cls.prototype.uIElementColor = function uIElementColor(desiredElement) { /// <signature> /// <summary>Function summary.</summary> /// <param name="desiredElement" type="UIElementType">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.getColorValue = function getColorValue(desiredColor) { /// <signature> /// <summary>Function summary.</summary> /// <param name="desiredColor" type="UIColorType">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.UISettings = UISettings; UISettingsAnimationsEnabledChangedEventArgs = (function () { var cls = function UISettingsAnimationsEnabledChangedEventArgs() { }; return cls; }) (); exports.UISettingsAnimationsEnabledChangedEventArgs = UISettingsAnimationsEnabledChangedEventArgs; UISettingsAutoHideScrollBarsChangedEventArgs = (function () { var cls = function UISettingsAutoHideScrollBarsChangedEventArgs() { }; return cls; }) (); exports.UISettingsAutoHideScrollBarsChangedEventArgs = UISettingsAutoHideScrollBarsChangedEventArgs; UISettingsMessageDurationChangedEventArgs = (function () { var cls = function UISettingsMessageDurationChangedEventArgs() { }; return cls; }) (); exports.UISettingsMessageDurationChangedEventArgs = UISettingsMessageDurationChangedEventArgs; UIViewSettings = (function () { var cls = function UIViewSettings() { this.userInteractionMode = new UserInteractionMode(); }; cls.getForCurrentView = function getForCurrentView() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="UIViewSettings" /> /// </signature> return new UIViewSettings(); } return cls; }) (); exports.UIViewSettings = UIViewSettings; ViewModePreferences = (function () { var cls = function ViewModePreferences() { this.viewSizePreference = new ViewSizePreference(); this.customSize = new Object(); }; cls.createDefault = function createDefault(mode) { /// <signature> /// <summary>Function summary.</summary> /// <param name="mode" type="ApplicationViewMode">A param.</param> /// <returns type="ViewModePreferences" /> /// </signature> return new ViewModePreferences(); } return cls; }) (); exports.ViewModePreferences = ViewModePreferences;