AIR externs: Haxe 3 compatibility on :extern :enum abstracts

This commit is contained in:
Josh Tynjala
2023-08-14 13:24:02 -07:00
parent b6cfc7d812
commit 42ae523188
34 changed files with 182 additions and 182 deletions

View File

@@ -1,10 +1,10 @@
package flash.desktop;
@:native("flash.desktop.InvokeEventReason")
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract InvokeEventReason(String)
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract InvokeEventReason(String)
{
var LOGIN;
var NOTIFICATION;
var OPEN_URL;
var STANDARD;
var LOGIN = "login";
var NOTIFICATION = "notification";
var OPEN_URL = "openUrl";
var STANDARD = "standard";
}

View File

@@ -1,10 +1,10 @@
package flash.desktop;
@:native("flash.desktop.NativeDragActions")
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract NativeDragActions(String)
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract NativeDragActions(String)
{
var COPY;
var LINK;
var MOVE;
var NONE;
var COPY = "copy";
var LINK = "link";
var MOVE = "move";
var NONE = "none";
}

View File

@@ -1,8 +1,8 @@
package flash.desktop;
@:native("flash.desktop.NotificationType")
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract NotificationType(String)
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract NotificationType(String)
{
var CRITICAL;
var INFORMATIONAL;
var CRITICAL = "critical";
var INFORMATIONAL = "informational";
}

View File

@@ -1,8 +1,8 @@
package flash.desktop;
@:native("flash.desktop.SystemIdleMode")
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract SystemIdleMode(String)
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract SystemIdleMode(String)
{
var KEEP_AWAKE;
var NORMAL;
var KEEP_AWAKE = "keepAwake";
var NORMAL = "normal";
}