[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/Xsharp/Events XAnyEvent.cs, 1.1, 1.2
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/Xsharp/Events XAnyEvent.cs, 1.1, 1.2 XButtonEvent.cs, 1.1, 1.2 XCirculateEvent.cs, 1.1, 1.2 XCirculateRequestEvent.cs, 1.1, 1.2 XClientMessageEvent.cs, 1.1, 1.2 XColormapEvent.cs, 1.1, 1.2 XConfigureEvent.cs, 1.1, 1.2 XConfigureRequestEvent.cs, 1.1, 1.2 XCreateWindowEvent.cs, 1.1, 1.2 XCrossingEvent.cs, 1.1, 1.2 XDestroyWindowEvent.cs, 1.1, 1.2 XEvent.cs, 1.1, 1.2 XExposeEvent.cs, 1.1, 1.2 XFocusChangeEvent.cs, 1.1, 1.2 XGraphicsExposeEvent.cs, 1.1, 1.2 XGravityEvent.cs, 1.1, 1.2 XKeyEvent.cs, 1.1, 1.2 XKeymapEvent.cs, 1.1, 1.2 XMapEvent.cs, 1.1, 1.2 XMapRequestEvent.cs, 1.1, 1.2 XMappingEvent.cs, 1.1, 1.2 XMotionEvent.cs, 1.1, 1.2 XNoExposeEvent.cs, 1.1, 1.2 XPropertyEvent.cs, 1.1, 1.2 XReparentEvent.cs, 1.1, 1.2 XResizeRequestEvent.cs, 1.1, 1.2 XSelectionClearEvent.cs, 1.1, 1.2 XSelectionEvent.cs, 1.1, 1.2 XSelectionRequestEvent.cs, 1.1, 1.2 XUnmapEvent.cs, 1.1, 1.2 XVisibilityEvent.cs, 1.1, 1.2 |
Date: |
Thu, 28 Aug 2003 20:01:49 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events
In directory subversions:/tmp/cvs-serv15414/Xsharp/Events
Modified Files:
XAnyEvent.cs XButtonEvent.cs XCirculateEvent.cs
XCirculateRequestEvent.cs XClientMessageEvent.cs
XColormapEvent.cs XConfigureEvent.cs XConfigureRequestEvent.cs
XCreateWindowEvent.cs XCrossingEvent.cs XDestroyWindowEvent.cs
XEvent.cs XExposeEvent.cs XFocusChangeEvent.cs
XGraphicsExposeEvent.cs XGravityEvent.cs XKeyEvent.cs
XKeymapEvent.cs XMapEvent.cs XMapRequestEvent.cs
XMappingEvent.cs XMotionEvent.cs XNoExposeEvent.cs
XPropertyEvent.cs XReparentEvent.cs XResizeRequestEvent.cs
XSelectionClearEvent.cs XSelectionEvent.cs
XSelectionRequestEvent.cs XUnmapEvent.cs XVisibilityEvent.cs
Log Message:
Add "ToString()" methods to the Xsharp event classes, to help with debugging.
Index: XAnyEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XAnyEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XAnyEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XAnyEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 42,45 ****
--- 42,52 ----
{ get { return (send_event__ != Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
window=" +
+ ((ulong)window).ToString();
+ }
+
} // struct XAnyEvent
Index: XButtonEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XButtonEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XButtonEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XButtonEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 59,62 ****
--- 59,78 ----
{ get { return (same_screen__ != Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " x_root=" + x_root.ToString() +
+ " y_root=" + y_root.ToString() +
+ " state=" + state.ToString() +
+ " button=" + button.ToString() +
+ " time=" + ((ulong)time).ToString() +
+ " root=" + ((ulong)root).ToString() +
+ " subwindow=" +
((ulong)subwindow).ToString() +
+ " same_screen=" +
same_screen.ToString();
+ }
+
} // struct XButtonEvent
Index: XCirculateEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XCirculateEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XCirculateEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XCirculateEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 45,48 ****
--- 45,57 ----
public int place { get { return (int)place__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
event_window=" +
+ ((ulong)event_window).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " place=" + place.ToString();
+ }
+
} // struct XCirculateEvent
Index: XCirculateRequestEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XCirculateRequestEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XCirculateRequestEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XCirculateRequestEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 44,47 ****
--- 44,56 ----
public int place { get { return (int)place__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
parent=" +
+ ((ulong)parent).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " place=" + place.ToString();
+ }
+
} // struct XCirculateRequestEvent
Index: XClientMessageEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XClientMessageEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XClientMessageEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XClientMessageEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 162,165 ****
--- 162,173 ----
}
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " message_type=" +
((ulong)message_type).ToString() +
+ " format=" + format.ToString();
+ }
+
} // struct XClientMessageEvent
Index: XColormapEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XColormapEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XColormapEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XColormapEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 47,50 ****
--- 47,59 ----
public int state { get { return (int)state__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " colormap=" +
((ulong)colormap).ToString() +
+ " c_new=" + c_new.ToString() +
+ " state=" + state.ToString();
+ }
+
} // struct XColormapEvent
Index: XConfigureEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XConfigureEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XConfigureEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XConfigureEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 57,60 ****
--- 57,75 ----
{ get { return (override_redirect__ !=
Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
event_window=" +
+ ((ulong)event_window).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " width=" + width.ToString() +
+ " height=" + height.ToString() +
+ " border_width=" +
border_width.ToString() +
+ " above=" +
((ulong)above).ToString() +
+ " override_redirect=" +
override_redirect.ToString();
+ }
+
} // struct XConfigureEvent
Index: XConfigureRequestEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XConfigureRequestEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XConfigureRequestEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XConfigureRequestEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 57,60 ****
--- 57,76 ----
public uint value_mask { get { return (uint)value_mask__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
parent=" +
+ ((ulong)parent).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " width=" + width.ToString() +
+ " height=" + height.ToString() +
+ " border_width=" +
border_width.ToString() +
+ " above=" +
((ulong)above).ToString() +
+ " detail=" + detail.ToString() +
+ " value_mask=" +
value_mask.ToString();
+ }
+
} // struct XConfigureRequestEvent
Index: XCreateWindowEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XCreateWindowEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XCreateWindowEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XCreateWindowEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 55,58 ****
--- 55,72 ----
{ get { return (override_redirect__ !=
Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
parent=" +
+ ((ulong)parent).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " width=" + width.ToString() +
+ " height=" + height.ToString() +
+ " border_width=" +
border_width.ToString() +
+ " override_redirect=" +
override_redirect.ToString();
+ }
+
} // struct XCreateWindowEvent
Index: XCrossingEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XCrossingEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XCrossingEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XCrossingEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 65,68 ****
--- 65,86 ----
public ModifierMask state { get { return (ModifierMask)(uint)state__; }
}
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " x_root=" + x_root.ToString() +
+ " y_root=" + y_root.ToString() +
+ " mode=" + mode.ToString() +
+ " detail=" + detail.ToString() +
+ " same_screen=" +
same_screen.ToString() +
+ " focus=" + focus.ToString() +
+ " state=" + state.ToString() +
+ " time=" + ((ulong)time).ToString() +
+ " root=" + ((ulong)root).ToString() +
+ " subwindow=" +
((ulong)subwindow).ToString();
+ }
+
} // struct XCrossingEvent
Index: XDestroyWindowEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XDestroyWindowEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XDestroyWindowEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XDestroyWindowEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 41,44 ****
--- 41,52 ----
{ get { return common__.window; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
event_window=" +
+ ((ulong)event_window).ToString() +
+ " window=" +
((ulong)window).ToString();
+ }
+
} // struct XDestroyWindowEvent
Index: XEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 68,71 ****
--- 68,172 ----
public Xlib.Window window { get { return xany.window; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ switch(type)
+ {
+ case EventType.KeyPress:
+ case EventType.KeyRelease:
+ return xkey.ToString();
+
+ case EventType.ButtonPress:
+ case EventType.ButtonRelease:
+ return xbutton.ToString();
+
+ case EventType.MotionNotify:
+ return xmotion.ToString();
+
+ case EventType.EnterNotify:
+ case EventType.LeaveNotify:
+ return xcrossing.ToString();
+
+ case EventType.FocusIn:
+ case EventType.FocusOut:
+ return xfocus.ToString();
+
+ case EventType.KeymapNotify:
+ return xkeymap.ToString();
+
+ case EventType.Expose:
+ return xexpose.ToString();
+
+ case EventType.GraphicsExpose:
+ return
xgraphicsexpose.ToString();
+
+ case EventType.NoExpose:
+ return xnoexpose.ToString();
+
+ case EventType.VisibilityNotify:
+ return xvisibility.ToString();
+
+ case EventType.CreateNotify:
+ return xcreatewindow.ToString();
+
+ case EventType.DestroyNotify:
+ return
xdestroywindow.ToString();
+
+ case EventType.UnmapNotify:
+ return xunmap.ToString();
+
+ case EventType.MapNotify:
+ return xmap.ToString();
+
+ case EventType.MapRequest:
+ return xmaprequest.ToString();
+
+ case EventType.ReparentNotify:
+ return xreparent.ToString();
+
+ case EventType.ConfigureNotify:
+ return xconfigure.ToString();
+
+ case EventType.GravityNotify:
+ return xgravity.ToString();
+
+ case EventType.ResizeRequest:
+ return
xresizerequest.ToString();
+
+ case EventType.ConfigureRequest:
+ return
xconfigurerequest.ToString();
+
+ case EventType.CirculateNotify:
+ return xcirculate.ToString();
+
+ case EventType.CirculateRequest:
+ return
xcirculaterequest.ToString();
+
+ case EventType.PropertyNotify:
+ return xproperty.ToString();
+
+ case EventType.SelectionClear:
+ return
xselectionclear.ToString();
+
+ case EventType.SelectionRequest:
+ return
xselectionrequest.ToString();
+
+ case EventType.SelectionNotify:
+ return xselection.ToString();
+
+ case EventType.ColormapNotify:
+ return xcolormap.ToString();
+
+ case EventType.ClientMessage:
+ return xclient.ToString();
+
+ case EventType.MappingNotify:
+ return xmapping.ToString();
+
+ default:
+ return xany.ToString();
+ }
+ }
+
} // struct XEvent
Index: XExposeEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XExposeEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XExposeEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XExposeEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 51,54 ****
--- 51,65 ----
public int count { get { return (int)count__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " width=" + width.ToString() +
+ " height=" + height.ToString() +
+ " count=" + count.ToString();
+ }
+
} // struct XExposeEvent
Index: XFocusChangeEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XFocusChangeEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XFocusChangeEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XFocusChangeEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 45,48 ****
--- 45,56 ----
public int detail { get { return (int)detail__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " mode=" + mode.ToString() +
+ " detail=" + detail.ToString();
+ }
+
} // struct XFocusChangeEvent
Index: XGraphicsExposeEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XGraphicsExposeEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XGraphicsExposeEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XGraphicsExposeEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 56,59 ****
--- 56,72 ----
public int minor_code { get { return (int)minor_code__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " width=" + width.ToString() +
+ " height=" + height.ToString() +
+ " count=" + count.ToString() +
+ " major_code=" +
major_code.ToString() +
+ " minor_code=" +
minor_code.ToString();
+ }
+
} // struct XGraphicsExposeEvent
Index: XGravityEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XGravityEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XGravityEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XGravityEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 47,50 ****
--- 47,60 ----
public int y { get { return (int)y__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
event_window=" +
+ ((ulong)event_window).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString();
+ }
+
} // struct XGravityEvent
Index: XKeyEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XKeyEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XKeyEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XKeyEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 59,62 ****
--- 59,78 ----
{ get { return (same_screen__ != Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " x_root=" + x_root.ToString() +
+ " y_root=" + y_root.ToString() +
+ " state=" + state.ToString() +
+ " keycode=" + keycode.ToString() +
+ " time=" + ((ulong)time).ToString() +
+ " root=" + ((ulong)root).ToString() +
+ " subwindow=" +
((ulong)subwindow).ToString() +
+ " same_screen=" +
same_screen.ToString();
+ }
+
} // struct XKeyEvent
Index: XKeymapEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XKeymapEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XKeymapEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XKeymapEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 112,115 ****
--- 112,121 ----
}
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString();
+ }
+
} // struct XKeymapEvent
Index: XMapEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XMapEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XMapEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XMapEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 46,49 ****
--- 46,58 ----
{ get { return (override_redirect__ !=
Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
event_window=" +
+ ((ulong)event_window).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " override_redirect=" +
override_redirect.ToString();
+ }
+
} // struct XMapEvent
Index: XMapRequestEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XMapRequestEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XMapRequestEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XMapRequestEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 40,43 ****
--- 40,51 ----
public Xlib.Window parent { get { return common__.window; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
parent=" +
+ ((ulong)parent).ToString() +
+ " window=" +
((ulong)window).ToString();
+ }
+
} // struct XMapRequestEvent
Index: XMappingEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XMappingEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XMappingEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XMappingEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 47,50 ****
--- 47,59 ----
public int count { get { return (int)count__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " request=" + request.ToString() +
+ " first_keycode=" +
first_keycode.ToString() +
+ " count=" + count.ToString();
+ }
+
} // struct XMappingEvent
Index: XMotionEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XMotionEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XMotionEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XMotionEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 58,61 ****
--- 58,77 ----
{ get { return (same_screen__ != Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " x_root=" + x_root.ToString() +
+ " y_root=" + y_root.ToString() +
+ " state=" + state.ToString() +
+ " is_hint=" + is_hint.ToString() +
+ " time=" + ((ulong)time).ToString() +
+ " root=" + ((ulong)root).ToString() +
+ " subwindow=" +
((ulong)subwindow).ToString() +
+ " same_screen=" +
same_screen.ToString();
+ }
+
} // struct XMotionEvent
Index: XNoExposeEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XNoExposeEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XNoExposeEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XNoExposeEvent.cs 29 Aug 2003 00:01:46 -0000 1.2
***************
*** 46,49 ****
--- 46,58 ----
public int minor_code { get { return (int)minor_code__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
drawable=" +
+ ((ulong)drawable).ToString() +
+ " major_code=" +
major_code.ToString() +
+ " minor_code=" +
minor_code.ToString();
+ }
+
} // struct XNoExposeEvent
Index: XPropertyEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XPropertyEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XPropertyEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XPropertyEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 45,48 ****
--- 45,57 ----
public int state { get { return (int)state__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " atom=" + ((ulong)atom).ToString() +
+ " time=" + ((ulong)time).ToString() +
+ " state=" + state.ToString();
+ }
+
} // struct XPropertyEvent
Index: XReparentEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XReparentEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XReparentEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XReparentEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 51,54 ****
--- 51,66 ----
{ get { return (override_redirect__ !=
Xlib.Bool.False); } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
event_window=" +
+ ((ulong)event_window).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " parent=" +
((ulong)parent).ToString() +
+ " x=" + x.ToString() +
+ " y=" + y.ToString() +
+ " override_redirect=" +
override_redirect.ToString();
+ }
+
} // struct XReparentEvent
Index: XResizeRequestEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XResizeRequestEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XResizeRequestEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XResizeRequestEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 45,48 ****
--- 45,56 ----
public int height { get { return (int)height__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " width=" + width.ToString() +
+ " height=" + height.ToString();
+ }
+
} // struct XResizeRequestEvent
Index: XSelectionClearEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XSelectionClearEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XSelectionClearEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XSelectionClearEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 41,44 ****
--- 41,52 ----
public Xlib.Window window { get { return common__.window; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " selection=" +
((ulong)selection).ToString() +
+ " time=" + ((ulong)time).ToString();
+ }
+
} // struct XSelectionClearEvent
Index: XSelectionEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XSelectionEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XSelectionEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XSelectionEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 44,47 ****
--- 44,58 ----
{ get { return common__.window; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
requestor=" +
+ ((ulong)requestor).ToString() +
+ " selection=" +
((ulong)selection).ToString() +
+ " target=" +
((ulong)target).ToString() +
+ " property=" +
((ulong)property).ToString() +
+ " time=" + ((ulong)time).ToString();
+ }
+
} // struct XSelectionEvent
Index: XSelectionRequestEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XSelectionRequestEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XSelectionRequestEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XSelectionRequestEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 44,47 ****
--- 44,59 ----
public Xlib.Window owner { get { return common__.window; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
owner=" +
+ ((ulong)owner).ToString() +
+ " requestor=" +
((ulong)requestor).ToString() +
+ " selection=" +
((ulong)selection).ToString() +
+ " target=" +
((ulong)target).ToString() +
+ " property=" +
((ulong)property).ToString() +
+ " time=" + ((ulong)time).ToString();
+ }
+
} // struct XSelectionRequestEvent
Index: XUnmapEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XUnmapEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XUnmapEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XUnmapEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 46,49 ****
--- 46,58 ----
{ get { return (from_configure__ != Xlib.Bool.False); }
}
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return ((EventType)type).ToString() + ":
event_window=" +
+ ((ulong)event_window).ToString() +
+ " window=" +
((ulong)window).ToString() +
+ " from_configure=" +
from_configure.ToString();
+ }
+
} // struct XUnmapEvent
Index: XVisibilityEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XVisibilityEvent.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** XVisibilityEvent.cs 28 May 2003 04:17:53 -0000 1.1
--- XVisibilityEvent.cs 29 Aug 2003 00:01:47 -0000 1.2
***************
*** 43,46 ****
--- 43,53 ----
public int state { get { return (int)state__; } }
+ // Convert this object into a string.
+ public override String ToString()
+ {
+ return common__.ToString() +
+ " state=" + state.ToString();
+ }
+
} // struct XVisibilityEvent
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/Xsharp/Events XAnyEvent.cs, 1.1, 1.2 XButtonEvent.cs, 1.1, 1.2 XCirculateEvent.cs, 1.1, 1.2 XCirculateRequestEvent.cs, 1.1, 1.2 XClientMessageEvent.cs, 1.1, 1.2 XColormapEvent.cs, 1.1, 1.2 XConfigureEvent.cs, 1.1, 1.2 XConfigureRequestEvent.cs, 1.1, 1.2 XCreateWindowEvent.cs, 1.1, 1.2 XCrossingEvent.cs, 1.1, 1.2 XDestroyWindowEvent.cs, 1.1, 1.2 XEvent.cs, 1.1, 1.2 XExposeEvent.cs, 1.1, 1.2 XFocusChangeEvent.cs, 1.1, 1.2 XGraphicsExposeEvent.cs, 1.1, 1.2 XGravityEvent.cs, 1.1, 1.2 XKeyEvent.cs, 1.1, 1.2 XKeymapEvent.cs, 1.1, 1.2 XMapEvent.cs, 1.1, 1.2 XMapRequestEvent.cs, 1.1, 1.2 XMappingEvent.cs, 1.1, 1.2 XMotionEvent.cs, 1.1, 1.2 XNoExposeEvent.cs, 1.1, 1.2 XPropertyEvent.cs, 1.1, 1.2 XReparentEvent.cs, 1.1, 1.2 XResizeRequestEvent.cs, 1.1, 1.2 XSelectionClearEvent.cs, 1.1, 1.2 XSelectionEvent.cs, 1.1, 1.2 XSelectionRequestEvent.cs, 1.1, 1.2 XUnmapEvent.cs, 1.1, 1.2 XVisibilityEvent.cs, 1.1, 1.2,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1303,1.1304
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet/support mkcase.c, NONE, 1.1 unicase.c, NONE, 1.1 .cvsignore, 1.2, 1.3 Makefile.am, 1.46, 1.47 unicode.c, 1.4, 1.5
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1303,1.1304
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet/support mkcase.c, NONE, 1.1 unicase.c, NONE, 1.1 .cvsignore, 1.2, 1.3 Makefile.am, 1.46, 1.47 unicode.c, 1.4, 1.5
- Index(es):