Lines Matching refs:from

23 in this Software without prior written authorization from The Open Group.
95 CARD32 *from, *to, *fromLast, *toLast;
107 /* convert lengths from # of bytes to # of longs */
111 from = pbuf;
112 fromLast = from + size;
113 while (from < fromLast) {
117 toLast = to + min(bufsize, fromLast - from);
120 /* can't write "cpswapl(*from++, *to++)" because cpswapl is a macro
122 cpswapl(*from, *to);
123 from++;
142 short *from, *to, *fromLast, *toLast;
154 /* convert lengths from # of bytes to # of shorts */
158 from = pbuf;
159 fromLast = from + size;
160 while (from < fromLast) {
164 toLast = to + min(bufsize, fromLast - from);
167 /* can't write "cpswaps(*from++, *to++)" because cpswaps is a macro
169 cpswaps(*from, *to);
170 from++;
667 SErrorEvent(xError * from, xError * to)
670 to->errorCode = from->errorCode;
671 cpswaps(from->sequenceNumber, to->sequenceNumber);
672 cpswapl(from->resourceID, to->resourceID);
673 cpswaps(from->minorCode, to->minorCode);
674 to->majorCode = from->majorCode;
678 SKeyButtonPtrEvent(xEvent *from, xEvent *to)
680 to->u.u.type = from->u.u.type;
681 to->u.u.detail = from->u.u.detail;
682 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
683 cpswapl(from->u.keyButtonPointer.time, to->u.keyButtonPointer.time);
684 cpswapl(from->u.keyButtonPointer.root, to->u.keyButtonPointer.root);
685 cpswapl(from->u.keyButtonPointer.event, to->u.keyButtonPointer.event);
686 cpswapl(from->u.keyButtonPointer.child, to->u.keyButtonPointer.child);
687 cpswaps(from->u.keyButtonPointer.rootX, to->u.keyButtonPointer.rootX);
688 cpswaps(from->u.keyButtonPointer.rootY, to->u.keyButtonPointer.rootY);
689 cpswaps(from->u.keyButtonPointer.eventX, to->u.keyButtonPointer.eventX);
690 cpswaps(from->u.keyButtonPointer.eventY, to->u.keyButtonPointer.eventY);
691 cpswaps(from->u.keyButtonPointer.state, to->u.keyButtonPointer.state);
692 to->u.keyButtonPointer.sameScreen = from->u.keyButtonPointer.sameScreen;
696 SEnterLeaveEvent(xEvent *from, xEvent *to)
698 to->u.u.type = from->u.u.type;
699 to->u.u.detail = from->u.u.detail;
700 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
701 cpswapl(from->u.enterLeave.time, to->u.enterLeave.time);
702 cpswapl(from->u.enterLeave.root, to->u.enterLeave.root);
703 cpswapl(from->u.enterLeave.event, to->u.enterLeave.event);
704 cpswapl(from->u.enterLeave.child, to->u.enterLeave.child);
705 cpswaps(from->u.enterLeave.rootX, to->u.enterLeave.rootX);
706 cpswaps(from->u.enterLeave.rootY, to->u.enterLeave.rootY);
707 cpswaps(from->u.enterLeave.eventX, to->u.enterLeave.eventX);
708 cpswaps(from->u.enterLeave.eventY, to->u.enterLeave.eventY);
709 cpswaps(from->u.enterLeave.state, to->u.enterLeave.state);
710 to->u.enterLeave.mode = from->u.enterLeave.mode;
711 to->u.enterLeave.flags = from->u.enterLeave.flags;
715 SFocusEvent(xEvent *from, xEvent *to)
717 to->u.u.type = from->u.u.type;
718 to->u.u.detail = from->u.u.detail;
719 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
720 cpswapl(from->u.focus.window, to->u.focus.window);
721 to->u.focus.mode = from->u.focus.mode;
725 SExposeEvent(xEvent *from, xEvent *to)
727 to->u.u.type = from->u.u.type;
728 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
729 cpswapl(from->u.expose.window, to->u.expose.window);
730 cpswaps(from->u.expose.x, to->u.expose.x);
731 cpswaps(from->u.expose.y, to->u.expose.y);
732 cpswaps(from->u.expose.width, to->u.expose.width);
733 cpswaps(from->u.expose.height, to->u.expose.height);
734 cpswaps(from->u.expose.count, to->u.expose.count);
738 SGraphicsExposureEvent(xEvent *from, xEvent *to)
740 to->u.u.type = from->u.u.type;
741 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
742 cpswapl(from->u.graphicsExposure.drawable, to->u.graphicsExposure.drawable);
743 cpswaps(from->u.graphicsExposure.x, to->u.graphicsExposure.x);
744 cpswaps(from->u.graphicsExposure.y, to->u.graphicsExposure.y);
745 cpswaps(from->u.graphicsExposure.width, to->u.graphicsExposure.width);
746 cpswaps(from->u.graphicsExposure.height, to->u.graphicsExposure.height);
747 cpswaps(from->u.graphicsExposure.minorEvent,
749 cpswaps(from->u.graphicsExposure.count, to->u.graphicsExposure.count);
750 to->u.graphicsExposure.majorEvent = from->u.graphicsExposure.majorEvent;
754 SNoExposureEvent(xEvent *from, xEvent *to)
756 to->u.u.type = from->u.u.type;
757 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
758 cpswapl(from->u.noExposure.drawable, to->u.noExposure.drawable);
759 cpswaps(from->u.noExposure.minorEvent, to->u.noExposure.minorEvent);
760 to->u.noExposure.majorEvent = from->u.noExposure.majorEvent;
764 SVisibilityEvent(xEvent *from, xEvent *to)
766 to->u.u.type = from->u.u.type;
767 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
768 cpswapl(from->u.visibility.window, to->u.visibility.window);
769 to->u.visibility.state = from->u.visibility.state;
773 SCreateNotifyEvent(xEvent *from, xEvent *to)
775 to->u.u.type = from->u.u.type;
776 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
777 cpswapl(from->u.createNotify.window, to->u.createNotify.window);
778 cpswapl(from->u.createNotify.parent, to->u.createNotify.parent);
779 cpswaps(from->u.createNotify.x, to->u.createNotify.x);
780 cpswaps(from->u.createNotify.y, to->u.createNotify.y);
781 cpswaps(from->u.createNotify.width, to->u.createNotify.width);
782 cpswaps(from->u.createNotify.height, to->u.createNotify.height);
783 cpswaps(from->u.createNotify.borderWidth, to->u.createNotify.borderWidth);
784 to->u.createNotify.override = from->u.createNotify.override;
788 SDestroyNotifyEvent(xEvent *from, xEvent *to)
790 to->u.u.type = from->u.u.type;
791 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
792 cpswapl(from->u.destroyNotify.event, to->u.destroyNotify.event);
793 cpswapl(from->u.destroyNotify.window, to->u.destroyNotify.window);
797 SUnmapNotifyEvent(xEvent *from, xEvent *to)
799 to->u.u.type = from->u.u.type;
800 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
801 cpswapl(from->u.unmapNotify.event, to->u.unmapNotify.event);
802 cpswapl(from->u.unmapNotify.window, to->u.unmapNotify.window);
803 to->u.unmapNotify.fromConfigure = from->u.unmapNotify.fromConfigure;
807 SMapNotifyEvent(xEvent *from, xEvent *to)
809 to->u.u.type = from->u.u.type;
810 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
811 cpswapl(from->u.mapNotify.event, to->u.mapNotify.event);
812 cpswapl(from->u.mapNotify.window, to->u.mapNotify.window);
813 to->u.mapNotify.override = from->u.mapNotify.override;
817 SMapRequestEvent(xEvent *from, xEvent *to)
819 to->u.u.type = from->u.u.type;
820 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
821 cpswapl(from->u.mapRequest.parent, to->u.mapRequest.parent);
822 cpswapl(from->u.mapRequest.window, to->u.mapRequest.window);
826 SReparentEvent(xEvent *from, xEvent *to)
828 to->u.u.type = from->u.u.type;
829 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
830 cpswapl(from->u.reparent.event, to->u.reparent.event);
831 cpswapl(from->u.reparent.window, to->u.reparent.window);
832 cpswapl(from->u.reparent.parent, to->u.reparent.parent);
833 cpswaps(from->u.reparent.x, to->u.reparent.x);
834 cpswaps(from->u.reparent.y, to->u.reparent.y);
835 to->u.reparent.override = from->u.reparent.override;
839 SConfigureNotifyEvent(xEvent *from, xEvent *to)
841 to->u.u.type = from->u.u.type;
842 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
843 cpswapl(from->u.configureNotify.event, to->u.configureNotify.event);
844 cpswapl(from->u.configureNotify.window, to->u.configureNotify.window);
845 cpswapl(from->u.configureNotify.aboveSibling,
847 cpswaps(from->u.configureNotify.x, to->u.configureNotify.x);
848 cpswaps(from->u.configureNotify.y, to->u.configureNotify.y);
849 cpswaps(from->u.configureNotify.width, to->u.configureNotify.width);
850 cpswaps(from->u.configureNotify.height, to->u.configureNotify.height);
851 cpswaps(from->u.configureNotify.borderWidth,
853 to->u.configureNotify.override = from->u.configureNotify.override;
857 SConfigureRequestEvent(xEvent *from, xEvent *to)
859 to->u.u.type = from->u.u.type;
860 to->u.u.detail = from->u.u.detail; /* actually stack-mode */
861 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
862 cpswapl(from->u.configureRequest.parent, to->u.configureRequest.parent);
863 cpswapl(from->u.configureRequest.window, to->u.configureRequest.window);
864 cpswapl(from->u.configureRequest.sibling, to->u.configureRequest.sibling);
865 cpswaps(from->u.configureRequest.x, to->u.configureRequest.x);
866 cpswaps(from->u.configureRequest.y, to->u.configureRequest.y);
867 cpswaps(from->u.configureRequest.width, to->u.configureRequest.width);
868 cpswaps(from->u.configureRequest.height, to->u.configureRequest.height);
869 cpswaps(from->u.configureRequest.borderWidth,
871 cpswaps(from->u.configureRequest.valueMask,
876 SGravityEvent(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.gravity.event, to->u.gravity.event);
881 cpswapl(from->u.gravity.window, to->u.gravity.window);
882 cpswaps(from->u.gravity.x, to->u.gravity.x);
883 cpswaps(from->u.gravity.y, to->u.gravity.y);
887 SResizeRequestEvent(xEvent *from, xEvent *to)
889 to->u.u.type = from->u.u.type;
890 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
891 cpswapl(from->u.resizeRequest.window, to->u.resizeRequest.window);
892 cpswaps(from->u.resizeRequest.width, to->u.resizeRequest.width);
893 cpswaps(from->u.resizeRequest.height, to->u.resizeRequest.height);
897 SCirculateEvent(xEvent *from, xEvent *to)
899 to->u.u.type = from->u.u.type;
900 to->u.u.detail = from->u.u.detail;
901 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
902 cpswapl(from->u.circulate.event, to->u.circulate.event);
903 cpswapl(from->u.circulate.window, to->u.circulate.window);
904 cpswapl(from->u.circulate.parent, to->u.circulate.parent);
905 to->u.circulate.place = from->u.circulate.place;
909 SPropertyEvent(xEvent *from, xEvent *to)
911 to->u.u.type = from->u.u.type;
912 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
913 cpswapl(from->u.property.window, to->u.property.window);
914 cpswapl(from->u.property.atom, to->u.property.atom);
915 cpswapl(from->u.property.time, to->u.property.time);
916 to->u.property.state = from->u.property.state;
920 SSelectionClearEvent(xEvent *from, xEvent *to)
922 to->u.u.type = from->u.u.type;
923 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
924 cpswapl(from->u.selectionClear.time, to->u.selectionClear.time);
925 cpswapl(from->u.selectionClear.window, to->u.selectionClear.window);
926 cpswapl(from->u.selectionClear.atom, to->u.selectionClear.atom);
930 SSelectionRequestEvent(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.selectionRequest.time, to->u.selectionRequest.time);
935 cpswapl(from->u.selectionRequest.owner, to->u.selectionRequest.owner);
936 cpswapl(from->u.selectionRequest.requestor,
938 cpswapl(from->u.selectionRequest.selection,
940 cpswapl(from->u.selectionRequest.target, to->u.selectionRequest.target);
941 cpswapl(from->u.selectionRequest.property, to->u.selectionRequest.property);
945 SSelectionNotifyEvent(xEvent *from, xEvent *to)
947 to->u.u.type = from->u.u.type;
948 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
949 cpswapl(from->u.selectionNotify.time, to->u.selectionNotify.time);
950 cpswapl(from->u.selectionNotify.requestor, to->u.selectionNotify.requestor);
951 cpswapl(from->u.selectionNotify.selection, to->u.selectionNotify.selection);
952 cpswapl(from->u.selectionNotify.target, to->u.selectionNotify.target);
953 cpswapl(from->u.selectionNotify.property, to->u.selectionNotify.property);
957 SColormapEvent(xEvent *from, xEvent *to)
959 to->u.u.type = from->u.u.type;
960 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
961 cpswapl(from->u.colormap.window, to->u.colormap.window);
962 cpswapl(from->u.colormap.colormap, to->u.colormap.colormap);
963 to->u.colormap.new = from->u.colormap.new;
964 to->u.colormap.state = from->u.colormap.state;
968 SMappingEvent(xEvent *from, xEvent *to)
970 to->u.u.type = from->u.u.type;
971 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
972 to->u.mappingNotify.request = from->u.mappingNotify.request;
973 to->u.mappingNotify.firstKeyCode = from->u.mappingNotify.firstKeyCode;
974 to->u.mappingNotify.count = from->u.mappingNotify.count;
978 SClientMessageEvent(xEvent *from, xEvent *to)
980 to->u.u.type = from->u.u.type;
981 to->u.u.detail = from->u.u.detail; /* actually format */
982 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
983 cpswapl(from->u.clientMessage.window, to->u.clientMessage.window);
984 cpswapl(from->u.clientMessage.u.l.type, to->u.clientMessage.u.l.type);
985 switch (from->u.u.detail) {
988 from->u.clientMessage.u.b.bytes, 20);
991 cpswaps(from->u.clientMessage.u.s.shorts0,
993 cpswaps(from->u.clientMessage.u.s.shorts1,
995 cpswaps(from->u.clientMessage.u.s.shorts2,
997 cpswaps(from->u.clientMessage.u.s.shorts3,
999 cpswaps(from->u.clientMessage.u.s.shorts4,
1001 cpswaps(from->u.clientMessage.u.s.shorts5,
1003 cpswaps(from->u.clientMessage.u.s.shorts6,
1005 cpswaps(from->u.clientMessage.u.s.shorts7,
1007 cpswaps(from->u.clientMessage.u.s.shorts8,
1009 cpswaps(from->u.clientMessage.u.s.shorts9,
1013 cpswapl(from->u.clientMessage.u.l.longs0,
1015 cpswapl(from->u.clientMessage.u.l.longs1,
1017 cpswapl(from->u.clientMessage.u.l.longs2,
1019 cpswapl(from->u.clientMessage.u.l.longs3,
1021 cpswapl(from->u.clientMessage.u.l.longs4,
1028 SKeymapNotifyEvent(xEvent *from, xEvent *to)
1032 *to = *from;