package sun.awt.X11;
import sun.misc.*;
import sun.util.logging.PlatformLogger;
public class XEvent extends XWrapperBase {
private Unsafe unsafe = XlibWrapper.unsafe;
private final boolean should_free_memory;
public static int getSize() { return 192; }
public int getDataSize() { return getSize(); }
long pData;
public long getPData() { return pData; }
public XEvent(long addr) {
log.finest("Creating");
pData=addr;
should_free_memory = false;
}
public XEvent() {
log.finest("Creating");
pData = unsafe.allocateMemory(getSize());
should_free_memory = true;
}
public void dispose() {
log.finest("Disposing");
if (should_free_memory) {
log.finest("freeing memory");
unsafe.freeMemory(pData);
}
}
public int get_type() { log.finest("");return (Native.getInt(pData+0)); }
public void set_type(int v) { log.finest(""); Native.putInt(pData+0, v); }
public XAnyEvent get_xany() { log.finest("");return new XAnyEvent(pData + 0); }
public XKeyEvent get_xkey() { log.finest("");return new XKeyEvent(pData + 0); }
public XButtonEvent get_xbutton() { log.finest("");return new XButtonEvent(pData + 0); }
public XMotionEvent get_xmotion() { log.finest("");return new XMotionEvent(pData + 0); }
public XCrossingEvent get_xcrossing() { log.finest("");return new XCrossingEvent(pData + 0); }
public XFocusChangeEvent get_xfocus() { log.finest("");return new XFocusChangeEvent(pData + 0); }
public XExposeEvent get_xexpose() { log.finest("");return new XExposeEvent(pData + 0); }
public XGraphicsExposeEvent get_xgraphicsexpose() { log.finest("");return new XGraphicsExposeEvent(pData + 0); }
public XNoExposeEvent get_xnoexpose() { log.finest("");return new XNoExposeEvent(pData + 0); }
public XVisibilityEvent get_xvisibility() { log.finest("");return new XVisibilityEvent(pData + 0); }
public XCreateWindowEvent get_xcreatewindow() { log.finest("");return new XCreateWindowEvent(pData + 0); }
public XDestroyWindowEvent get_xdestroywindow() { log.finest("");return new XDestroyWindowEvent(pData + 0); }
public XUnmapEvent get_xunmap() { log.finest("");return new XUnmapEvent(pData + 0); }
public XMapEvent get_xmap() { log.finest("");return new XMapEvent(pData + 0); }
public XMapRequestEvent get_xmaprequest() { log.finest("");return new XMapRequestEvent(pData + 0); }
public XReparentEvent get_xreparent() { log.finest("");return new XReparentEvent(pData + 0); }
public XConfigureEvent get_xconfigure() { log.finest("");return new XConfigureEvent(pData + 0); }
public XGravityEvent get_xgravity() { log.finest("");return new XGravityEvent(pData + 0); }
public XResizeRequestEvent get_xresizerequest() { log.finest("");return new XResizeRequestEvent(pData + 0); }
public XConfigureRequestEvent get_xconfigurerequest() { log.finest("");return new XConfigureRequestEvent(pData + 0); }
public XCirculateEvent get_xcirculate() { log.finest("");return new XCirculateEvent(pData + 0); }
public XCirculateRequestEvent get_xcirculaterequest() { log.finest("");return new XCirculateRequestEvent(pData + 0); }
public XPropertyEvent get_xproperty() { log.finest("");return new XPropertyEvent(pData + 0); }
public XSelectionClearEvent get_xselectionclear() { log.finest("");return new XSelectionClearEvent(pData + 0); }
public XSelectionRequestEvent get_xselectionrequest() { log.finest("");return new XSelectionRequestEvent(pData + 0); }
public XSelectionEvent get_xselection() { log.finest("");return new XSelectionEvent(pData + 0); }
public XColormapEvent get_xcolormap() { log.finest("");return new XColormapEvent(pData + 0); }
public XClientMessageEvent get_xclient() { log.finest("");return new XClientMessageEvent(pData + 0); }
public XMappingEvent get_xmapping() { log.finest("");return new XMappingEvent(pData + 0); }
public XErrorEvent get_xerror() { log.finest("");return new XErrorEvent(pData + 0); }
public XKeymapEvent get_xkeymap() { log.finest("");return new XKeymapEvent(pData + 0); }
public long get_pad(int index) { log.finest("");return Native.getLong(pData + 0+index*Native.getLongSize()); }
public void set_pad(int index, long v) { log.finest(""); Native.putLong(pData+0 + index*Native.getLongSize(), v); }
public long get_pad() { log.finest("");return pData+0; }
String getName() {
return "XEvent";
}
String getFieldsAsString() {
StringBuilder ret = new StringBuilder(1320);
ret.append("type = ").append( XlibWrapper.eventToString[get_type()] ).append(", ");
ret.append("xany = ").append( get_xany() ).append(", ");
ret.append("xkey = ").append( get_xkey() ).append(", ");
ret.append("xbutton = ").append( get_xbutton() ).append(", ");
ret.append("xmotion = ").append( get_xmotion() ).append(", ");
ret.append("xcrossing = ").append( get_xcrossing() ).append(", ");
ret.append("xfocus = ").append( get_xfocus() ).append(", ");
ret.append("xexpose = ").append( get_xexpose() ).append(", ");
ret.append("xgraphicsexpose = ").append( get_xgraphicsexpose() ).append(", ");
ret.append("xnoexpose = ").append( get_xnoexpose() ).append(", ");
ret.append("xvisibility = ").append( get_xvisibility() ).append(", ");
ret.append("xcreatewindow = ").append( get_xcreatewindow() ).append(", ");
ret.append("xdestroywindow = ").append( get_xdestroywindow() ).append(", ");
ret.append("xunmap = ").append( get_xunmap() ).append(", ");
ret.append("xmap = ").append( get_xmap() ).append(", ");
ret.append("xmaprequest = ").append( get_xmaprequest() ).append(", ");
ret.append("xreparent = ").append( get_xreparent() ).append(", ");
ret.append("xconfigure = ").append( get_xconfigure() ).append(", ");
ret.append("xgravity = ").append( get_xgravity() ).append(", ");
ret.append("xresizerequest = ").append( get_xresizerequest() ).append(", ");
ret.append("xconfigurerequest = ").append( get_xconfigurerequest() ).append(", ");
ret.append("xcirculate = ").append( get_xcirculate() ).append(", ");
ret.append("xcirculaterequest = ").append( get_xcirculaterequest() ).append(", ");
ret.append("xproperty = ").append( get_xproperty() ).append(", ");
ret.append("xselectionclear = ").append( get_xselectionclear() ).append(", ");
ret.append("xselectionrequest = ").append( get_xselectionrequest() ).append(", ");
ret.append("xselection = ").append( get_xselection() ).append(", ");
ret.append("xcolormap = ").append( get_xcolormap() ).append(", ");
ret.append("xclient = ").append( get_xclient() ).append(", ");
ret.append("xmapping = ").append( get_xmapping() ).append(", ");
ret.append("xerror = ").append( get_xerror() ).append(", ");
ret.append("xkeymap = ").append( get_xkeymap() ).append(", ");
ret.append("{")
.append( get_pad(0) ).append(" ")
.append( get_pad(1) ).append(" ")
.append( get_pad(2) ).append(" ")
.append( get_pad(3) ).append(" ")
.append( get_pad(4) ).append(" ")
.append( get_pad(5) ).append(" ")
.append( get_pad(6) ).append(" ")
.append( get_pad(7) ).append(" ")
.append( get_pad(8) ).append(" ")
.append( get_pad(9) ).append(" ")
.append( get_pad(10) ).append(" ")
.append( get_pad(11) ).append(" ")
.append( get_pad(12) ).append(" ")
.append( get_pad(13) ).append(" ")
.append( get_pad(14) ).append(" ")
.append( get_pad(15) ).append(" ")
.append( get_pad(16) ).append(" ")
.append( get_pad(17) ).append(" ")
.append( get_pad(18) ).append(" ")
.append( get_pad(19) ).append(" ")
.append( get_pad(20) ).append(" ")
.append( get_pad(21) ).append(" ")
.append( get_pad(22) ).append(" ")
.append( get_pad(23) ).append(" ").append( "}");
return ret.toString();
}
}