Examples of CGAffineTransform


Examples of cli.MonoTouch.CoreGraphics.CGAffineTransform

                    PointF target = new PointF(0, targetOffset);
                    target = _overlay.get_Transform().TransformPoint(target);

                    // update and set the transform on the game view
                    UIView gameView = _overlay.get_Superview();
                    CGAffineTransform trans = gameView.get_Transform();
                    _gameViewTransform = trans.Invert().Invert(); // clone
                    trans.Translate(target.get_X(), target.get_Y());
                    gameView.set_Transform(trans);
                    _gameViewTransformed = true;

                    // touches outside of the keyboard will close the keyboard
                    _overlay.Add(_touchDetector);
View Full Code Here

Examples of cli.MonoTouch.CoreGraphics.CGAffineTransform

    @Override public ImageOverlay createImageOverlay (Image image) {
        return new IOSImageOverlay(image);
    }

    @Override public void orientationChanged (int orientationValue) {
        CGAffineTransform trans = CGAffineTransform.MakeIdentity();
        boolean landscape = false;
        switch (orientationValue) {
        default:
        case UIDeviceOrientation.Portrait:
          break;
        case UIDeviceOrientation.PortraitUpsideDown:
          trans.Rotate(FloatMath.PI);
          break;
        case UIDeviceOrientation.LandscapeLeft:
          landscape = true;
          trans.Rotate(FloatMath.PI / 2);
          break;
        case UIDeviceOrientation.LandscapeRight:
          landscape = true;
          trans.Rotate(-FloatMath.PI / 2);
          break;
        }

        _uiOverlay.set_Transform(trans);
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.