Package com.sun.jna.platform.win32.WinDef

Examples of com.sun.jna.platform.win32.WinDef.RECT.toRectangle()



    public Rectangle getHSWindowBounds() {
        RECT bounds = new RECT();
        User32Extra.INSTANCE.GetWindowRect(windowHandle, bounds);
        return bounds.toRectangle();
    }


  public boolean bringWindowToForeground() {
    HWND currentWindowHandle = getWindowHandle();
View Full Code Here


    RECT bounds = new RECT();
    User32Extra.INSTANCE.GetClientRect(hWnd, bounds);

    // check to make sure the window's not minimized
    if (bounds.toRectangle().width >= 1024) {
      if (isMinimised) {
        _notifyObserversOfChangeTo("Hearthstone window restored");
        isMinimised = false;
      }
View Full Code Here

      if (isMinimised) {
        _notifyObserversOfChangeTo("Hearthstone window restored");
        isMinimised = false;
      }

      if (_isFullScreen(bounds.toRectangle())) {
        if (!isFullscreen) {
          _notifyObserversOfChangeTo("Hearthstone running in fullscreen");
          isFullscreen = true;
        }
        return null;
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.