All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gnu.x11.event.ResizeRequest Maven / Gradle / Ivy

Go to download

Escher is a collection of libraries for X Window System written purely in Java.

The newest version!
package gnu.x11.event;

import gnu.x11.Display;
import gnu.x11.ResponseInputStream;


/** X resize request event. */
public final class ResizeRequest extends Event {
  public static final int CODE = 25;

  public int window_id;

  public int width;
  public int height;

  
  public ResizeRequest (Display display, ResponseInputStream in) {
    super (display, in);
    window_id = in.read_int32 ();
    width = in.read_int16 ();
    height = in.read_int16 ();
    in.skip (20);
  }


  //-- reading

  public int width () {
    return width;
  }

  public int height () {
    return height;
  }

  /**
   * Returns the window ID of the resize request.
   *
   * @return the window ID of the resize request
   */
  public int window_id () {
    return window_id;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy