Browse Source

* Added pointer types for all events. (PXxxxEvent = ^TXxxxEvent)

sg 25 years ago
parent
commit
aeeee6ede1
1 changed files with 41 additions and 2 deletions
  1. 41 2
      packages/x11/xlib.pp

+ 41 - 2
packages/x11/xlib.pp

@@ -509,7 +509,8 @@ uses X;
        PXKeyEvent =^TXKeyEvent;
        PXKeyEvent =^TXKeyEvent;
        TXKeyPressedEvent = TXKeyEvent;
        TXKeyPressedEvent = TXKeyEvent;
        PXKeyPressedEvent= ^TXKeyPressedEvent;
        PXKeyPressedEvent= ^TXKeyPressedEvent;
-       XKeyReleasedEvent = TXKeyEvent;
+       TXKeyReleasedEvent = TXKeyEvent;
+       PXKeyReleasedEvent= ^TXKeyReleasedEvent;
        TXButtonEvent = record
        TXButtonEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -527,8 +528,11 @@ uses X;
             button : cardinal;
             button : cardinal;
             same_screen : TBool;
             same_screen : TBool;
          end;
          end;
+       PXButtonEvent = ^TXButtonEvent;
        TXButtonPressedEvent = TXButtonEvent;
        TXButtonPressedEvent = TXButtonEvent;
+       PXButtonPressedEvent = ^TXButtonPressedEvent;
        TXButtonReleasedEvent = TXButtonEvent;
        TXButtonReleasedEvent = TXButtonEvent;
+       PXButtonReleasedEvent = ^TXButtonReleasedEvent;
        TXMotionEvent = record
        TXMotionEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -546,7 +550,9 @@ uses X;
             is_hint : char;
             is_hint : char;
             same_screen : TBool;
             same_screen : TBool;
          end;
          end;
+       PXMotionEvent = ^TXMotionEvent;
        TXPointerMovedEvent = TXMotionEvent;
        TXPointerMovedEvent = TXMotionEvent;
