UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

74 lines (73 loc) 2.9 kB
/** * The ContextMenuClipboardItems class lets you enable or disable the commands in the clipboard context menu. * * <p class="- topic/p ">Enable or disable the context menu clipboard commands using the <codeph class="+ topic/ph pr-d/codeph ">clipboardItems</codeph> property of * the ContextMenu object. The <codeph class="+ topic/ph pr-d/codeph ">clipboardItems</codeph> property is an instance of this ContextMenuClipboardItems * class. The clipboard context menu is shown in a context menu when the <codeph class="+ topic/ph pr-d/codeph ">clipboardMenu</codeph> property * of the context menu is <codeph class="+ topic/ph pr-d/codeph ">true</codeph>, unless the context menu is for a TextField object. TextField objects * control the display of the context menu and the state of its clipboard items automatically.</p> * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 1.5 */ export declare class ContextMenuClipboardItems extends Object { private _clear; private _copy; private _cut; private _paste; private _selectAll; /** * Enables or disables the 'Delete' or 'Clear' item on the clipboard menu. * This should be enabled only if an object that can be cleared is selected. * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 1.5 */ get clear(): boolean; set clear(val: boolean); /** * Enables or disables the 'Copy' item on the clipboard menu. * This should be enabled only if an object that can be copied is selected. * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 1.5 */ get copy(): boolean; set copy(val: boolean); /** * Enables or disables the 'Cut' item on the clipboard menu. * This should be enabled only if an object that can be cut is selected. * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 1.5 */ get cut(): boolean; set cut(val: boolean); /** * Enables or disables the 'Paste' item on the clipboard menu. * This should be enabled only if pastable data is on the clipboard. * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 1.5 */ get paste(): boolean; set paste(val: boolean); /** * Enables or disables the 'Select All' item on the clipboard menu. * This should only be enabled in a context where a selection can be * expanded to include all similar items, such as in a list or a text editing control. * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 1.5 */ get selectAll(): boolean; set selectAll(val: boolean); clone(): ContextMenuClipboardItems; /** * Creates a new ContextMenuClipboardItems object. * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 1.5 */ constructor(); }