Packagestencyl.api.engine.bg
Classpublic class MyViewport
InheritanceMyViewport Inheritance Object
Subclasses BasicViewport



Public Properties
 PropertyDefined By
  clip : Rectangle
MyViewport
  vh : int
MyViewport
  vw : int
MyViewport
  vx : int
MyViewport
  vy : int
MyViewport
Public Methods
 MethodDefined By
  
MyViewport(x:int, y:int, width:int, height:int)
MyViewport
  
centerOn(x:int, y:int, width:int, height:int):void
MyViewport
  
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
Property Detail
clipproperty
public var clip:Rectangle

vhproperty 
public var vh:int

vwproperty 
public var vw:int

vxproperty 
public var vx:int

vyproperty 
public var vy:int

Constructor Detail
MyViewport()Constructor
public function MyViewport(x:int, y:int, width:int, height:int)



Parameters
x:int
 
y:int
 
width:int
 
height:int
Method Detail
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 
public function centerOnActor(a:Actor):void

Parameters

a:Actor

getClip()method 
public function getClip():Rectangle

Returns
Rectangle
getX()method 
public function getX():int

Returns
int
getY()method 
public function getY():int

Returns
int
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