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

gnu.x11.extension.glx.PbufferClobberEvent 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.extension.glx;

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


/** GLX pbuffer clobber event. */
public class PbufferClobberEvent extends gnu.x11.event.Event {
  public static final int code = 0;


  private int event_type;
  private int drawable_type;
  private int drawable_id;
  private int buffer_mask;
  private int aux_buffer;
  private int x;
  private int y;
  private int width;
  private int height;
  private int count;

  public PbufferClobberEvent (Display display, ResponseInputStream i) { 
    super (display, i); 
    event_type = i.read_int16 ();
    drawable_id = i.read_int32 ();
    buffer_mask = i.read_int32 ();
    aux_buffer = i.read_int16 ();
    x = i.read_int16 ();
    y = i.read_int16 ();
    width = i.read_int16 ();
    height = i.read_int16 ();
    count = i.read_int16 ();
  }


  public int drawable_id () {
    return drawable_id;
  }

  public int buffer_mask () {
    return buffer_mask;
  }

  public int aux_buffer () {
    return aux_buffer;
  }

  public int x () {
    return x;
  }

  public int y () {
    return y;
  }

  public int width () {
    return width;
  }

  public int height () {
    return height;
  }

  public int count () {
    return count;
  }

  public final static int DAMAGED = 0x8017;
  public final static int SAVED = 0x8018;


  /** 
   * @return valid:
   * {@link #DAMAGED},
   * {@link #SAVED}
   */
  public int event_type () {
    return event_type;
  }


  public final static int WINDOW = 0x8019;
  public final static int PBUFFER = 0x801A;


  /** 
   * @return valid:
   * {@link #WINDOW},
   * {@link #PBUFFER}
   */
  public int drawable_type () {
    return event_type;
  }

}  




© 2015 - 2025 Weber Informatics LLC | Privacy Policy