diff --git a/externs/air/flash/display/DisplayObject.hx b/externs/air/flash/display/DisplayObject.hx index 10727c2b7..033dc45fd 100644 --- a/externs/air/flash/display/DisplayObject.hx +++ b/externs/air/flash/display/DisplayObject.hx @@ -2,6 +2,7 @@ package flash.display; extern class DisplayObject extends flash.events.EventDispatcher implements IBitmapDrawable { + #if (haxe_ver < 4.3) var accessibilityProperties:flash.accessibility.AccessibilityProperties; var alpha:Float; var blendMode:BlendMode; @@ -36,6 +37,42 @@ extern class DisplayObject extends flash.events.EventDispatcher implements IBitm var x:Float; var y:Float; @:require(flash10) var z:Float; + #else + @:flash.property var accessibilityProperties:flash.accessibility.AccessibilityProperties; + @:flash.property var alpha:Float; + @:flash.property var blendMode:BlendMode; + @:flash.property @:require(flash10) var blendShader(never, default):Shader; + @:flash.property var cacheAsBitmap:Bool; + #if air + @:flash.property var cacheAsBitmapMatrix:flash.geom.Matrix; + #end + @:flash.property var filters(get, set):Array; + @:flash.property var height(get, set):Float; + @:flash.property var loaderInfo(get, never):LoaderInfo; + @:flash.property var mask(get, set):DisplayObject; + @:flash.property var mouseX(get, never):Float; + @:flash.property var mouseY(get, never):Float; + @:flash.property var name(get, set):String; + @:flash.property var opaqueBackground(get, set):Null; + @:flash.property var parent(get, never):DisplayObjectContainer; + @:flash.property var root(get, never):DisplayObject; + @:flash.property var rotation(get, set):Float; + @:flash.property @:require(flash10) var rotationX(get, set):Float; + @:flash.property @:require(flash10) var rotationY(get, set):Float; + @:flash.property @:require(flash10) var rotationZ(get, set):Float; + @:flash.property var scale9Grid(get, set):flash.geom.Rectangle; + @:flash.property var scaleX(get, set):Float; + @:flash.property var scaleY(get, set):Float; + @:flash.property @:require(flash10) var scaleZ(get, set):Float; + @:flash.property var scrollRect(get, set):flash.geom.Rectangle; + @:flash.property var stage(get, never):Stage; + @:flash.property var transform(get, set):flash.geom.Transform; + @:flash.property var visible(get, set):Bool; + @:flash.property var width(get, set):Float; + @:flash.property var x(get, set):Float; + @:flash.property var y(get, set):Float; + @:flash.property @:require(flash10) var z(get, set):Float; + #end function getBounds(targetCoordinateSpace:DisplayObject):flash.geom.Rectangle; function getRect(targetCoordinateSpace:DisplayObject):flash.geom.Rectangle; function globalToLocal(point:flash.geom.Point):flash.geom.Point; @@ -44,4 +81,70 @@ extern class DisplayObject extends flash.events.EventDispatcher implements IBitm function hitTestPoint(x:Float, y:Float, shapeFlag:Bool = false):Bool; @:require(flash10) function local3DToGlobal(point3d:flash.geom.Vector3D):flash.geom.Point; function localToGlobal(point:flash.geom.Point):flash.geom.Point; + + #if (haxe_ver >= 4.3) + private function get_accessibilityProperties():flash.accessibility.AccessibilityProperties; + private function get_alpha():Float; + private function get_blendMode():BlendMode; + private function get_cacheAsBitmap():Bool; + private function get_filters():Array; + private function get_height():Float; + private function get_loaderInfo():LoaderInfo; + private function get_mask():DisplayObject; + private function get_metaData():Dynamic; + private function get_mouseX():Float; + private function get_mouseY():Float; + private function get_name():String; + private function get_opaqueBackground():Null; + private function get_parent():DisplayObjectContainer; + private function get_root():DisplayObject; + private function get_rotation():Float; + private function get_rotationX():Float; + private function get_rotationY():Float; + private function get_rotationZ():Float; + private function get_scale9Grid():flash.geom.Rectangle; + private function get_scaleX():Float; + private function get_scaleY():Float; + private function get_scaleZ():Float; + private function get_scrollRect():flash.geom.Rectangle; + private function get_stage():Stage; + private function get_transform():flash.geom.Transform; + private function get_visible():Bool; + private function get_width():Float; + private function get_x():Float; + private function get_y():Float; + private function get_z():Float; + #if air + private function get_cacheAsBitmapMatrix():flash.geom.Matrix; + #end + private function set_accessibilityProperties(value:flash.accessibility.AccessibilityProperties):flash.accessibility.AccessibilityProperties; + private function set_alpha(value:Float):Float; + private function set_blendMode(value:BlendMode):BlendMode; + private function set_blendShader(value:Shader):Shader; + private function set_cacheAsBitmap(value:Bool):Bool; + private function set_filters(value:Array):Array; + private function set_height(value:Float):Float; + private function set_mask(value:DisplayObject):DisplayObject; + private function set_metaData(value:Dynamic):Dynamic; + private function set_name(value:String):String; + private function set_opaqueBackground(value:Null):Null; + private function set_rotation(value:Float):Float; + private function set_rotationX(value:Float):Float; + private function set_rotationY(value:Float):Float; + private function set_rotationZ(value:Float):Float; + private function set_scale9Grid(value:flash.geom.Rectangle):flash.geom.Rectangle; + private function set_scaleX(value:Float):Float; + private function set_scaleY(value:Float):Float; + private function set_scaleZ(value:Float):Float; + private function set_scrollRect(value:flash.geom.Rectangle):flash.geom.Rectangle; + private function set_transform(value:flash.geom.Transform):flash.geom.Transform; + private function set_visible(value:Bool):Bool; + private function set_width(value:Float):Float; + private function set_x(value:Float):Float; + private function set_y(value:Float):Float; + private function set_z(value:Float):Float; + #if air + private function set_cacheAsBitmapMatrix(value:flash.geom.Matrix):flash.geom.Matrix; + #end + #end } diff --git a/externs/air/flash/display/InteractiveObject.hx b/externs/air/flash/display/InteractiveObject.hx index 7ae2c88ed..14ff81c08 100644 --- a/externs/air/flash/display/InteractiveObject.hx +++ b/externs/air/flash/display/InteractiveObject.hx @@ -2,6 +2,7 @@ package flash.display; extern class InteractiveObject extends DisplayObject { + #if (haxe_ver < 4.3) var accessibilityImplementation:flash.accessibility.AccessibilityImplementation; // var contextMenu : #if air flash.display.NativeMenu #else flash.ui.ContextMenu #end; var contextMenu:NativeMenu; @@ -12,6 +13,39 @@ extern class InteractiveObject extends DisplayObject @:require(flash11) var softKeyboardInputAreaOfInterest:flash.geom.Rectangle; var tabEnabled:Bool; var tabIndex:Int; + #else + @:flash.property var accessibilityImplementation(get, set):flash.accessibility.AccessibilityImplementation; + // @:flash.property var contextMenu : #if air flash.display.NativeMenu #else flash.ui.ContextMenu #end; + @:flash.property var contextMenu(get, set):NativeMenu; + @:flash.property var doubleClickEnabled(get, set):Bool; + @:flash.property var focusRect(get, set):Dynamic; + @:flash.property var mouseEnabled(get, set):Bool; + @:flash.property @:require(flash11) var needsSoftKeyboard(get, set):Bool; + @:flash.property @:require(flash11) var softKeyboardInputAreaOfInterest(get, set):flash.geom.Rectangle; + @:flash.property var tabEnabled(get, set):Bool; + @:flash.property var tabIndex(get, set):Int; + #end function new():Void; @:require(flash11) function requestSoftKeyboard():Bool; + + #if (haxe_ver >= 4.3) + private function get_accessibilityImplementation():flash.accessibility.AccessibilityImplementation; + private function get_contextMenu():#if air flash.display.NativeMenu #else flash.ui.ContextMenu #end; + private function get_doubleClickEnabled():Bool; + private function get_focusRect():Dynamic; + private function get_mouseEnabled():Bool; + private function get_needsSoftKeyboard():Bool; + private function get_softKeyboardInputAreaOfInterest():flash.geom.Rectangle; + private function get_tabEnabled():Bool; + private function get_tabIndex():Int; + private function set_accessibilityImplementation(value:flash.accessibility.AccessibilityImplementation):flash.accessibility.AccessibilityImplementation; + private function set_contextMenu(value:#if air flash.display.NativeMenu #else flash.ui.ContextMenu #end):#if air flash.display.NativeMenu #else flash.ui.ContextMenu #end; + private function set_doubleClickEnabled(value:Bool):Bool; + private function set_focusRect(value:Dynamic):Dynamic; + private function set_mouseEnabled(value:Bool):Bool; + private function set_needsSoftKeyboard(value:Bool):Bool; + private function set_softKeyboardInputAreaOfInterest(value:flash.geom.Rectangle):flash.geom.Rectangle; + private function set_tabEnabled(value:Bool):Bool; + private function set_tabIndex(value:Int):Int; + #end } diff --git a/externs/air/flash/display/Loader.hx b/externs/air/flash/display/Loader.hx index 867b788ae..cb41a5699 100644 --- a/externs/air/flash/display/Loader.hx +++ b/externs/air/flash/display/Loader.hx @@ -2,9 +2,15 @@ package flash.display; extern class Loader extends DisplayObjectContainer { + #if (haxe_ver < 4.3) var content(default, never):DisplayObject; var contentLoaderInfo(default, never):LoaderInfo; @:require(flash10_1) var uncaughtErrorEvents(default, never):flash.events.UncaughtErrorEvents; + #else + @:flash.property var content(get, never):DisplayObject; + @:flash.property var contentLoaderInfo(get, never):LoaderInfo; + @:flash.property @:require(flash10_1) var uncaughtErrorEvents(get, never):flash.events.UncaughtErrorEvents; + #end function new():Void; function close():Void; function load(request:flash.net.URLRequest, ?context:flash.system.LoaderContext):Void; @@ -14,4 +20,10 @@ extern class Loader extends DisplayObjectContainer #end function unload():Void; @:require(flash10) function unloadAndStop(gc:Bool = true):Void; + + #if (haxe_ver >= 4.3) + private function get_content():DisplayObject; + private function get_contentLoaderInfo():LoaderInfo; + private function get_uncaughtErrorEvents():flash.events.UncaughtErrorEvents; + #end } diff --git a/externs/air/flash/display/NativeMenu.hx b/externs/air/flash/display/NativeMenu.hx index 066f5e2e9..09c711cb6 100644 --- a/externs/air/flash/display/NativeMenu.hx +++ b/externs/air/flash/display/NativeMenu.hx @@ -2,10 +2,20 @@ package flash.display; @:require(flash10_1) extern class NativeMenu extends flash.events.EventDispatcher { + #if (haxe_ver < 4.3) #if air var items:Array; var numItems(default, never):Int; var parent(default, never):NativeMenu; + static var isSupported(default, never):Bool; + #end + #else + #if air + @:flash.property var items(get, set):Array; + @:flash.property var numItems(get, never):Int; + @:flash.property var parent(get, never):NativeMenu; + @:flash.property static var isSupported(get, never):Bool; + #end #end function new():Void; #if air @@ -24,6 +34,15 @@ package flash.display; function removeItem(item:NativeMenuItem):NativeMenuItem; function removeItemAt(index:Int):NativeMenuItem; function setItemIndex(item:NativeMenuItem, index:Int):Void; - static var isSupported(default, never):Bool; + #end + + #if (haxe_ver >= 4.3) + #if air + private function get_items():Array; + private function get_numItems():Int; + private function get_parent():NativeMenu; + private function set_items(value:Array):Array; + private static function get_isSupported():Bool; + #end #end } diff --git a/externs/air/flash/display/NativeMenuItem.hx b/externs/air/flash/display/NativeMenuItem.hx index a0cd6eeed..ad5e91135 100644 --- a/externs/air/flash/display/NativeMenuItem.hx +++ b/externs/air/flash/display/NativeMenuItem.hx @@ -2,6 +2,7 @@ package flash.display; @:require(flash10_1) extern class NativeMenuItem extends flash.events.EventDispatcher { + #if (haxe_ver < 4.3) var checked:Bool; var data:Dynamic; var enabled:Bool; @@ -13,7 +14,44 @@ package flash.display; var mnemonicIndex:Int; var name:String; var submenu:NativeMenu; + #else + @:flash.property var checked(get, set):Bool; + @:flash.property var data(get, set):Dynamic; + @:flash.property var enabled(get, set):Bool; + @:flash.property var isSeparator(get, never):Bool; + @:flash.property var keyEquivalent(get, set):String; + @:flash.property var keyEquivalentModifiers(get, set):Array; + @:flash.property var label(get, set):String; + @:flash.property var menu(get, never):NativeMenu; + @:flash.property var mnemonicIndex(get, set):Int; + @:flash.property var name(get, set):String; + @:flash.property var submenu(get, set):NativeMenu; + #end + function new(?label:String = "", ?isSeparator:Bool = false):Void; function clone():NativeMenuItem; override function toString():String; + + #if (haxe_ver >= 4.3) + private function get_checked():Bool; + private function get_data():Dynamic; + private function get_enabled():Bool; + private function get_isSeparator():Bool; + private function get_keyEquivalent():String; + private function get_keyEquivalentModifiers():Array; + private function get_label():String; + private function get_menu():NativeMenu; + private function get_mnemonicIndex():Int; + private function get_name():String; + private function get_submenu():NativeMenu; + private function set_checked(value:Bool):Bool; + private function set_data(value:Dynamic):Dynamic; + private function set_enabled(value:Bool):Bool; + private function set_keyEquivalent(value:String):String; + private function set_keyEquivalentModifiers(value:Array):Array; + private function set_label(value:String):String; + private function set_mnemonicIndex(value:Int):Int; + private function set_name(value:String):String; + private function set_submenu(value:NativeMenu):NativeMenu; + #end } diff --git a/externs/air/flash/display/NativeWindow.hx b/externs/air/flash/display/NativeWindow.hx index 2c8b8590d..9517b4f74 100644 --- a/externs/air/flash/display/NativeWindow.hx +++ b/externs/air/flash/display/NativeWindow.hx @@ -2,6 +2,7 @@ package flash.display; extern class NativeWindow extends flash.events.EventDispatcher { + #if (haxe_ver < 4.3) var active(default, never):Bool; var alwaysInFront:Bool; var bounds:flash.geom.Rectangle; @@ -25,6 +26,44 @@ extern class NativeWindow extends flash.events.EventDispatcher var width:Float; var x:Float; var y:Float; + static var isSupported(default, never):Bool; + static var supportsMenu(default, never):Bool; + static var supportsNotification(default, never):Bool; + static var supportsTransparency(default, never):Bool; + static var systemMaxSize(default, never):flash.geom.Point; + static var systemMinSize(default, never):flash.geom.Point; + #else + @:flash.property var active(get, never):Bool; + @:flash.property var alwaysInFront(get, set):Bool; + @:flash.property var bounds(get, set):flash.geom.Rectangle; + @:flash.property var closed(get, never):Bool; + @:flash.property var displayState(get, never):NativeWindowDisplayState; + @:flash.property var height(get, set):Float; + @:flash.property var maxSize(get, set):flash.geom.Point; + @:flash.property var maximizable(get, never):Bool; + @:flash.property var menu(get, set):NativeMenu; + @:flash.property var minSize(get, set):flash.geom.Point; + @:flash.property var minimizable(get, never):Bool; + @:flash.property var owner(get, never):NativeWindow; + @:flash.property var renderMode(get, never):NativeWindowRenderMode; + @:flash.property var resizable(get, never):Bool; + @:flash.property var stage(get, never):Stage; + @:flash.property var systemChrome(get, never):NativeWindowSystemChrome; + @:flash.property var title(get, set):String; + @:flash.property var transparent(get, never):Bool; + @:flash.property var type(get, never):NativeWindowType; + @:flash.property var visible(get, set):Bool; + @:flash.property var width(get, set):Float; + @:flash.property var x(get, set):Float; + @:flash.property var y(get, set):Float; + @:flash.property static var isSupported(get, never):Bool; + @:flash.property static var supportsMenu(get, never):Bool; + @:flash.property static var supportsNotification(get, never):Bool; + @:flash.property static var supportsTransparency(get, never):Bool; + @:flash.property static var systemMaxSize(get, never):flash.geom.Point; + @:flash.property static var systemMinSize(get, never):flash.geom.Point; + #end + function new(initOptions:NativeWindowInitOptions):Void; function activate():Void; function close():Void; @@ -40,10 +79,49 @@ extern class NativeWindow extends flash.events.EventDispatcher function restore():Void; function startMove():Bool; function startResize(?edgeOrCorner:NativeWindowResize = NativeWindowResize.BOTTOM_RIGHT):Bool; - static var isSupported(default, never):Bool; - static var supportsMenu(default, never):Bool; - static var supportsNotification(default, never):Bool; - static var supportsTransparency(default, never):Bool; - static var systemMaxSize(default, never):flash.geom.Point; - static var systemMinSize(default, never):flash.geom.Point; + + #if (haxe_ver >= 4.3) + private function get_active():Bool; + private function get_alwaysInFront():Bool; + private function get_bounds():flash.geom.Rectangle; + private function get_closed():Bool; + private function get_displayState():NativeWindowDisplayState; + private function get_height():Float; + private function get_maxSize():flash.geom.Point; + private function get_maximizable():Bool; + private function get_menu():NativeMenu; + private function get_minSize():flash.geom.Point; + private function get_minimizable():Bool; + private function get_owner():NativeWindow; + private function get_renderMode():NativeWindowRenderMode; + private function get_resizable():Bool; + private function get_stage():Stage; + private function get_systemChrome():NativeWindowSystemChrome; + private function get_title():String; + private function get_transparent():Bool; + private function get_type():NativeWindowType; + private function get_visible():Bool; + private function get_width():Float; + private function get_x():Float; + private function get_y():Float; + private function set_alwaysInFront(value:Bool):Bool; + private function set_bounds(value:flash.geom.Rectangle):flash.geom.Rectangle; + private function set_height(value:Float):Float; + private function set_maxSize(value:flash.geom.Point):flash.geom.Point; + private function set_maximizable(value:Bool):Bool; + private function set_menu(value:NativeMenu):NativeMenu; + private function set_minSize(value:flash.geom.Point):flash.geom.Point; + private function set_minimizable(value:Bool):Bool; + private function set_title(value:String):String; + private function set_visible(value:Bool):Bool; + private function set_width(value:Float):Float; + private function set_x(value:Float):Float; + private function set_y(value:Float):Float; + private static function get_isSupported():Bool; + private static function get_supportsMenu():Bool; + private static function get_supportsNotification():Bool; + private static function get_supportsTransparency():Bool; + private static function get_systemMaxSize():flash.geom.Point; + private static function get_systemMinSize():flash.geom.Point; + #end } diff --git a/externs/air/flash/display/NativeWindowInitOptions.hx b/externs/air/flash/display/NativeWindowInitOptions.hx index a01ebc0c4..4d9cf1bf9 100644 --- a/externs/air/flash/display/NativeWindowInitOptions.hx +++ b/externs/air/flash/display/NativeWindowInitOptions.hx @@ -2,6 +2,7 @@ package flash.display; extern class NativeWindowInitOptions { + #if (haxe_ver < 4.3) var maximizable:Bool; var minimizable:Bool; var owner:NativeWindow; @@ -10,5 +11,35 @@ extern class NativeWindowInitOptions var systemChrome:NativeWindowSystemChrome; var transparent:Bool; var type:NativeWindowType; + #else + @:flash.property var maximizable(get, set):Bool; + @:flash.property var minimizable(get, set):Bool; + @:flash.property var owner(get, set):NativeWindow; + @:flash.property var renderMode(get, set):NativeWindowRenderMode; + @:flash.property var resizable(get, set):Bool; + @:flash.property var systemChrome(get, set):NativeWindowSystemChrome; + @:flash.property var transparent(get, set):Bool; + @:flash.property var type(get, set):NativeWindowType; + #end + function new():Void; + + #if (haxe_ver >= 4.3) + private function get_maximizable():Bool; + private function get_minimizable():Bool; + private function get_owner():NativeWindow; + private function get_renderMode():NativeWindowRenderMode; + private function get_resizable():Bool; + private function get_systemChrome():NativeWindowSystemChrome; + private function get_transparent():Bool; + private function get_type():NativeWindowType; + private function set_maximizable(value:Bool):Bool; + private function set_minimizable(value:Bool):Bool; + private function set_owner(value:NativeWindow):NativeWindow; + private function set_renderMode(value:NativeWindowRenderMode):NativeWindowRenderMode; + private function set_resizable(value:Bool):Bool; + private function set_systemChrome(value:NativeWindowSystemChrome):NativeWindowSystemChrome; + private function set_transparent(value:Bool):Bool; + private function set_type(value:NativeWindowType):NativeWindowType; + #end } diff --git a/externs/air/flash/display/Screen.hx b/externs/air/flash/display/Screen.hx index 372d36006..2201ea53f 100644 --- a/externs/air/flash/display/Screen.hx +++ b/externs/air/flash/display/Screen.hx @@ -2,11 +2,27 @@ package flash.display; extern class Screen extends flash.events.EventDispatcher { + #if (haxe_ver < 4.3) var bounds(default, never):flash.geom.Rectangle; var colorDepth(default, never):Int; var visibleBounds(default, never):flash.geom.Rectangle; - function new():Void; static var mainScreen(default, never):Screen; static var screens(default, never):Array; + #else + @:flash.property var bounds(get, never):flash.geom.Rectangle; + @:flash.property var colorDepth(get, never):Int; + @:flash.property var visibleBounds(get, never):flash.geom.Rectangle; + @:flash.property static var mainScreen(get, never):Screen; + @:flash.property static var screens(get, never):Array; + #end + function new():Void; static function getScreensForRectangle(rect:flash.geom.Rectangle):Array; + + #if (haxe_ver >= 4.3) + private function get_bounds():flash.geom.Rectangle; + private function get_colorDepth():Int; + private function get_visibleBounds():flash.geom.Rectangle; + private static function get_mainScreen():Screen; + private static function get_screens():Array; + #end } diff --git a/externs/air/flash/display/Stage.hx b/externs/air/flash/display/Stage.hx index 48013052e..6c51d8e5c 100644 --- a/externs/air/flash/display/Stage.hx +++ b/externs/air/flash/display/Stage.hx @@ -2,6 +2,7 @@ package flash.display; extern class Stage extends DisplayObjectContainer { + #if (haxe_ver < 4.3) var align:StageAlign; var allowsFullScreen(default, never):Bool; @:require(flash11_3) var allowsFullScreenInteractive(default, never):Bool; @@ -42,6 +43,49 @@ extern class Stage extends DisplayObjectContainer var supportedOrientations(default, never):flash.Vector; #end @:require(flash10_1) var wmodeGPU(default, never):Bool; + static var supportsOrientationChange(default, never):Bool; + #else + @:flash.property var align(get, set):StageAlign; + @:flash.property var allowsFullScreen(get, never):Bool; + @:flash.property @:require(flash11_3) var allowsFullScreenInteractive(get, never):Bool; + #if air + @:flash.property var autoOrients(get, set):Bool; + #end + @:flash.property var browserZoomFactor(get, never):Float; + @:flash.property @:require(flash10_2) var color(get, set):UInt; + @:flash.property @:require(flash10) var colorCorrection(get, set):ColorCorrection; + @:flash.property @:require(flash10) var colorCorrectionSupport(get, never):ColorCorrectionSupport; + @:flash.property @:require(flash11_4) var contentsScaleFactor(get, never):Float; + #if air + @:flash.property var deviceOrientation(get, never):StageOrientation; + #end + @:flash.property @:require(flash11) var displayContextInfo(get, never):String; + @:flash.property var displayState(get, set):StageDisplayState; + @:flash.property var focus(get, set):InteractiveObject; + @:flash.property var frameRate(get, set):Float; + @:flash.property var fullScreenHeight(get, never):UInt; + @:flash.property var fullScreenSourceRect(get, set):flash.geom.Rectangle; + @:flash.property var fullScreenWidth(get, never):UInt; + @:flash.property @:require(flash11_2) var mouseLock(get, set):Bool; + #if air + @:flash.property var nativeWindow(get, never):NativeWindow; + @:flash.property var orientation(get, never):StageOrientation; + #end + @:flash.property var quality(get, set):StageQuality; + @:flash.property var scaleMode(get, set):StageScaleMode; + @:flash.property var showDefaultContextMenu(get, set):Bool; + @:flash.property @:require(flash11) var softKeyboardRect(get, never):flash.geom.Rectangle; + @:flash.property @:require(flash11) var stage3Ds(get, never):flash.Vector; + @:flash.property var stageFocusRect(get, set):Bool; + @:flash.property var stageHeight(get, set):Int; + @:flash.property @:require(flash10_2) var stageVideos(get, never):flash.Vector; + @:flash.property var stageWidth(get, set):Int; + #if air + @:flash.property var supportedOrientations(get, never):flash.Vector; + #end + @:flash.property @:require(flash10_1) var wmodeGPU(get, never):Bool; + @:flash.property static var supportsOrientationChange(get, never):Bool; + #end #if air function assignFocus(objectToFocus:InteractiveObject, direction:FocusDirection):Void; #end @@ -50,6 +94,61 @@ extern class Stage extends DisplayObjectContainer #if air function setAspectRatio(newAspectRatio:StageAspectRatio):Void; function setOrientation(newOrientation:StageOrientation):Void; - static var supportsOrientationChange(default, never):Bool; + #end + + #if (haxe_ver >= 4.3) + private function get_align():StageAlign; + private function get_allowsFullScreen():Bool; + private function get_allowsFullScreenInteractive():Bool; + private function get_browserZoomFactor():Float; + private function get_color():UInt; + private function get_colorCorrection():ColorCorrection; + private function get_colorCorrectionSupport():ColorCorrectionSupport; + private function get_constructor():Dynamic; + private function get_contentsScaleFactor():Float; + private function get_displayContextInfo():String; + private function get_displayState():StageDisplayState; + private function get_focus():InteractiveObject; + private function get_frameRate():Float; + private function get_fullScreenHeight():UInt; + private function get_fullScreenSourceRect():flash.geom.Rectangle; + private function get_fullScreenWidth():UInt; + private function get_mouseLock():Bool; + private function get_quality():StageQuality; + private function get_scaleMode():StageScaleMode; + private function get_showDefaultContextMenu():Bool; + private function get_softKeyboardRect():flash.geom.Rectangle; + private function get_stage3Ds():Vector; + private function get_stageFocusRect():Bool; + private function get_stageHeight():Int; + private function get_stageVideos():Vector; + private function get_stageWidth():Int; + private function get_wmodeGPU():Bool; + private function set_align(value:StageAlign):StageAlign; + private function set_color(value:UInt):UInt; + private function set_colorCorrection(value:ColorCorrection):ColorCorrection; + private function set_constructor(value:Dynamic):Dynamic; + private function set_displayState(value:StageDisplayState):StageDisplayState; + private function set_focus(value:InteractiveObject):InteractiveObject; + private function set_frameRate(value:Float):Float; + private function set_fullScreenSourceRect(value:flash.geom.Rectangle):flash.geom.Rectangle; + private function set_mouseLock(value:Bool):Bool; + private function set_quality(value:StageQuality):StageQuality; + private function set_scaleMode(value:StageScaleMode):StageScaleMode; + private function set_showDefaultContextMenu(value:Bool):Bool; + private function set_stageFocusRect(value:Bool):Bool; + private function set_stageHeight(value:Int):Int; + private function set_stageWidth(value:Int):Int; + #if air + private static function get_supportsOrientationChange():Bool; + private function get_autoOrients():Bool; + private function get_deviceOrientation():StageOrientation; + private function get_nativeWindow():NativeWindow; + private function get_orientation():StageOrientation; + private function get_supportedOrientations():Vector; + private function get_vsyncEnabled():Bool; + private function set_autoOrients(value:Bool):Bool; + private function set_vsyncEnabled(value:Bool):Bool; + #end #end }