API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class Pixel

Package | org.openscales.core.basetypes
Class | public class Pixel

This class represents a screen coordinate, in x and y coordinates.

Public Properties

| Property | Defined by
--- | --- | ---
|  | x : Number | Pixel
|  | y : Number | Pixel

Public Methods

| Method | Defined by
--- | --- | ---
|  | Pixel(x:Number, y:Number) | Pixel
|  | add(x:Number, y:Number):Pixel | Pixel
|  | clone():Pixel | Pixel
|  | equals(px:Pixel):Boolean | Pixel
|  | offset(px:Pixel):Pixel | Pixel
|  | toString():String | Pixel

Property detail

x | property

`x:Number` [read-write]Implementation
`public function get x():Number`
`public function set x(value:Number):void`

y | property |

`y:Number` [read-write]Implementation
`public function get y():Number`
`public function set y(value:Number):void`
Constructor detail

Pixel | () | constructor

`public function Pixel(x:Number, y:Number)`Parameters

| `x:Number`
| `y:Number`

Method detail

add | () | method

`public function add(x:Number, y:Number):Pixel` Parameters

| `x:Number`
| `y:Number`

Returns

| `Pixel`

clone | () | method |

`public function clone():Pixel`

Returns

| `Pixel`

equals | () | method |

`public function equals(px:Pixel):Boolean` Parameters

| `px:Pixel`

Returns

| `Boolean`

offset | () | method |

`public function offset(px:Pixel):Pixel` Parameters

| `px:Pixel`

Returns

| `Pixel`

toString | () | method |

`public function toString():String`

Returns

| `String`