Class pwlib.appEvent.selectionChange
Extends
pwlib.appEvent.
Selection change event. This event is not cancelable.
Defined in: selection.js.
Constructor Attributes | Constructor Name and Description |
---|---|
pwlib.appEvent.selectionChange(state, x, y, width, height)
|
Field Attributes | Field Name and Description |
---|---|
Selection height.
|
|
Selection state.
|
|
<constant> |
No selection is available.
|
<constant> |
Selection available.
|
Selection width.
|
|
Selection location on the x-axis of the image.
|
|
Selection location on the y-axis of the image.
|
- Fields borrowed from class pwlib.appEvent:
- cancelable, defaultPrevented, target, type
- Methods borrowed from class pwlib.appEvent:
- preventDefault, stopPropagation, toString
Class Detail
pwlib.appEvent.selectionChange(state, x, y, width, height)
- Parameters:
- {Number} state
- Tells the new state of the selection.
- {Number} x Optional
- Selection start position on the x-axis of the image.
- {Number} y Optional
- Selection start position on the y-axis of the image.
- {Number} width Optional
- Selection width.
- {Number} height Optional
- Selection height.
Field Detail
{Number}
height
Selection height.
{Number}
state
Selection state.
<constant>
STATE_NONE
No selection is available.
<constant>
STATE_SELECTED
Selection available.
{Number}
width
Selection width.
{Number}
x
Selection location on the x-axis of the image.
{Number}
y
Selection location on the y-axis of the image.