Add 'from UInt to UInt' to Int abstracts for convenience (resolve #526)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package lime.graphics;
|
||||
|
||||
|
||||
@:enum abstract PixelFormat(Int) from Int to Int {
|
||||
@:enum abstract PixelFormat(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var RGBA32 = 0;
|
||||
public var ARGB32 = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoAntialias(Int) from Int to Int {
|
||||
@:enum abstract CairoAntialias(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var DEFAULT = 0;
|
||||
public var NONE = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoContent(Int) from Int to Int {
|
||||
@:enum abstract CairoContent(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var COLOR = 0x1000;
|
||||
public var ALPHA = 0x2000;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoExtend(Int) from Int to Int {
|
||||
@:enum abstract CairoExtend(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var NONE = 0;
|
||||
public var REPEAT = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoFillRule(Int) from Int to Int {
|
||||
@:enum abstract CairoFillRule(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var WINDING = 0;
|
||||
public var EVEN_ODD = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoFilter(Int) from Int to Int {
|
||||
@:enum abstract CairoFilter(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var FAST = 0;
|
||||
public var GOOD = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoFormat(Int) from Int to Int {
|
||||
@:enum abstract CairoFormat(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var INVALID = -1;
|
||||
public var ARGB32 = 0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoHintMetrics(Int) from Int to Int {
|
||||
@:enum abstract CairoHintMetrics(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var DEFAULT = 0;
|
||||
public var OFF = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoHintStyle(Int) from Int to Int {
|
||||
@:enum abstract CairoHintStyle(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var DEFAULT = 0;
|
||||
public var NONE = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoLineCap(Int) from Int to Int {
|
||||
@:enum abstract CairoLineCap(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var BUTT = 0;
|
||||
public var ROUND = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoLineJoin(Int) from Int to Int {
|
||||
@:enum abstract CairoLineJoin(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var MITER = 0;
|
||||
public var ROUND = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoOperator(Int) from Int to Int {
|
||||
@:enum abstract CairoOperator(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var CLEAR = 0;
|
||||
public var SOURCE = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoStatus(Int) from Int to Int {
|
||||
@:enum abstract CairoStatus(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var SUCCESS = 0;
|
||||
public var NO_MEMORY = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.graphics.cairo;
|
||||
|
||||
|
||||
@:enum abstract CairoSubpixelOrder(Int) from Int to Int {
|
||||
@:enum abstract CairoSubpixelOrder(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
public var DEFAULT = 0;
|
||||
public var RGB = 1;
|
||||
|
||||
@@ -6,7 +6,7 @@ import lime.utils.UInt32Array;
|
||||
import lime.utils.UInt8Array;
|
||||
|
||||
|
||||
abstract ARGB(Int) from Int to Int {
|
||||
abstract ARGB(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
|
||||
private static var a16:Int;
|
||||
|
||||
@@ -6,7 +6,7 @@ import lime.utils.UInt32Array;
|
||||
import lime.utils.UInt8Array;
|
||||
|
||||
|
||||
abstract BGRA(Int) from Int to Int {
|
||||
abstract BGRA(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
|
||||
private static var a16:Int;
|
||||
|
||||
@@ -8,7 +8,7 @@ import lime.utils.UInt8Array;
|
||||
@:allow(lime.math.color)
|
||||
|
||||
|
||||
abstract RGBA(Int) from Int to Int {
|
||||
abstract RGBA(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
|
||||
private static var __alpha16:UInt32Array;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.net.curl;
|
||||
|
||||
|
||||
@:enum abstract CURLCode(Int) from Int to Int {
|
||||
@:enum abstract CURLCode(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
var OK = 0;
|
||||
var UNSUPPORTED_PROTOCOL = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.net.curl;
|
||||
|
||||
|
||||
@:enum abstract CURLInfo(Int) from Int to Int {
|
||||
@:enum abstract CURLInfo(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
var NONE = 0;
|
||||
var EFFECTIVE_URL = 0x100000 + 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.net.curl;
|
||||
|
||||
|
||||
@:enum abstract CURLOption(Int) from Int to Int {
|
||||
@:enum abstract CURLOption(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
//var FILE = 10001;
|
||||
//var WRITEDATA = 10001;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.net.curl;
|
||||
|
||||
|
||||
@:enum abstract CURLVersion(Int) from Int to Int {
|
||||
@:enum abstract CURLVersion(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
var FIRST = 0;
|
||||
var SECOND = 1;
|
||||
|
||||
@@ -558,7 +558,7 @@ class System {
|
||||
}
|
||||
|
||||
|
||||
@:enum private abstract SystemDirectory(Int) from Int to Int {
|
||||
@:enum private abstract SystemDirectory(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
var APPLICATION = 0;
|
||||
var APPLICATION_STORAGE = 1;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.ui;
|
||||
|
||||
|
||||
@:enum abstract GamepadAxis(Int) from Int to Int {
|
||||
@:enum abstract GamepadAxis(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
|
||||
var LEFT_X = 0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.ui;
|
||||
|
||||
|
||||
@:enum abstract GamepadButton(Int) from Int to Int {
|
||||
@:enum abstract GamepadButton(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
|
||||
var A = 0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.ui;
|
||||
|
||||
|
||||
@:enum abstract KeyCode(Int) from Int to Int {
|
||||
@:enum abstract KeyCode(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
|
||||
var UNKNOWN = 0x00;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package lime.ui;
|
||||
|
||||
|
||||
abstract KeyModifier(Int) from Int to Int {
|
||||
abstract KeyModifier(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
|
||||
public static inline var NONE:KeyModifier = 0x0000;
|
||||
|
||||
@@ -132,7 +132,7 @@ class Log {
|
||||
}
|
||||
|
||||
|
||||
@:enum abstract LogLevel(Int) from Int to Int {
|
||||
@:enum abstract LogLevel(Int) from Int to Int from UInt to UInt {
|
||||
|
||||
var NONE = 0;
|
||||
var ERROR = 1;
|
||||
|
||||
Reference in New Issue
Block a user