Examples of CGPoint


Examples of org.robovm.apple.coregraphics.CGPoint

    app.debug(tag, bounds.width() + "x" + bounds.height() + ", " + UIScreen.getMainScreen().getScale());
    this.gl20 = gl20;

    context = new EAGLContext(EAGLRenderingAPI.OpenGLES2);

    view = new GLKView(new CGRect(new CGPoint(0, 0), bounds), context) {
      @Method(selector = "touchesBegan:withEvent:")
      public void touchesBegan (@Pointer long touches, UIEvent event) {
        IOSGraphics.this.input.touchDown(touches, event);
      }
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGPoint

    app.debug(tag, bounds.width() + "x" + bounds.height() + ", " + UIScreen.getMainScreen().getScale());
    this.gl20 = gl20;

    context = new EAGLContext(EAGLRenderingAPI.OpenGLES2);

    view = new GLKView(new CGRect(new CGPoint(0, 0), bounds), context) {
      @Method(selector = "touchesBegan:withEvent:")
      public void touchesBegan (@Pointer long touches, UIEvent event) {
        IOSGraphics.this.input.touchDown(touches, event);
      }
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGPoint

    long array = NSSetExtensions.allObjects(touches);
    int length = (int) NSArrayExtensions.count(array);
    for (int i = 0; i < length; i++) {
      long touchHandle = NSArrayExtensions.objectAtIndex$(array, i);
      UITouch touch = UI_TOUCH_WRAPPER.wrap(touchHandle);
      CGPoint loc = touch.getLocation(touch.getView());
      synchronized(touchEvents) {
        UITouchPhase phase = touch.getPhase();
        TouchEvent event = touchEventPool.obtain();
        event.x = (int)(loc.x() * app.displayScaleFactor);
        event.y = (int)(loc.y() * app.displayScaleFactor);
        event.phase = phase;
        event.timestamp = (long)(touch.getTimestamp() * 1000000000);
        touchEvents.add(event);
       
        if(phase == UITouchPhase.Began) {
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGPoint

    app.debug(tag, bounds.width() + "x" + bounds.height() + ", " + UIScreen.getMainScreen().getScale());
    this.gl20 = gl20;

    context = new EAGLContext(EAGLRenderingAPI.OpenGLES2);

    view = new GLKView(new CGRect(new CGPoint(0, 0), bounds), context) {
      @Method(selector = "touchesBegan:withEvent:")
      public void touchesBegan (@Pointer long touches, UIEvent event) {
        IOSGraphics.this.input.touchDown(touches, event);
      }
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGPoint

    long array = NSSetExtensions.allObjects(touches);
    int length = (int) NSArrayExtensions.count(array);
    for (int i = 0; i < length; i++) {
      long touchHandle = NSArrayExtensions.objectAtIndex$(array, i);
      UITouch touch = UI_TOUCH_WRAPPER.wrap(touchHandle);
      CGPoint loc = touch.getLocation(touch.getView());
      synchronized(touchEvents) {
        UITouchPhase phase = touch.getPhase();
        TouchEvent event = touchEventPool.obtain();
        event.x = (int)(loc.x() * app.displayScaleFactor);
        event.y = (int)(loc.y() * app.displayScaleFactor);
        event.phase = phase;
        event.timestamp = (long)(touch.getTimestamp() * 1000000000);
        touchEvents.add(event);
       
        if(phase == UITouchPhase.Began) {
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGPoint

    throw new GdxRuntimeException("Couldn't find pointer id for touch event!");
  }

  private void toTouchEvents (NSSet<UITouch> touches, UIEvent uiEvent) {
    for (UITouch touch : touches) {
      CGPoint loc = touch.getLocation(touch.getView());
      synchronized(touchEvents) {
        TouchEvent event = touchEventPool.obtain();
        event.x = (int)(loc.x() * app.displayScaleFactor);
        event.y = (int)(loc.y() * app.displayScaleFactor);
        event.phase = touch.getPhase();
        event.timestamp = (long)(touch.getTimestamp() * 1000000000);
        touchEvents.add(event);
       
        if(touch.getPhase() == UITouchPhase.Began) {         
View Full Code Here

Examples of org.robovm.apple.coregraphics.CGPoint

    app.debug(tag, bounds.width() + "x" + bounds.height() + ", " + UIScreen.getMainScreen().getScale());
    this.gl20 = gl20;

    context = new EAGLContext(EAGLRenderingAPI.OpenGLES2);

    view = new GLKView(new CGRect(new CGPoint(0, 0), bounds), context) {
      @Override
      public void touchesBegan (NSSet<UITouch> touches, UIEvent event) {
        super.touchesBegan(touches, event);
        IOSGraphics.this.input.touchDown(touches, event);
      }
View Full Code Here

Examples of org.robovm.cocoatouch.coregraphics.CGPoint

    throw new GdxRuntimeException("Couldn't find pointer id for touch event!");
  }

  private void toTouchEvents(NSSet touches, UIEvent uiEvent) {
    for (UITouch touch : (NSSet<UITouch>) touches) {
      CGPoint loc = touch.getLocation(touch.getView());
      synchronized(touchEvents) {
        TouchEvent event = touchEventPool.obtain();
        event.x = (int)(loc.x() * app.displayScaleFactor);
        event.y = (int)(loc.y() * app.displayScaleFactor);
        event.phase = touch.getPhase();
        event.timestamp = (long)(touch.getTimestamp() * 1000000000);
        touchEvents.add(event);
       
        if(touch.getPhase() == UITouchPhase.Began) {         
View Full Code Here

Examples of org.robovm.cocoatouch.coregraphics.CGPoint

    app.debug(tag, bounds.width() + "x" + bounds.height() + ", " + UIScreen.getMainScreen().getScale());
    this.gl20 = gl20;

    context = new EAGLContext(EAGLRenderingAPI.OpenGLES2);

    view = new GLKView(new CGRect(new CGPoint(0, 0), bounds), context) {
      @Override
      public void touchesBegan(NSSet touches, UIEvent event) {
        super.touchesBegan(touches, event);
        IOSGraphics.this.input.touchDown(touches, event);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.