Try to fix ContextMenuItem/NativeMenuItem for Flash/AIR (close #1108)
This commit is contained in:
@@ -1,12 +1,9 @@
|
|||||||
package flash.display;
|
package flash.display;
|
||||||
|
|
||||||
@:require(flash10_1) extern class NativeMenuItem extends flash.events.EventDispatcher {
|
@:require(flash10_1) extern class NativeMenuItem extends flash.events.EventDispatcher {
|
||||||
#if air
|
|
||||||
var checked : Bool;
|
var checked : Bool;
|
||||||
var data : Dynamic;
|
var data : Dynamic;
|
||||||
#end
|
|
||||||
var enabled : Bool;
|
var enabled : Bool;
|
||||||
#if air
|
|
||||||
var isSeparator(default,never) : Bool;
|
var isSeparator(default,never) : Bool;
|
||||||
var keyEquivalent : flash.ui.Keyboard;
|
var keyEquivalent : flash.ui.Keyboard;
|
||||||
var keyEquivalentModifiers : Array<flash.ui.Keyboard>;
|
var keyEquivalentModifiers : Array<flash.ui.Keyboard>;
|
||||||
@@ -15,10 +12,7 @@ package flash.display;
|
|||||||
var mnemonicIndex : Int;
|
var mnemonicIndex : Int;
|
||||||
var name : String;
|
var name : String;
|
||||||
var submenu : NativeMenu;
|
var submenu : NativeMenu;
|
||||||
#end
|
function new(?label : String="", ?isSeparator : Bool=false) : Void;
|
||||||
function new(#if air ?label : String="", ?isSeparator : Bool=false #end) : Void;
|
|
||||||
#if air
|
|
||||||
function clone() : NativeMenuItem;
|
function clone() : NativeMenuItem;
|
||||||
override function toString() : String;
|
override function toString() : String;
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
package flash.ui;
|
package flash.ui;
|
||||||
|
|
||||||
@:final extern class ContextMenuItem extends flash.display.NativeMenuItem {
|
@:final extern class ContextMenuItem #if air extends flash.display.NativeMenuItem #end {
|
||||||
var caption : String;
|
var caption : String;
|
||||||
var separatorBefore : Bool;
|
var separatorBefore : Bool;
|
||||||
var visible : Bool;
|
var visible : Bool;
|
||||||
function new(caption : String, separatorBefore : Bool = false, enabled : Bool = true, visible : Bool = true) : Void;
|
function new(caption : String, separatorBefore : Bool = false, enabled : Bool = true, visible : Bool = true) : Void;
|
||||||
|
#if !air
|
||||||
function clone() : ContextMenuItem;
|
function clone() : ContextMenuItem;
|
||||||
//override function clone() : flash.display.NativeMenuItem;
|
#end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user