UNPKG

@rontian/egret-robotlegs

Version:

Egret View Integration with RobotlegsJS

37 lines (36 loc) 1.06 kB
import { IEventDispatcher } from "@robotlegsjs/core"; import { IViewHandler } from "./IViewHandler"; /** * The View Manager allows you to add multiple "view root" containers to a context */ export declare let IViewManager: symbol; export interface IViewManager extends IEventDispatcher { /** * A list of currently registered containers */ containers: egret.DisplayObjectContainer[]; /** * Adds a container as a "view root" into the context * @param container */ addContainer(container: egret.DisplayObjectContainer): void; /** * Removes a container from this context * @param container */ removeContainer(container: egret.DisplayObjectContainer): void; /** * Registers a view handler * @param handler */ addViewHandler(handler: IViewHandler): void; /** * Removes a view handler * @param handler */ removeViewHandler(handler: IViewHandler): void; /** * Removes all view handlers from this context */ removeAllHandlers(): void; }