TouchEvent
          class
        
        
class TouchEvent extends Event {
 static const String TOUCH_BEGIN = "touchBegin";
 static const String TOUCH_END = "touchEnd";
 static const String TOUCH_CANCEL = "touchCancel";
 static const String TOUCH_MOVE = "touchMove";
 static const String TOUCH_OVER = "touchOver";
 static const String TOUCH_OUT = "touchOut";
 static const String TOUCH_ROLL_OUT = "touchRollOut";      // ToDo
 static const String TOUCH_ROLL_OVER  = "touchRollOver";   // ToDo
 static const String TOUCH_TAP  = "touchTap";              // ToDo
 //-------------------------------------------------------------------------------------------------
 //-------------------------------------------------------------------------------------------------
 int _touchPointID = 0;
 bool _isPrimaryTouchPoint = false;
 num _localX = 0.0, _localY = 0.0;
 num _stageX = 0.0, _stageY = 0.0;
 bool _altKey = false;
 bool _controlKey = false;
 bool _ctrlKey = false;
 bool _shiftKey = false;
 num _pressure = 1.0;
 int _sizeX = 0;
 int _sizeY = 0;
 TouchEvent(String type, [bool bubbles = false]) : super(type, bubbles);
 //-------------------------------------------------------------------------------------------------
 //-------------------------------------------------------------------------------------------------
 set _localPoint(Point point) {
   _localX = point.x;
   _localY = point.y;
 }
 set _stagePoint(Point point) {
   _stageX = point.x;
   _stageY = point.y;
 }
 //-------------------------------------------------------------------------------------------------
 //-------------------------------------------------------------------------------------------------
 int get touchPointID => _touchPointID;
 bool get isPrimaryTouchPoint => _isPrimaryTouchPoint;
 num get localX => _localX;
 num get localY => _localY;
 num get stageX => _stageX;
 num get stageY => _stageY;
 bool get altKey => _altKey;
 bool get controlKey => _controlKey;
 bool get ctrlKey => _ctrlKey;
 bool get shiftKey => _shiftKey;
 int get pressure => _pressure;
 int get sizeX => _sizeX;
 int get sizeY => _sizeY;
}
 
Extends
Event > TouchEvent
Static Properties
const String         TOUCH_BEGIN #
        
        
static const String TOUCH_BEGIN = "touchBegin"
 
const String         TOUCH_CANCEL #
        
        
static const String TOUCH_CANCEL = "touchCancel"
 
const String         TOUCH_END #
        
        
static const String TOUCH_END = "touchEnd"
 
const String         TOUCH_MOVE #
        
        
static const String TOUCH_MOVE = "touchMove"
 
const String         TOUCH_OUT #
        
        
static const String TOUCH_OUT = "touchOut"
 
const String         TOUCH_OVER #
        
        
static const String TOUCH_OVER = "touchOver"
 
const String         TOUCH_ROLL_OUT #
        
        
static const String TOUCH_ROLL_OUT = "touchRollOut"
 
const String         TOUCH_ROLL_OVER #
        
        
static const String TOUCH_ROLL_OVER  = "touchRollOver"
 
const String         TOUCH_TAP #
        
        
static const String TOUCH_TAP  = "touchTap"
 
 
Constructors
new TouchEvent(String type, [bool bubbles = false]) #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful
through their identity. An Object instance is equal to itself
only.
 
TouchEvent(String type, [bool bubbles = false]) : super(type, bubbles);
 
 
Properties
final bool         altKey #
        
        
bool get altKey => _altKey;
 
final bool         bubbles #
        
        
bool get bubbles => _bubbles;
 
final bool         captures #
        
        
bool get captures => true;
 
final bool         controlKey #
        
        
bool get controlKey => _controlKey;
 
final bool         ctrlKey #
        
        
bool get ctrlKey => _ctrlKey;
 
        
EventDispatcher get currentTarget => _currentTarget;
 
 
final int         eventPhase #
        
        
int get eventPhase => _eventPhase;
 
final bool         isPrimaryTouchPoint #
        
        
bool get isPrimaryTouchPoint => _isPrimaryTouchPoint;
 
final num         localX #
        
        
num get localX => _localX;
 
final num         localY #
        
        
num get localY => _localY;
 
final int         pressure #
        
        
int get pressure => _pressure;
 
final bool         shiftKey #
        
        
bool get shiftKey => _shiftKey;
 
final num         stageX #
        
        
num get stageX => _stageX;
 
final num         stageY #
        
        
num get stageY => _stageY;
 
        
bool get stopsImmediatePropagation => _stopsImmediatePropagation;
 
 
final bool         stopsPropagation #
        
        
bool get stopsPropagation => _stopsPropagation;
 
        
EventDispatcher get target => _target;
 
 
final int         touchPointID #
        
        
int get touchPointID => _touchPointID;
 
final String         type #
        
        
String get type => _type;
 
 
Methods
void stopImmediatePropagation() {
 _stopsPropagation = true;
 _stopsImmediatePropagation = true;
}
 
 
void stopPropagation() #
void stopPropagation() {
 _stopsPropagation = true;
}