Class Guacamole.Client.LayerContainer
Defined in: guacamole.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Guacamole.Client.LayerContainer(width, height)
Simple container for Guacamole.Layer, allowing layers to be easily
repositioned and nested.
|
Method Attributes | Method Name and Description |
---|---|
Returns the element containing the Layer within this LayerContainer.
|
|
getLayer()
Returns the Layer contained within this LayerContainer.
|
|
resize(width, height)
Changes the size of this LayerContainer and the contained Layer to the
given width and height.
|
|
transform(a, b, c, d, e, f)
Applies the given affine transform (defined with six values from the
transform's matrix).
|
|
translate(x, y)
Moves the upper-left corner of this LayerContainer to the given X and Y
coordinate.
|
Class Detail
Guacamole.Client.LayerContainer(width, height)
Simple container for Guacamole.Layer, allowing layers to be easily
repositioned and nested. This allows certain operations to be accelerated
through DOM manipulation, rather than raster operations.
- Parameters:
- {Number} width
- The width of the Layer, in pixels. The canvas element backing this Layer will be given this width.
- {Number} height
- The height of the Layer, in pixels. The canvas element backing this Layer will be given this height.
Method Detail
{Element}
getElement()
Returns the element containing the Layer within this LayerContainer.
- Returns:
- {Element} The element containing the Layer within this LayerContainer.
{Guacamole.Layer}
getLayer()
Returns the Layer contained within this LayerContainer.
- Returns:
- {Guacamole.Layer} The Layer contained within this LayerContainer.
resize(width, height)
Changes the size of this LayerContainer and the contained Layer to the
given width and height.
- Parameters:
- {Number} width
- The new width to assign to this Layer.
- {Number} height
- The new height to assign to this Layer.
transform(a, b, c, d, e, f)
Applies the given affine transform (defined with six values from the
transform's matrix).
- Parameters:
- {Number} a
- The first value in the affine transform's matrix.
- {Number} b
- The second value in the affine transform's matrix.
- {Number} c
- The third value in the affine transform's matrix.
- {Number} d
- The fourth value in the affine transform's matrix.
- {Number} e
- The fifth value in the affine transform's matrix.
- {Number} f
- The sixth value in the affine transform's matrix.
translate(x, y)
Moves the upper-left corner of this LayerContainer to the given X and Y
coordinate.
- Parameters:
- {Number} x
- The X coordinate to move to.
- {Number} y
- The Y coordinate to move to.