UNPKG

@robotlegsjs/createjs

Version:
41 lines (40 loc) 1.06 kB
import { IEventDispatcher } from "@robotlegsjs/core"; import { IViewHandler } from "./IViewHandler"; export declare const IViewManager: unique symbol; /** * The View Manager allows you to add multiple "view root" containers to a context */ export interface IViewManager extends IEventDispatcher { /** * A list of currently registered containers */ containers: createjs.Container[]; /** * Adds a container as a "view root" into the context * * @param container */ addContainer(container: createjs.Container): void; /** * Removes a container from this context * * @param container */ removeContainer(container: createjs.Container): 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; }