Package org.eclipse.swt.internal.win32

Examples of org.eclipse.swt.internal.win32.POINT


                               interleave);
    }

    public static long shuffle(Space space, double x, double y)
    {
        Point point = new Point(x, y);
        long[] zValues = new long[1];
        space.decompose(point, zValues);
        long z = zValues[0];
        assert z != Space.Z_NULL;
        return z;
View Full Code Here


                    }
                    pbits.write(0, bits, 0, bits.length);
                    SIZE size = new SIZE();
                    size.cx = w;
                    size.cy = h;
                    POINT srcLoc = new POINT();
                    BLENDFUNCTION blend = new BLENDFUNCTION();
                    POINT loc = new POINT();
                    loc.x = win.getX();
                    loc.y = win.getY();
                    HWND hWnd = getHWnd(win);
                    // extract current constant alpha setting, if possible
                    ByteByReference bref = new ByteByReference();
View Full Code Here

                pbits.write(0, bits, 0, bits.length);
               
                SIZE size = new SIZE();
                size.cx = w;
                size.cy = h;
                POINT loc = new POINT();
                loc.x = alphaWindow.getX();
                loc.y = alphaWindow.getY();
                POINT srcLoc = new POINT();
                BLENDFUNCTION blend = new BLENDFUNCTION();
                blend.SourceConstantAlpha = (byte)(alpha * 255);
                blend.AlphaFormat = User32.AC_SRC_ALPHA;
                user.UpdateLayeredWindow(hWnd, screenDC, loc, size, memDC, srcLoc,
                                         0, blend, User32.ULW_ALPHA);
View Full Code Here

            List sizes = new ArrayList();
            while (!pi.isDone()) {
                int type = pi.currentSegment(coords);
                if (type == PathIterator.SEG_MOVETO) {
                    size = 1;
                    points.add(new POINT((int)coords[0], (int)coords[1]));
                }
                else if (type == PathIterator.SEG_LINETO) {
                    ++size;
                    points.add(new POINT((int)coords[0], (int)coords[1]));
                }
                else if (type == PathIterator.SEG_CLOSE) {
                    sizes.add(new Integer(size));
                }
                else {
                    throw new RuntimeException("Area is not polygonal: " + area);
                }
                pi.next();
            }
            POINT[] lppt = (POINT[])new POINT().toArray(points.size());
            POINT[] pts = (POINT[])points.toArray(new POINT[points.size()]);
            for (int i=0;i < lppt.length;i++) {
                lppt[i].x = pts[i].x;
                lppt[i].y = pts[i].y;
            }
View Full Code Here

                        pbits.write((v*ww+origin.x)*4, bits, 0, bits.length);
                    }
                    SIZE winSize = new SIZE();
                    winSize.cx = win.getWidth();
                    winSize.cy = win.getHeight();
                    POINT winLoc = new POINT();
                    winLoc.x = win.getX();
                    winLoc.y = win.getY();
                    POINT srcLoc = new POINT();
                    BLENDFUNCTION blend = new BLENDFUNCTION();
                    HWND hWnd = getHWnd(win);
                    // extract current constant alpha setting, if possible
                    ByteByReference bref = new ByteByReference();
                    IntByReference iref = new IntByReference();
View Full Code Here

                pbits.write(0, bits, 0, bits.length);
               
                SIZE size = new SIZE();
                size.cx = w;
                size.cy = h;
                POINT loc = new POINT();
                loc.x = alphaWindow.getX();
                loc.y = alphaWindow.getY();
                POINT srcLoc = new POINT();
                BLENDFUNCTION blend = new BLENDFUNCTION();
                blend.SourceConstantAlpha = (byte)(alpha * 255);
                blend.AlphaFormat = User32.AC_SRC_ALPHA;
                user.UpdateLayeredWindow(hWnd, screenDC, loc, size, memDC, srcLoc,
                                         0, blend, User32.ULW_ALPHA);
