Lines Matching refs:to

5 Permission to use, copy, modify, distribute, and sell this software and its
22 used in advertising or otherwise to promote the sale, use or other dealings
30 Permission to use, copy, modify, and distribute this software and its
35 used in advertising or publicity pertaining to distribution of the
69 * Thanks to Jack Palevich for testing and subsequently rewriting all this
82 to several statements */
98 CARD32 *from, *to, *fromLast, *toLast;
112 /* convert lengths from # of bytes to # of longs */
120 to = pbufT;
121 toLast = to + min (bufsize, fromLast - from);
122 nbytes = (toLast - to) << 2;
123 while (to < toLast) {
124 /* can't write "cpswapl(*from++, *to++)" because cpswapl is a macro
126 cpswapl(*from, *to);
128 to++;
146 short *from, *to, *fromLast, *toLast;
160 /* convert lengths from # of bytes to # of shorts */
168 to = pbufT;
169 toLast = to + min (bufsize, fromLast - from);
170 nbytes = (toLast - to) << 1;
171 while (to < toLast) {
172 /* can't write "cpswaps(*from++, *to++)" because cpswaps is a macro
174 cpswaps(*from, *to);
176 to++;
753 SErrorEvent(xError *from, xError *to)
755 to->type = X_Error;
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);
770 to->u.keyButtonPointer.time);
772 to->u.keyButtonPointer.root);
774 to->u.keyButtonPointer.event);
776 to->u.keyButtonPointer.child);
778 to->u.keyButtonPointer.rootX);
780 to->u.keyButtonPointer.rootY);
782 to->u.keyButtonPointer.eventX);
784 to->u.keyButtonPointer.eventY);
786 to->u.keyButtonPointer.state);
787 to->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);
839 to->u.graphicsExposure.drawable);
841 to->u.graphicsExposure.x);
843 to->u.graphicsExposure.y);
845 to->u.graphicsExposure.width);
847 to->u.graphicsExposure.height);
849 to->u.graphicsExposure.minorEvent);
851 to->u.graphicsExposure.count);
852 to->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);
887 to->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);
948 to->u.configureNotify.event);
950 to->u.configureNotify.window);
952 to->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);
957 to->u.configureNotify.height);
959 to->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);
970 to->u.configureRequest.parent);
972 to->u.configureRequest.window);
974 to->u.configureRequest.sibling);
975 cpswaps(from->u.configureRequest.x, to->u.configureRequest.x);
976 cpswaps(from->u.configureRequest.y, to->u.configureRequest.y);
978 to->u.configureRequest.width);
980 to->u.configureRequest.height);
982 to->u.configureRequest.borderWidth);
984 to->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);
1049 to->u.selectionRequest.owner);
1051 to->u.selectionRequest.requestor);
1053 to->u.selectionRequest.selection);
1055 to->u.selectionRequest.target);
1057 to->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);
1067 to->u.selectionNotify.requestor);
1069 to->u.selectionNotify.selection);
1071 to->u.selectionNotify.target);
1073 to->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;
1093 to->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);
1106 to->u.clientMessage.u.l.type);
1109 memmove(to->u.clientMessage.u.b.bytes,
1114 to->u.clientMessage.u.s.shorts0);
1116 to->u.clientMessage.u.s.shorts1);
1118 to->u.clientMessage.u.s.shorts2);
1120 to->u.clientMessage.u.s.shorts3);
1122 to->u.clientMessage.u.s.shorts4);
1124 to->u.clientMessage.u.s.shorts5);
1126 to->u.clientMessage.u.s.shorts6);
1128 to->u.clientMessage.u.s.shorts7);
1130 to->u.clientMessage.u.s.shorts8);
1132 to->u.clientMessage.u.s.shorts9);
1136 to->u.clientMessage.u.l.longs0);
1138 to->u.clientMessage.u.l.longs1);
1140 to->u.clientMessage.u.l.longs2);
1142 to->u.clientMessage.u.l.longs3);
1144 to->u.clientMessage.u.l.longs4);
1150 SKeymapNotifyEvent(xEvent *from, xEvent *to)
1154 *to = *from;
1230 /* The Pixmap formats don't need to be swapped, just copied. */