Package | stencyl.api.engine.bg |
Class | public class MyViewport |
Inheritance | MyViewport Object |
Subclasses | BasicViewport |
Property | Defined By | ||
---|---|---|---|
clip : Rectangle | MyViewport | ||
vh : int | MyViewport | ||
vw : int | MyViewport | ||
vx : int | MyViewport | ||
vy : int | MyViewport |
Method | Defined By | ||
---|---|---|---|
MyViewport(x:int, y:int, width:int, height:int) | MyViewport | ||
centerOn(x:int, y:int, width:int, height:int):void | MyViewport | ||
centerOnActor(a:Actor):void | MyViewport | ||
getClip():Rectangle | MyViewport | ||
getX():int | MyViewport | ||
getY():int | MyViewport | ||
setDimension(width:int, height:int):void | MyViewport | ||
setPosition(x:int, y:int):void | MyViewport | ||
setX(x:int):void | MyViewport | ||
setY(y:int):void | MyViewport |
clip | property |
public var clip:Rectangle
vh | property |
public var vh:int
vw | property |
public var vw:int
vx | property |
public var vx:int
vy | property |
public var vy:int
MyViewport | () | Constructor |
public function MyViewport(x:int, y:int, width:int, height:int)
x:int | |
y:int | |
width:int | |
height:int |
centerOn | () | method |
public function centerOn(x:int, y:int, width:int, height:int):void
Parameters
x:int | |
y:int | |
width:int | |
height:int |
centerOnActor | () | method |
getClip | () | method |
public function getClip():Rectangle
ReturnsRectangle |
getX | () | method |
public function getX():int
Returnsint |
getY | () | method |
public function getY():int
Returnsint |
setDimension | () | method |
public function setDimension(width:int, height:int):void
Parameters
width:int | |
height:int |
setPosition | () | method |
public function setPosition(x:int, y:int):void
Parameters
x:int | |
y:int |
setX | () | method |
public function setX(x:int):void
Parameters
x:int |
setY | () | method |
public function setY(y:int):void
Parameters
y:int |