+       PXPointerMovedEvent = ^TXPointerMovedEvent;
     {
     {
          * NotifyAncestor, NotifyVirtual, NotifyInferior,
          * NotifyAncestor, NotifyVirtual, NotifyInferior,
          * NotifyNonlinear,NotifyNonlinearVirtual
          * NotifyNonlinear,NotifyNonlinearVirtual
@@ -570,8 +576,11 @@ uses X;
             focus : TBool;
             focus : TBool;
             state : cardinal;
             state : cardinal;
          end;
          end;
+       PXCrossingEvent = ^TXCrossingEvent;
        TXEnterWindowEvent = TXCrossingEvent;
        TXEnterWindowEvent = TXCrossingEvent;
+       PXEnterWindowEvent = ^TXEnterWindowEvent;
        TXLeaveWindowEvent = TXCrossingEvent;
        TXLeaveWindowEvent = TXCrossingEvent;
+       PXLeaveWindowEvent = ^TXLeaveWindowEvent;
        TXFocusChangeEvent = record
        TXFocusChangeEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -581,8 +590,11 @@ uses X;
             mode : longint;
             mode : longint;
             detail : longint;
             detail : longint;
          end;
          end;
+       PXFocusChangeEvent = ^TXFocusChangeEvent;
        TXFocusInEvent = TXFocusChangeEvent;
        TXFocusInEvent = TXFocusChangeEvent;
+       PXFocusInEvent = ^TXFocusInEvent;
        TXFocusOutEvent = TXFocusChangeEvent;
        TXFocusOutEvent = TXFocusChangeEvent;
+       PXFocusOutEvent = ^TXFocusOutEvent;
        TXKeymapEvent = record
        TXKeymapEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -591,6 +603,7 @@ uses X;
             window : TWindow;
             window : TWindow;
             key_vector : array[0..(32)-1] of char;
             key_vector : array[0..(32)-1] of char;
          end;
          end;
+       PXKeymapEvent = ^TXKeymapEvent;
        TXExposeEvent = record
        TXExposeEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -603,6 +616,7 @@ uses X;
             height : longint;
             height : longint;
             count : longint;
             count : longint;
          end;
          end;
+       PXExposeEvent = ^TXExposeEvent;
        TXGraphicsExposeEvent = record
        TXGraphicsExposeEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -617,6 +631,7 @@ uses X;
             major_code : longint;
             major_code : longint;
             minor_code : longint;
             minor_code : longint;
          end;
          end;
+       PXGraphicsExposeEvent = ^TXGraphicsExposeEvent;
        TXNoExposeEvent = record
        TXNoExposeEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -626,6 +641,7 @@ uses X;
             major_code : longint;
             major_code : longint;
             minor_code : longint;
             minor_code : longint;
          end;
          end;
+       PXNoExposeEvent = ^TXNoExposeEvent;
        TXVisibilityEvent = record
        TXVisibilityEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -634,6 +650,7 @@ uses X;
             window : TWindow;
             window : TWindow;
             state : longint;
             state : longint;
          end;
          end;
+       PXVisibilityEvent = ^TXVisibilityEvent;
        TXCreateWindowEvent = record
        TXCreateWindowEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -648,6 +665,7 @@ uses X;
             border_width : longint;
             border_width : longint;
             override_redirect : TBool;
             override_redirect : TBool;
          end;
          end;
+       PXCreateWindowEvent = ^TXCreateWindowEvent;
        TXDestroyWindowEvent = record
        TXDestroyWindowEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -656,6 +674,7 @@ uses X;
             event : TWindow;
             event : TWindow;
             window : TWindow;
             window : TWindow;
          end;
          end;
+       PXDestroyWindowEvent = ^TXDestroyWindowEvent;
        TXUnmapEvent = record
        TXUnmapEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -665,6 +684,7 @@ uses X;
             window : TWindow;
             window : TWindow;
             from_configure : TBool;
             from_configure : TBool;
          end;
          end;
+       PXUnmapEvent = ^TXUnmapEvent;
        TXMapEvent = record
        TXMapEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -674,6 +694,7 @@ uses X;
             window : TWindow;
             window : TWindow;
             override_redirect : TBool;
             override_redirect : TBool;
          end;
          end;
+       PXMapEvent = ^TXMapEvent;
        TXMapRequestEvent = record
        TXMapRequestEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -682,6 +703,7 @@ uses X;
             parent : TWindow;
             parent : TWindow;
             window : TWindow;
             window : TWindow;
          end;
          end;
+       PXMapRequestEvent = ^TXMapRequestEvent;
        TXReparentEvent = record
        TXReparentEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -694,6 +716,7 @@ uses X;
             y : longint;
             y : longint;
             override_redirect : TBool;
             override_redirect : TBool;
          end;
          end;
+       PXReparentEvent = ^TXReparentEvent;
        TXConfigureEvent = record
        TXConfigureEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -709,6 +732,7 @@ uses X;
             above : TWindow;
             above : TWindow;
             override_redirect : TBool;
             override_redirect : TBool;
          end;
          end;
+       PXConfigureEvent = ^TXConfigureEvent;
        TXGravityEvent = record
        TXGravityEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -719,6 +743,7 @@ uses X;
             x : longint;
             x : longint;
             y : longint;
             y : longint;
          end;
          end;
+       PXGravityEvent = ^TXGravityEvent;
        TXResizeRequestEvent = record
        TXResizeRequestEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -728,6 +753,7 @@ uses X;
             width : longint;
             width : longint;
             height : longint;
             height : longint;
          end;
          end;
+       PXResizeRequestEvent = ^TXResizeRequestEvent;
        TXConfigureRequestEvent = record
        TXConfigureRequestEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -744,6 +770,7 @@ uses X;
             detail : longint;
             detail : longint;
             value_mask : cardinal;
             value_mask : cardinal;
          end;
          end;
+       PXConfigureRequestEvent = ^TXConfigureRequestEvent;
        TXCirculateEvent = record
        TXCirculateEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -753,6 +780,7 @@ uses X;
             window : TWindow;
             window : TWindow;
             place : longint;
             place : longint;
          end;
          end;
+       PXCirculateEvent = ^TXCirculateEvent;
        TXCirculateRequestEvent = record
        TXCirculateRequestEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -762,6 +790,7 @@ uses X;
             window : TWindow;
             window : TWindow;
             place : longint;
             place : longint;
          end;
          end;
+       PXCirculateRequestEvent = ^TXCirculateRequestEvent;
        TXPropertyEvent = record
        TXPropertyEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -772,6 +801,7 @@ uses X;
             time : TTime;
             time : TTime;
             state : longint;
             state : longint;
          end;
          end;
+       PXPropertyEvent = ^TXPropertyEvent;
        TXSelectionClearEvent = record
        TXSelectionClearEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -781,6 +811,7 @@ uses X;
             selection : TAtom;
             selection : TAtom;
             time : TTime;
             time : TTime;
          end;
          end;
+       PXSelectionClearEvent = ^TXSelectionClearEvent;
        TXSelectionRequestEvent = record
        TXSelectionRequestEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -793,6 +824,7 @@ uses X;
             {whatproperty : TAtom;}
             {whatproperty : TAtom;}
             time : TTime;
             time : TTime;
          end;
          end;
+       PXSelectionRequestEvent = ^TXSelectionRequestEvent;
        TXSelectionEvent = record
        TXSelectionEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -804,6 +836,7 @@ uses X;
             whatproperty : TAtom;
             whatproperty : TAtom;
             whattime : TTime;
             whattime : TTime;
          end;
          end;
+       PXSelectionEvent = ^TXSelectionEvent;
        TXColormapEvent = record
        TXColormapEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -815,6 +848,7 @@ uses X;
             news : TBool; { Was new. MVC }
             news : TBool; { Was new. MVC }
             state : longint;
             state : longint;
          end;
          end;
+       PXColormapEvent = ^TXColormapEvent;
        TXClientMessageEvent = record
        TXClientMessageEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -830,6 +864,7 @@ uses X;
                    2 : (l : array[0..(5)-1] of longint);
                    2 : (l : array[0..(5)-1] of longint);
               end;
               end;
          end;
          end;
+       PXClientMessageEvent = ^TXClientMessageEvent;
        TXMappingEvent = record
        TXMappingEvent = record
             eventtype : longint;
             eventtype : longint;
             serial : cardinal;
             serial : cardinal;
@@ -858,6 +893,7 @@ uses X;
             display : PDisplay;
             display : PDisplay;
             window : TWindow;
             window : TWindow;
          end;
          end;
+       PXAnyEvent = ^TXAnyEvent;
        TXEvent = record
        TXEvent = record
            case longint of
            case longint of
               0 : (eventtype : longint);
               0 : (eventtype : longint);
@@ -1690,7 +1726,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.5  2000-03-06 16:15:43  peter
+  Revision 1.6  2000-05-22 08:21:05  sg
+  * Added pointer types for all events. (PXxxxEvent = ^TXxxxEvent)
+
+  Revision 1.5  2000/03/06 16:15:43  peter
     * removed comment warnings
     * removed comment warnings
 
 
   Revision 1.4  2000/03/01 09:16:13  sg
   Revision 1.4  2000/03/01 09:16:13  sg