Examples of Y()


Examples of org.robovm.cocoatouch.coregraphics.CGPoint.y()

    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.sgx.yuigwt.yui.util.Point.y()

      "</div>");

//    Window.alert( Y.one("#overlay-position")+" - "+Y.one("#overlay-position").getXY());
    Point xy = Y.one("#overlay-position").getXY();
    overlay = Y.newOverlay((OverlayConfig) OverlayConfig.create().
      xy(xy.x()+30, xy.y()+40).
      height("13em").
      width("200px").
      srcNode("#overlay").
      plugins(new PluginBase[]{Y.Plugin().Drag()})
    );
View Full Code Here

Examples of pythagoras.f.IPoint.y()

    /** Updates the position of the content to match the flicker. If force is set, then the
     * relevant values will be updated even if there was no change. */
    protected void update (boolean force) {
        IPoint pos = _flicker.position();
        boolean dx = hrange.set(pos.x()), dy = vrange.set(pos.y());
        if (dx || dy || force) {
            _clippable.setPosition(-pos.x(), -pos.y());

            // now check the child elements for visibility
            if (!force) updateVisibility();
View Full Code Here

Examples of pythagoras.f.IRectangle.y()

        @Override public void render (Canvas canvas, TextLayout text, int textColor,
            boolean underlined, float x, float y) {
            canvas.save();
            if (underlined) {
                IRectangle bounds = text.bounds();
                float sx = x + bounds.x() + 1, sy = y + bounds.y() + bounds.height() + 2;
                canvas.setFillColor(outlineColor).fillRect(sx-1, sy-1, bounds.width()+3, 3);
                canvas.setFillColor(textColor).fillRect(sx, sy, bounds.width(), 1);
            }
            canvas.setFillColor(outlineColor);
            canvas.fillText(text, x+0, y+0);
View Full Code Here

Examples of pythagoras.f.Point.y()

         */
        public Pop inElement (Element<?> elem) {
            Point tl = Layer.Util.layerToScreen(elem.layer, 0, 0);
            Point br = Layer.Util.layerToScreen(
                elem.layer, elem.size().width(), elem.size().height());
            bounds = new Rectangle(tl.x(), tl.y(), br.x() - tl.x(), br.y() - tl.y());
            return this;
        }

        /**
         * Pops up this instance on the trigger's root's menu host. See {@link MenuHost#popup(Pop)}.
View Full Code Here

Examples of support.AirportSpecs.y()

            Vertex gvert = e.nextVertex();
      AirportSpecs gv = (AirportSpecs)gvert.element();
            if (
                    (x >= gv.x() - RADIUS) &&
                    (x <= gv.x() + RADIUS) &&
                    (y >= gv.y() - RADIUS) &&
                    (y <= gv.y() + RADIUS)
     ) {
        return gvert;
      }
        }
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.