Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.cordova.events.touch.pinch
Interface OffsetProvider


public interface OffsetProvider

PinchRecognizer needs to know about display settings to calculate a pinch properly, but it should not know about widgets. THis is an abstraction interface to encapsulate that knowledge

Author:
Daniel

Method Summary
 int getLeft()
          the upper left corner of the widget
 int getTop()
          the upper left corner of the widget
 

Method Detail

getLeft

int getLeft()
the upper left corner of the widget

Returns:
the upper left corner in px

getTop

int getTop()
the upper left corner of the widget

Returns:
the upper left corner in px

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.