API Docs for: 2.2.1
Show:

File: pixi/renderers/canvas/utils/CanvasBuffer.hx

                        package pixi.renderers.canvas.utils;
                        
                        import pixi.DomDefinitions;
                        
                        @:native("PIXI.CanvasBuffer")
                        extern class CanvasBuffer {
                        
                        	/**
                        	 * Creates a Canvas element of the given size.
                        	 *
                        	 * @class CanvasBuffer
                        	 * @constructor
                        	 * @param width {Float} the width for the newly created canvas
                        	 * @param height {Float} the height for the newly created canvas
                        	 */
                        	function new(width:Float, height:Float);
                        
                        	/**
                        	 * Resizes the canvas to the specified width and height.
                        	 *
                        	 * @method resize
                        	 * @param width {Float} the new width of the canvas
                        	 * @param height {Float} the new height of the canvas
                        	 */
                        	function resize(width:Float, height:Float):Void;
                        
                        	/**
                        	 * The width of the Canvas in pixels.
                        	 *
                        	 * @property width
                        	 * @type Float
                        	 */
                        	var width:Float;
                        
                        	/**
                        	 * The height of the Canvas in pixels.
                        	 *
                        	 * @property height
                        	 * @type Float
                        	 */
                        	var height:Float;
                        
                        	/**
                        	 * The Canvas object that belongs to this CanvasBuffer.
                        	 *
                        	 * @property canvas
                        	 * @type HTMLCanvasElement
                        	 */
                        	var canvas:CanvasElement;
                        
                        	/**
                        	 * A CanvasRenderingContext2D object representing a two-dimensional rendering context.
                        	 *
                        	 * @property context
                        	 * @type CanvasRenderingContext2D
                        	 */
                        	var context:CanvasRenderingContext2D;
                        }