Examples of HWND


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

  }
 
  private void config() {
        robot.keyPress(KeyEvent.VK_F5);
        takeNap();
        HWND options = User32.INSTANCE.FindWindow(null, "Options");
        int[] r = {0,0,0,0};
        User32.INSTANCE.GetWindowRect(options, r);
        mouseClick(r[0]+200,r[1]+75);
        robot.keyPress(KeyEvent.VK_TAB);
        type(rows);
View Full Code Here

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

        return Holder.INSTANCE;
    }

    private static class W32WindowUtils extends NativeWindowUtils {
        private HWND getHWnd(Component w) {
            HWND hwnd = new HWND();
            hwnd.setPointer(Native.getComponentPointer(w));
            return hwnd;
        }
View Full Code Here

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

            if (!isWindowAlphaSupported()) {
                throw new UnsupportedOperationException("Set sun.java2d.noddraw=true to enable transparent windows");
            }
            whenDisplayable(w, new Runnable() {
                public void run() {
                    HWND hWnd = getHWnd(w);
                    User32 user = User32.INSTANCE;
                    int flags = user.GetWindowLong(hWnd, WinUser.GWL_EXSTYLE);
                    byte level = (byte)((int)(255 * alpha) & 0xFF);
                    if (usingUpdateLayeredWindow(w)) {
                        // If already using UpdateLayeredWindow, continue to
View Full Code Here

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

            if (transparent == isTransparent)
                return;
            whenDisplayable(w, new Runnable() {
                public void run() {
                    User32 user = User32.INSTANCE;
                    HWND hWnd = getHWnd(w);
                    int flags = user.GetWindowLong(hWnd, WinUser.GWL_EXSTYLE);
                    JRootPane root = ((RootPaneContainer)w).getRootPane();
                    JLayeredPane lp = root.getLayeredPane();
                    Container content = root.getContentPane();
                    if (content instanceof W32TransparentContentPane) {
View Full Code Here

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

        private void setWindowRegion(final Component w, final HRGN hrgn) {
            whenDisplayable(w, new Runnable() {
                public void run() {
                    GDI32 gdi = GDI32.INSTANCE;
                    User32 user = User32.INSTANCE;
                    HWND hWnd = getHWnd(w);
                    try {
                        user.SetWindowRgn(hWnd, hrgn, true);
                        setForceHeavyweightPopups(getWindow(w), hrgn != null);
                    }
                    finally {
View Full Code Here

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

                    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();
                    byte level = getAlpha(win);
                    try {
View Full Code Here

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

            fail("GetProcessId(NULL) should fail");
        }
    }
   
    public void testConvertHWND_BROADCAST() {
        HWND hwnd = WinUser.HWND_BROADCAST;
        NativeMappedConverter.getInstance(hwnd.getClass()).toNative(hwnd, null);
    }
View Full Code Here

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

        return bounds.toRectangle();
    }


  public boolean bringWindowToForeground() {
    HWND currentWindowHandle = getWindowHandle();
    if (currentWindowHandle == null) {
      debugLog.debug("Cannot run bringWindowToForeground() because window handle is null");
      return false;
    } else {
      User32.INSTANCE.ShowWindow(currentWindowHandle, User32.SW_SHOW);
View Full Code Here

Examples of windows.HWND

   
    // Create Swap Chain
    DXGI_SWAP_CHAIN_DESC desc = new DXGI_SWAP_CHAIN_DESC();
    desc.BufferCount(1)
      .Windowed(1)
      .OutputWindow(new HWND(pointerToAddress(JAWTUtils.getNativePeerHandle(frame))))
      .BufferUsage(DXGI_USAGE_RENDER_TARGET_OUTPUT)
      .SwapEffect(DXGI_SWAP_EFFECT_DISCARD);
    desc.BufferDesc().Width(800)
             .Height(600)
             .Format(DXGI_FORMAT_R8G8B8A8_UNORM)
View Full Code Here

Examples of windows.HWND

  // Utility methods
  public static final DXGI_SWAP_CHAIN_DESC SwapChainDescription(Component comp) {
    DXGI_SWAP_CHAIN_DESC desc = new DXGI_SWAP_CHAIN_DESC();
    desc.BufferCount(1)
      .Windowed(1)
      .OutputWindow(new HWND(pointerToAddress(JAWTUtils.getNativePeerHandle(comp))))
      .BufferUsage(DXGI_USAGE_RENDER_TARGET_OUTPUT)
      .SwapEffect(DXGI_SWAP_EFFECT_DISCARD);
    desc.BufferDesc().Width(comp.getWidth())
             .Height(comp.getHeight())
             .Format(DXGI_FORMAT_R8G8B8A8_UNORM)
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.