View Full Code Here

       
        String description = "";
        if ( fdbo.getString("description") != null )
          description = fdbo.getString("description");
                 
        Point placemark = placemarksFolder.createAndAddPlacemark()
           .withName(fdbo.getString("title")).withOpen(Boolean.TRUE)
           .withDescription(description)
           .createAndSetPoint().addToCoordinates(-0.126236, 51.500152);
      }
    }
View Full Code Here

      alpha = data.alpha;
      alphaData = data.alphaData;
      transparentPixel = data.transparentPixel;
      break;
    }
    BITMAP bm = new BITMAP();
    Extension.GetObject(hBitmap, BITMAP.sizeof, bm);
    int imgWidth = bm.bmWidth;
    int imgHeight = bm.bmHeight;
    int /* long */hDC = Extension.GetDC(0);
    int /* long */srcHdc = Extension.CreateCompatibleDC(hDC);
    int /* long */oldSrcBitmap = Extension.SelectObject(srcHdc, hBitmap);
    int /* long */memHdc = Extension.CreateCompatibleDC(hDC);
    BITMAPINFOHEADER bmiHeader = new BITMAPINFOHEADER();
    bmiHeader.biSize = BITMAPINFOHEADER.sizeof;
    bmiHeader.biWidth = imgWidth;
    bmiHeader.biHeight = -imgHeight;
    bmiHeader.biPlanes = 1;
    bmiHeader.biBitCount = (short) 32;
    bmiHeader.biCompression = Extension.BI_RGB;
    byte[] bmi = new byte[BITMAPINFOHEADER.sizeof];
    Extension.MoveMemory(bmi, bmiHeader, BITMAPINFOHEADER.sizeof);
    int /* long */[] pBits = new int /* long */[1];
    int /* long */memDib = Extension.CreateDIBSection(0, bmi, Extension.DIB_RGB_COLORS,
        pBits, 0, 0);
    if (memDib == 0)
      SWT.error(SWT.ERROR_NO_HANDLES);
    int /* long */oldMemBitmap = Extension.SelectObject(memHdc, memDib);
    BITMAP dibBM = new BITMAP();
    Extension.GetObject(memDib, BITMAP.sizeof, dibBM);
    int sizeInBytes = dibBM.bmWidthBytes * dibBM.bmHeight;
    Extension.BitBlt(memHdc, 0, 0, imgWidth, imgHeight, srcHdc, 0, 0, Extension.SRCCOPY);
    byte red = 0, green = 0, blue = 0;
    if (transparentPixel != -1) {
View Full Code Here

    int imgHeight = bm.bmHeight;
    int /* long */hDC = Extension.GetDC(0);
    int /* long */srcHdc = Extension.CreateCompatibleDC(hDC);
    int /* long */oldSrcBitmap = Extension.SelectObject(srcHdc, hBitmap);
    int /* long */memHdc = Extension.CreateCompatibleDC(hDC);
    BITMAPINFOHEADER bmiHeader = new BITMAPINFOHEADER();
    bmiHeader.biSize = BITMAPINFOHEADER.sizeof;
    bmiHeader.biWidth = imgWidth;
    bmiHeader.biHeight = -imgHeight;
    bmiHeader.biPlanes = 1;
    bmiHeader.biBitCount = (short) 32;
View Full Code Here

   *
   * @param libraryName
   *            the name of library to be loaded.
   */
  public void loadVersionInfo(String libraryName) {
    DLLVERSIONINFO dvi = new DLLVERSIONINFO();
    dvi.cbSize = DLLVERSIONINFO.sizeof;
    TCHAR lpLibFileName = new TCHAR(0, libraryName, true); //$NON-NLS-1$
    int hModule = OS.LoadLibrary(lpLibFileName);
    if (hModule != 0) {
      String name = "DllGetVersion\0"; //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.eclipse.swt.internal.win32.POINT

Copyright © 2018 www.massapicom. 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.