UNPKG

@robotlegsjs/pixi

Version:
42 lines (41 loc) 1.07 kB
import { IEventDispatcher } from "@robotlegsjs/core"; import { Container } from "pixi.js"; 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: Container[]; /** * Adds a container as a "view root" into the context * * @param container */ addContainer(container: Container): void; /** * Removes a container from this context * * @param container */ removeContainer(container: 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; }