Lines Matching refs:from
23 in this Software without prior written authorization from The Open Group.
98 CARD32 *from, *to, *fromLast, *toLast;
112 /* convert lengths from # of bytes to # of longs */
116 from = pbuf;
117 fromLast = from + size;
118 while (from < fromLast) {
121 toLast = to + min (bufsize, fromLast - from);
124 /* can't write "cpswapl(*from++, *to++)" because cpswapl is a macro
126 cpswapl(*from, *to);
127 from++;
146 short *from, *to, *fromLast, *toLast;
160 /* convert lengths from # of bytes to # of shorts */
164 from = pbuf;
165 fromLast = from + size;
166 while (from < fromLast) {
169 toLast = to + min (bufsize, fromLast - from);
172 /* can't write "cpswaps(*from++, *to++)" because cpswaps is a macro
174 cpswaps(*from, *to);
175 from++;
753 SErrorEvent(xError *from, xError *to)
756 to->errorCode = from->errorCode;
757 cpswaps(from->sequenceNumber, to->sequenceNumber);
758 cpswapl(from->resourceID, to->resourceID);
759 cpswaps(from->minorCode, to->minorCode);
760 to->majorCode = from->majorCode;
764 SKeyButtonPtrEvent(xEvent *from, xEvent *to)
766 to->u.u.type = from->u.u.type;
767 to->u.u.detail = from->u.u.detail;
768 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
769 cpswapl(from->u.keyButtonPointer.time,
771 cpswapl(from->u.keyButtonPointer.root,
773 cpswapl(from->u.keyButtonPointer.event,
775 cpswapl(from->u.keyButtonPointer.child,
777 cpswaps(from->u.keyButtonPointer.rootX,
779 cpswaps(from->u.keyButtonPointer.rootY,
781 cpswaps(from->u.keyButtonPointer.eventX,
783 cpswaps(from->u.keyButtonPointer.eventY,
785 cpswaps(from->u.keyButtonPointer.state,
788 from->u.keyButtonPointer.sameScreen;
792 SEnterLeaveEvent(xEvent *from, xEvent *to)
794 to->u.u.type = from->u.u.type;
795 to->u.u.detail = from->u.u.detail;
796 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
797 cpswapl(from->u.enterLeave.time, to->u.enterLeave.time);
798 cpswapl(from->u.enterLeave.root, to->u.enterLeave.root);
799 cpswapl(from->u.enterLeave.event, to->u.enterLeave.event);
800 cpswapl(from->u.enterLeave.child, to->u.enterLeave.child);
801 cpswaps(from->u.enterLeave.rootX, to->u.enterLeave.rootX);
802 cpswaps(from->u.enterLeave.rootY, to->u.enterLeave.rootY);
803 cpswaps(from->u.enterLeave.eventX, to->u.enterLeave.eventX);
804 cpswaps(from->u.enterLeave.eventY, to->u.enterLeave.eventY);
805 cpswaps(from->u.enterLeave.state, to->u.enterLeave.state);
806 to->u.enterLeave.mode = from->u.enterLeave.mode;
807 to->u.enterLeave.flags = from->u.enterLeave.flags;
811 SFocusEvent(xEvent *from, xEvent *to)
813 to->u.u.type = from->u.u.type;
814 to->u.u.detail = from->u.u.detail;
815 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
816 cpswapl(from->u.focus.window, to->u.focus.window);
817 to->u.focus.mode = from->u.focus.mode;
821 SExposeEvent(xEvent *from, xEvent *to)
823 to->u.u.type = from->u.u.type;
824 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
825 cpswapl(from->u.expose.window, to->u.expose.window);
826 cpswaps(from->u.expose.x, to->u.expose.x);
827 cpswaps(from->u.expose.y, to->u.expose.y);
828 cpswaps(from->u.expose.width, to->u.expose.width);
829 cpswaps(from->u.expose.height, to->u.expose.height);
830 cpswaps(from->u.expose.count, to->u.expose.count);
834 SGraphicsExposureEvent(xEvent *from, xEvent *to)
836 to->u.u.type = from->u.u.type;
837 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
838 cpswapl(from->u.graphicsExposure.drawable,
840 cpswaps(from->u.graphicsExposure.x,
842 cpswaps(from->u.graphicsExposure.y,
844 cpswaps(from->u.graphicsExposure.width,
846 cpswaps(from->u.graphicsExposure.height,
848 cpswaps(from->u.graphicsExposure.minorEvent,
850 cpswaps(from->u.graphicsExposure.count,
853 from->u.graphicsExposure.majorEvent;
857 SNoExposureEvent(xEvent *from, xEvent *to)
859 to->u.u.type = from->u.u.type;
860 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
861 cpswapl(from->u.noExposure.drawable, to->u.noExposure.drawable);
862 cpswaps(from->u.noExposure.minorEvent, to->u.noExposure.minorEvent);
863 to->u.noExposure.majorEvent = from->u.noExposure.majorEvent;
867 SVisibilityEvent(xEvent *from, xEvent *to)
869 to->u.u.type = from->u.u.type;
870 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
871 cpswapl(from->u.visibility.window, to->u.visibility.window);
872 to->u.visibility.state = from->u.visibility.state;
876 SCreateNotifyEvent(xEvent *from, xEvent *to)
878 to->u.u.type = from->u.u.type;
879 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
880 cpswapl(from->u.createNotify.window, to->u.createNotify.window);
881 cpswapl(from->u.createNotify.parent, to->u.createNotify.parent);
882 cpswaps(from->u.createNotify.x, to->u.createNotify.x);
883 cpswaps(from->u.createNotify.y, to->u.createNotify.y);
884 cpswaps(from->u.createNotify.width, to->u.createNotify.width);
885 cpswaps(from->u.createNotify.height, to->u.createNotify.height);
886 cpswaps(from->u.createNotify.borderWidth,
888 to->u.createNotify.override = from->u.createNotify.override;
892 SDestroyNotifyEvent(xEvent *from, xEvent *to)
894 to->u.u.type = from->u.u.type;
895 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
896 cpswapl(from->u.destroyNotify.event, to->u.destroyNotify.event);
897 cpswapl(from->u.destroyNotify.window, to->u.destroyNotify.window);
901 SUnmapNotifyEvent(xEvent *from, xEvent *to)
903 to->u.u.type = from->u.u.type;
904 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
905 cpswapl(from->u.unmapNotify.event, to->u.unmapNotify.event);
906 cpswapl(from->u.unmapNotify.window, to->u.unmapNotify.window);
907 to->u.unmapNotify.fromConfigure = from->u.unmapNotify.fromConfigure;
911 SMapNotifyEvent(xEvent *from, xEvent *to)
913 to->u.u.type = from->u.u.type;
914 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
915 cpswapl(from->u.mapNotify.event, to->u.mapNotify.event);
916 cpswapl(from->u.mapNotify.window, to->u.mapNotify.window);
917 to->u.mapNotify.override = from->u.mapNotify.override;
921 SMapRequestEvent(xEvent *from, xEvent *to)
923 to->u.u.type = from->u.u.type;
924 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
925 cpswapl(from->u.mapRequest.parent, to->u.mapRequest.parent);
926 cpswapl(from->u.mapRequest.window, to->u.mapRequest.window);
930 SReparentEvent(xEvent *from, xEvent *to)
932 to->u.u.type = from->u.u.type;
933 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
934 cpswapl(from->u.reparent.event, to->u.reparent.event);
935 cpswapl(from->u.reparent.window, to->u.reparent.window);
936 cpswapl(from->u.reparent.parent, to->u.reparent.parent);
937 cpswaps(from->u.reparent.x, to->u.reparent.x);
938 cpswaps(from->u.reparent.y, to->u.reparent.y);
939 to->u.reparent.override = from->u.reparent.override;
943 SConfigureNotifyEvent(xEvent *from, xEvent *to)
945 to->u.u.type = from->u.u.type;
946 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
947 cpswapl(from->u.configureNotify.event,
949 cpswapl(from->u.configureNotify.window,
951 cpswapl(from->u.configureNotify.aboveSibling,
953 cpswaps(from->u.configureNotify.x, to->u.configureNotify.x);
954 cpswaps(from->u.configureNotify.y, to->u.configureNotify.y);
955 cpswaps(from->u.configureNotify.width, to->u.configureNotify.width);
956 cpswaps(from->u.configureNotify.height,
958 cpswaps(from->u.configureNotify.borderWidth,
960 to->u.configureNotify.override = from->u.configureNotify.override;
964 SConfigureRequestEvent(xEvent *from, xEvent *to)
966 to->u.u.type = from->u.u.type;
967 to->u.u.detail = from->u.u.detail; /* actually stack-mode */
968 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
969 cpswapl(from->u.configureRequest.parent,
971 cpswapl(from->u.configureRequest.window,
973 cpswapl(from->u.configureRequest.sibling,
975 cpswaps(from->u.configureRequest.x, to->u.configureRequest.x);
976 cpswaps(from->u.configureRequest.y, to->u.configureRequest.y);
977 cpswaps(from->u.configureRequest.width,
979 cpswaps(from->u.configureRequest.height,
981 cpswaps(from->u.configureRequest.borderWidth,
983 cpswaps(from->u.configureRequest.valueMask,
989 SGravityEvent(xEvent *from, xEvent *to)
991 to->u.u.type = from->u.u.type;
992 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
993 cpswapl(from->u.gravity.event, to->u.gravity.event);
994 cpswapl(from->u.gravity.window, to->u.gravity.window);
995 cpswaps(from->u.gravity.x, to->u.gravity.x);
996 cpswaps(from->u.gravity.y, to->u.gravity.y);
1000 SResizeRequestEvent(xEvent *from, xEvent *to)
1002 to->u.u.type = from->u.u.type;
1003 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1004 cpswapl(from->u.resizeRequest.window, to->u.resizeRequest.window);
1005 cpswaps(from->u.resizeRequest.width, to->u.resizeRequest.width);
1006 cpswaps(from->u.resizeRequest.height, to->u.resizeRequest.height);
1010 SCirculateEvent(xEvent *from, xEvent *to)
1012 to->u.u.type = from->u.u.type;
1013 to->u.u.detail = from->u.u.detail;
1014 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1015 cpswapl(from->u.circulate.event, to->u.circulate.event);
1016 cpswapl(from->u.circulate.window, to->u.circulate.window);
1017 cpswapl(from->u.circulate.parent, to->u.circulate.parent);
1018 to->u.circulate.place = from->u.circulate.place;
1022 SPropertyEvent(xEvent *from, xEvent *to)
1024 to->u.u.type = from->u.u.type;
1025 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1026 cpswapl(from->u.property.window, to->u.property.window);
1027 cpswapl(from->u.property.atom, to->u.property.atom);
1028 cpswapl(from->u.property.time, to->u.property.time);
1029 to->u.property.state = from->u.property.state;
1033 SSelectionClearEvent(xEvent *from, xEvent *to)
1035 to->u.u.type = from->u.u.type;
1036 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1037 cpswapl(from->u.selectionClear.time, to->u.selectionClear.time);
1038 cpswapl(from->u.selectionClear.window, to->u.selectionClear.window);
1039 cpswapl(from->u.selectionClear.atom, to->u.selectionClear.atom);
1043 SSelectionRequestEvent(xEvent *from, xEvent *to)
1045 to->u.u.type = from->u.u.type;
1046 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1047 cpswapl(from->u.selectionRequest.time, to->u.selectionRequest.time);
1048 cpswapl(from->u.selectionRequest.owner,
1050 cpswapl(from->u.selectionRequest.requestor,
1052 cpswapl(from->u.selectionRequest.selection,
1054 cpswapl(from->u.selectionRequest.target,
1056 cpswapl(from->u.selectionRequest.property,
1061 SSelectionNotifyEvent(xEvent *from, xEvent *to)
1063 to->u.u.type = from->u.u.type;
1064 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1065 cpswapl(from->u.selectionNotify.time, to->u.selectionNotify.time);
1066 cpswapl(from->u.selectionNotify.requestor,
1068 cpswapl(from->u.selectionNotify.selection,
1070 cpswapl(from->u.selectionNotify.target,
1072 cpswapl(from->u.selectionNotify.property,
1077 SColormapEvent(xEvent *from, xEvent *to)
1079 to->u.u.type = from->u.u.type;
1080 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1081 cpswapl(from->u.colormap.window, to->u.colormap.window);
1082 cpswapl(from->u.colormap.colormap, to->u.colormap.colormap);
1083 to->u.colormap.new = from->u.colormap.new;
1084 to->u.colormap.state = from->u.colormap.state;
1088 SMappingEvent(xEvent *from, xEvent *to)
1090 to->u.u.type = from->u.u.type;
1091 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1092 to->u.mappingNotify.request = from->u.mappingNotify.request;
1094 from->u.mappingNotify.firstKeyCode;
1095 to->u.mappingNotify.count = from->u.mappingNotify.count;
1099 SClientMessageEvent(xEvent *from, xEvent *to)
1101 to->u.u.type = from->u.u.type;
1102 to->u.u.detail = from->u.u.detail; /* actually format */
1103 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
1104 cpswapl(from->u.clientMessage.window, to->u.clientMessage.window);
1105 cpswapl(from->u.clientMessage.u.l.type,
1107 switch (from->u.u.detail) {
1110 from->u.clientMessage.u.b.bytes,20);
1113 cpswaps(from->u.clientMessage.u.s.shorts0,
1115 cpswaps(from->u.clientMessage.u.s.shorts1,
1117 cpswaps(from->u.clientMessage.u.s.shorts2,
1119 cpswaps(from->u.clientMessage.u.s.shorts3,
1121 cpswaps(from->u.clientMessage.u.s.shorts4,
1123 cpswaps(from->u.clientMessage.u.s.shorts5,
1125 cpswaps(from->u.clientMessage.u.s.shorts6,
1127 cpswaps(from->u.clientMessage.u.s.shorts7,
1129 cpswaps(from->u.clientMessage.u.s.shorts8,
1131 cpswaps(from->u.clientMessage.u.s.shorts9,
1135 cpswapl(from->u.clientMessage.u.l.longs0,
1137 cpswapl(from->u.clientMessage.u.l.longs1,
1139 cpswapl(from->u.clientMessage.u.l.longs2,
1141 cpswapl(from->u.clientMessage.u.l.longs3,
1143 cpswapl(from->u.clientMessage.u.l.longs4,
1150 SKeymapNotifyEvent(xEvent *from, xEvent *to)
1154 *to = *from;