Examples of Rect


Examples of android.graphics.Rect

      p.setColor(Color.YELLOW);
      p.setStyle(Style.STROKE);
      canvas.drawRect(this.rectCurrent, p);     
    }
    for (Enumeration<Rect> e = this.vR.elements();e.hasMoreElements();) {
      Rect r = e.nextElement();
      Paint p = new Paint();
      p.setColor(Color.GREEN);
      p.setStyle(Style.STROKE);
      canvas.drawRect(r, p);
    }
View Full Code Here

Examples of android.graphics.Rect

                      jjil.core.Rect r = e.nextElement();
                      int nTop = (r.getTop() * mFaceView.getHeight()) / mRgbCurrent.getHeight();
                      int nBottom = (r.getBottom() * mFaceView.getHeight()) / mRgbCurrent.getHeight();
                      int nLeft = (r.getLeft() * mFaceView.getWidth()) / mRgbCurrent.getWidth();
                      int nRight = (r.getRight() * mFaceView.getWidth()) / mRgbCurrent.getWidth();
                      final Rect rDisplay = new Rect(
                              nLeft,
                              nTop,
                              nRight,
                              nBottom);
                      runOnUiThread(new Runnable() {
View Full Code Here

Examples of com.anotherbigidea.flash.structs.Rect

     */
    public void header( int version, long length,
                        int twipsWidth, int twipsHeight,
                        int frameRate, int frameCount ) throws IOException
    {
        frameSize = new Rect( 0, 0, twipsWidth, twipsHeight );       

        //--Unknown values
        if( length < 0 || frameCount < 0 )
        {
            //--defer the header
View Full Code Here

Examples of com.anotherbigidea.flash.structs.Rect

            throw new IOException( "Invalid SWF File Signature" );
        }

        int  version   = in.readUI8();
        long length    = in.readUI32();
        Rect frameSize = new Rect( in );
        int frameRate  = in.readUI16() >> 8;
        int frameCount = in.readUI16();               
       
        consumer.header( version, length,
                         frameSize.getMaxX(), frameSize.getMaxY(),
                         frameRate, frameCount );                        
    }
View Full Code Here

Examples of com.badlogic.gdx.tools.imagepacker.TexturePacker2.Rect

      binWidth = width;
      binHeight = height;

      usedRectangles.clear();
      freeRectangles.clear();
      Rect n = new Rect();
      n.x = 0;
      n.y = 0;
      n.width = width;
      n.height = height;
      freeRectangles.add(n);
View Full Code Here

Examples of com.badlogic.gdx.tools.texturepacker.TexturePacker.Rect

    // Strip extension.
    int dotIndex = name.lastIndexOf('.');
    if (dotIndex != -1) name = name.substring(0, dotIndex);

    Rect rect = addImage(image, name);
    if (rect != null && settings.limitMemory) rect.unloadImage(file);
  }
View Full Code Here

Examples of com.cloud.consoleproxy.vnc.packet.server.Rect

            int height = is.readUnsignedShort();

            int encodingType = is.readInt();

            // Process rectangle
            Rect rect;
            switch (encodingType) {

            case RfbConstants.ENCODING_RAW: {
                rect = new RawRect(screen, x, y, width, height, is);
                break;
            }

            case RfbConstants.ENCODING_COPY_RECT: {
                rect = new CopyRect(x, y, width, height, is);
                break;
            }

            case RfbConstants.ENCODING_DESKTOP_SIZE: {
                rect = new FrameBufferSizeChangeRequest(canvas, width, height);
                if (this.clientListener != null)
                    this.clientListener.onFramebufferSizeChange(width, height);
                break;
            }

            default:
                throw new RuntimeException("Unsupported ecnoding: " + encodingType);
            }

            paint(rect, canvas);

            if (this.clientListener != null)
                this.clientListener.onFramebufferUpdate(rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight());
        }

    }
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.RECT

        if(fullScreen) {
            windowState = getWindowState(hWnd);
            ExtendedUser32.INSTANCE.SetWindowLong(hWnd, GWL_STYLE, windowState.getStyle() & ~(WS_CAPTION | WS_THICKFRAME));
            ExtendedUser32.INSTANCE.SetWindowLong(hWnd, GWL_EXSTYLE, windowState.getExStyle() & ~(WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE | WS_EX_STATICEDGE));
            MONITORINFO monitorInfo = getMonitorInfo(hWnd);
            RECT rect = monitorInfo.rcMonitor;
            ExtendedUser32.INSTANCE.SetWindowPos(hWnd, null, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
        }
        else {
            ExtendedUser32.INSTANCE.SetWindowLong(hWnd, GWL_STYLE, windowState.getStyle());
            ExtendedUser32.INSTANCE.SetWindowLong(hWnd, GWL_EXSTYLE, windowState.getExStyle());
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.RECT

        if(windowState.getMaximized()) {
            ExtendedUser32.INSTANCE.SendMessage(hWnd, User32.WM_SYSCOMMAND, new WPARAM(ExtendedUser32.SC_RESTORE), new LPARAM(0));
        }
        windowState.setStyle(ExtendedUser32.INSTANCE.GetWindowLong(hWnd, ExtendedUser32.GWL_STYLE));
        windowState.setExStyle(ExtendedUser32.INSTANCE.GetWindowLong(hWnd, ExtendedUser32.GWL_EXSTYLE));
        RECT rect = new RECT();
        boolean gotWindowRect = ExtendedUser32.INSTANCE.GetWindowRect(hWnd, rect);
        if(gotWindowRect) {
            windowState.setLeft(rect.left);
            windowState.setTop(rect.top);
            windowState.setRight(rect.right);
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.RECT

    }

    @Test
    public final void testMonitorFromRect() {
        int dwFlags = WinUser.MONITOR_DEFAULTTOPRIMARY;
        RECT lprc = new RECT();
        assertNotNull(User32.INSTANCE.MonitorFromRect(lprc, dwFlags));
    }
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.