dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/Xsharp/Events XAnyEvent.cs, 1.2, 1.3 XClie


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/Xsharp/Events XAnyEvent.cs, 1.2, 1.3 XClientMessageEvent.cs, 1.2, 1.3
Date: Wed, 03 Dec 2003 05:14:23 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events
In directory subversions:/tmp/cvs-serv23812/Xsharp/Events

Modified Files:
        XAnyEvent.cs XClientMessageEvent.cs 
Log Message:


Implement window maximize and restore; track dynamic changes to
the minimized and maximized window states.


Index: XAnyEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XAnyEvent.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** XAnyEvent.cs        29 Aug 2003 00:01:46 -0000      1.2
--- XAnyEvent.cs        3 Dec 2003 05:14:21 -0000       1.3
***************
*** 37,41 ****
  
        // Convert odd fields into types that are useful.
!       public int type    { get { return (int)type__; } }
        public uint serial { get { return (uint)serial__; } }
        public bool send_event
--- 37,42 ----
  
        // Convert odd fields into types that are useful.
!       public int type    { get { return (int)type__; }
!                                                set { type__ = 
(Xlib.Xint)value; } }
        public uint serial { get { return (uint)serial__; } }
        public bool send_event

Index: XClientMessageEvent.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Events/XClientMessageEvent.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** XClientMessageEvent.cs      29 Aug 2003 00:01:46 -0000      1.2
--- XClientMessageEvent.cs      3 Dec 2003 05:14:21 -0000       1.3
***************
*** 74,82 ****
        internal struct LongMessage
        {
!               public Xlib.Xlong s0;
!               public Xlib.Xlong s1;
!               public Xlib.Xlong s2;
!               public Xlib.Xlong s3;
!               public Xlib.Xlong s4;
  
        } // struct LongMessage
--- 74,82 ----
        internal struct LongMessage
        {
!               public Xlib.Xlong l0;
!               public Xlib.Xlong l1;
!               public Xlib.Xlong l2;
!               public Xlib.Xlong l3;
!               public Xlib.Xlong l4;
  
        } // struct LongMessage
***************
*** 104,108 ****
  
        // Convert odd fields into types that are useful.
!       public int format         { get { return (int)format__; } }
        public sbyte b(int n)
                        {
--- 104,109 ----
  
        // Convert odd fields into types that are useful.
!       public int format         { get { return (int)format__; }
!                                                               set { format__ 
= (Xlib.Xint)value; } }
        public sbyte b(int n)
                        {
***************
*** 153,163 ****
                                switch(n)
                                {
!                                       case 0:         return 
(int)(data__.l.s0);
!                                       case 1:         return 
(int)(data__.l.s1);
!                                       case 2:         return 
(int)(data__.l.s2);
!                                       case 3:         return 
(int)(data__.l.s3);
!                                       case 4:         return 
(int)(data__.l.s4);
                                }
                                return 0;
                        }
  
--- 154,175 ----
                                switch(n)
                                {
!                                       case 0:         return 
(int)(data__.l.l0);
!                                       case 1:         return 
(int)(data__.l.l1);
!                                       case 2:         return 
(int)(data__.l.l2);
!                                       case 3:         return 
(int)(data__.l.l3);
!                                       case 4:         return 
(int)(data__.l.l4);
                                }
                                return 0;
+                       }
+       public void setl(int n, int value)
+                       {
+                               switch(n)
+                               {
+                                       case 0:         data__.l.l0 = 
(Xlib.Xlong)value; break;
+                                       case 1:         data__.l.l1 = 
(Xlib.Xlong)value; break;
+                                       case 2:         data__.l.l2 = 
(Xlib.Xlong)value; break;
+                                       case 3:         data__.l.l3 = 
(Xlib.Xlong)value; break;
+                                       case 4:         data__.l.l4 = 
(Xlib.Xlong)value; break;
+                               }
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]