UNPKG

@nodert-win11/windows.ui.xaml.hosting

Version:

Use the Windows.UI.Xaml.Hosting UWP API directly from Node.js

480 lines (363 loc) 14.3 kB
Size = (function () { var cls = function Size() { }; return cls; }) (); exports.Size = Size; Rect = (function () { var cls = function Rect() { }; return cls; }) (); exports.Rect = Rect; HostingContract = (function () { var cls = function HostingContract() { }; return cls; }) (); exports.HostingContract = HostingContract; _DesignerAppViewState = function () { this.visible = 0; this.hidden = 1; } exports.DesignerAppViewState = new _DesignerAppViewState(); _XamlSourceFocusNavigationReason = function () { this.programmatic = 0; this.restore = 1; this.first = 2; this.last = 3; this.left = 4; this.up = 5; this.right = 6; this.down = 7; } exports.XamlSourceFocusNavigationReason = new _XamlSourceFocusNavigationReason(); DesignerAppExitedEventArgs = (function () { var cls = function DesignerAppExitedEventArgs() { this.exitCode = new Number(); }; return cls; }) (); exports.DesignerAppExitedEventArgs = DesignerAppExitedEventArgs; DesignerAppManager = (function () { var cls = function DesignerAppManager() { this.appUserModelId = new String(); }; var cls = function DesignerAppManager(appUserModelId) { this.appUserModelId = new String(); }; cls.prototype.createNewViewAsync = function createNewViewAsync(initialViewState, initialViewSize, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="initialViewState" type="DesignerAppViewState">A param.</param> /// <param name="initialViewSize" type="Object">A param.</param> /// </signature> } cls.prototype.loadObjectIntoAppAsync = function loadObjectIntoAppAsync(dllName, classId, initializationData, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="dllName" type="String">A param.</param> /// <param name="classId" type="String">A param.</param> /// <param name="initializationData" type="String">A param.</param> /// </signature> } cls.prototype.close = function close() { } 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.DesignerAppManager = DesignerAppManager; DesignerAppView = (function () { var cls = function DesignerAppView() { this.appUserModelId = new String(); this.applicationViewId = new Number(); this.viewSize = new Object(); this.viewState = new DesignerAppViewState(); }; cls.prototype.updateViewAsync = function updateViewAsync(viewState, viewSize, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="viewState" type="DesignerAppViewState">A param.</param> /// <param name="viewSize" type="Object">A param.</param> /// </signature> } cls.prototype.close = function close() { } return cls; }) (); exports.DesignerAppView = DesignerAppView; DesktopWindowXamlSource = (function () { var cls = function DesktopWindowXamlSource() { this.content = new Object(); this.hasFocus = new Boolean(); }; cls.prototype.navigateFocus = function navigateFocus(request) { /// <signature> /// <summary>Function summary.</summary> /// <param name="request" type="XamlSourceFocusNavigationRequest">A param.</param> /// <returns type="XamlSourceFocusNavigationResult" /> /// </signature> return new XamlSourceFocusNavigationResult(); } cls.prototype.close = function close() { } 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.DesktopWindowXamlSource = DesktopWindowXamlSource; DesktopWindowXamlSourceGotFocusEventArgs = (function () { var cls = function DesktopWindowXamlSourceGotFocusEventArgs() { this.request = new XamlSourceFocusNavigationRequest(); }; return cls; }) (); exports.DesktopWindowXamlSourceGotFocusEventArgs = DesktopWindowXamlSourceGotFocusEventArgs; DesktopWindowXamlSourceTakeFocusRequestedEventArgs = (function () { var cls = function DesktopWindowXamlSourceTakeFocusRequestedEventArgs() { this.request = new XamlSourceFocusNavigationRequest(); }; return cls; }) (); exports.DesktopWindowXamlSourceTakeFocusRequestedEventArgs = DesktopWindowXamlSourceTakeFocusRequestedEventArgs; ElementCompositionPreview = (function () { var cls = function ElementCompositionPreview() { }; cls.setAppWindowContent = function setAppWindowContent(appWindow, xamlContent) { /// <signature> /// <summary>Function summary.</summary> /// <param name="appWindow" type="Object">A param.</param> /// <param name="xamlContent" type="Object">A param.</param> /// </signature> } cls.getAppWindowContent = function getAppWindowContent(appWindow) { /// <signature> /// <summary>Function summary.</summary> /// <param name="appWindow" type="Object">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.setImplicitShowAnimation = function setImplicitShowAnimation(element, animation) { /// <signature> /// <summary>Function summary.</summary> /// <param name="element" type="Object">A param.</param> /// <param name="animation" type="Object">A param.</param> /// </signature> } cls.setImplicitHideAnimation = function setImplicitHideAnimation(element, animation) { /// <signature> /// <summary>Function summary.</summary> /// <param name="element" type="Object">A param.</param> /// <param name="animation" type="Object">A param.</param> /// </signature> } cls.setIsTranslationEnabled = function setIsTranslationEnabled(element, value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="element" type="Object">A param.</param> /// <param name="value" type="Boolean">A param.</param> /// </signature> } cls.getPointerPositionPropertySet = function getPointerPositionPropertySet(targetElement) { /// <signature> /// <summary>Function summary.</summary> /// <param name="targetElement" type="Object">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.getElementVisual = function getElementVisual(element) { /// <signature> /// <summary>Function summary.</summary> /// <param name="element" type="Object">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.getElementChildVisual = function getElementChildVisual(element) { /// <signature> /// <summary>Function summary.</summary> /// <param name="element" type="Object">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.setElementChildVisual = function setElementChildVisual(element, visual) { /// <signature> /// <summary>Function summary.</summary> /// <param name="element" type="Object">A param.</param> /// <param name="visual" type="Object">A param.</param> /// </signature> } cls.getScrollViewerManipulationPropertySet = function getScrollViewerManipulationPropertySet(scrollViewer) { /// <signature> /// <summary>Function summary.</summary> /// <param name="scrollViewer" type="Object">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } return cls; }) (); exports.ElementCompositionPreview = ElementCompositionPreview; IXamlUIPresenterHost = (function () { var cls = function IXamlUIPresenterHost() { }; cls.prototype.resolveFileResource = function resolveFileResource(path) { /// <signature> /// <summary>Function summary.</summary> /// <param name="path" type="String">A param.</param> /// <returns type="String" /> /// </signature> return new String(); } return cls; }) (); exports.IXamlUIPresenterHost = IXamlUIPresenterHost; IXamlUIPresenterHost2 = (function () { var cls = function IXamlUIPresenterHost2() { }; cls.prototype.getGenericXamlFilePath = function getGenericXamlFilePath() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="String" /> /// </signature> return new String(); } return cls; }) (); exports.IXamlUIPresenterHost2 = IXamlUIPresenterHost2; IXamlUIPresenterHost3 = (function () { var cls = function IXamlUIPresenterHost3() { }; cls.prototype.resolveDictionaryResource = function resolveDictionaryResource(dictionary, dictionaryKey, suggestedValue) { /// <signature> /// <summary>Function summary.</summary> /// <param name="dictionary" type="Object">A param.</param> /// <param name="dictionaryKey" type="Object">A param.</param> /// <param name="suggestedValue" type="Object">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } return cls; }) (); exports.IXamlUIPresenterHost3 = IXamlUIPresenterHost3; WindowsXamlManager = (function () { var cls = function WindowsXamlManager() { }; cls.prototype.close = function close() { } cls.initializeForCurrentThread = function initializeForCurrentThread() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="WindowsXamlManager" /> /// </signature> return new WindowsXamlManager(); } return cls; }) (); exports.WindowsXamlManager = WindowsXamlManager; XamlSourceFocusNavigationRequest = (function () { var cls = function XamlSourceFocusNavigationRequest() { this.correlationId = new String(); this.hintRect = new Object(); this.reason = new XamlSourceFocusNavigationReason(); }; var cls = function XamlSourceFocusNavigationRequest(reason) { this.correlationId = new String(); this.hintRect = new Object(); this.reason = new XamlSourceFocusNavigationReason(); }; var cls = function XamlSourceFocusNavigationRequest(reason, hintRect) { this.correlationId = new String(); this.hintRect = new Object(); this.reason = new XamlSourceFocusNavigationReason(); }; var cls = function XamlSourceFocusNavigationRequest(reason, hintRect, correlationId) { this.correlationId = new String(); this.hintRect = new Object(); this.reason = new XamlSourceFocusNavigationReason(); }; return cls; }) (); exports.XamlSourceFocusNavigationRequest = XamlSourceFocusNavigationRequest; XamlSourceFocusNavigationResult = (function () { var cls = function XamlSourceFocusNavigationResult() { this.wasFocusMoved = new Boolean(); }; var cls = function XamlSourceFocusNavigationResult(focusMoved) { this.wasFocusMoved = new Boolean(); }; return cls; }) (); exports.XamlSourceFocusNavigationResult = XamlSourceFocusNavigationResult; XamlUIPresenter = (function () { var cls = function XamlUIPresenter() { this.themeResourcesXaml = new String(); this.themeKey = new String(); this.rootElement = new Object(); }; cls.prototype.setSize = function setSize(width, height) { /// <signature> /// <summary>Function summary.</summary> /// <param name="width" type="Number">A param.</param> /// <param name="height" type="Number">A param.</param> /// </signature> } cls.prototype.render = function render() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.present = function present() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.getFlyoutPlacementTargetInfo = function getFlyoutPlacementTargetInfo(placementTarget, preferredPlacement, targetPreferredPlacement, allowFallbacks) { /// <signature> /// <summary>Function summary.</summary> /// <param name="placementTarget" type="Object">A param.</param> /// <param name="preferredPlacement" type="Number">A param.</param> /// <param name="targetPreferredPlacement" type="Number">A param.</param> /// <param name="allowFallbacks" type="Boolean">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.getFlyoutPlacement = function getFlyoutPlacement(placementTargetBounds, controlSize, minControlSize, containerRect, targetPreferredPlacement, allowFallbacks, chosenPlacement) { /// <signature> /// <summary>Function summary.</summary> /// <param name="placementTargetBounds" type="Object">A param.</param> /// <param name="controlSize" type="Object">A param.</param> /// <param name="minControlSize" type="Object">A param.</param> /// <param name="containerRect" type="Object">A param.</param> /// <param name="targetPreferredPlacement" type="Number">A param.</param> /// <param name="allowFallbacks" type="Boolean">A param.</param> /// <param name="chosenPlacement" type="Number">A param.</param> /// <returns type="Object" /> /// </signature> return new Object(); } cls.setHost = function setHost(host) { /// <signature> /// <summary>Function summary.</summary> /// <param name="host" type="IXamlUIPresenterHost">A param.</param> /// </signature> } cls.notifyWindowSizeChanged = function notifyWindowSizeChanged() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.completeTimelinesAutomatically = new Boolean(); return cls; }) (); exports.XamlUIPresenter = XamlUIPresenter;