Lines Matching refs:from
23 in this Software without prior written authorization from The Open Group.
97 CARD32 *from, *to, *fromLast, *toLast;
111 /* convert lengths from # of bytes to # of longs */
115 from = pbuf;
116 fromLast = from + size;
117 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) {
170 toLast = to + min(bufsize, fromLast - from);
173 /* can't write "cpswaps(*from++, *to++)" because cpswaps is a macro
175 cpswaps(*from, *to);
176 from++;
673 SErrorEvent(xError * from, xError * to)
676 to->errorCode = from->errorCode;
677 cpswaps(from->sequenceNumber, to->sequenceNumber);
678 cpswapl(from->resourceID, to->resourceID);
679 cpswaps(from->minorCode, to->minorCode);
680 to->majorCode = from->majorCode;
684 SKeyButtonPtrEvent(xEvent *from, xEvent *to)
686 to->u.u.type = from->u.u.type;
687 to->u.u.detail = from->u.u.detail;
688 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
689 cpswapl(from->u.keyButtonPointer.time, to->u.keyButtonPointer.time);
690 cpswapl(from->u.keyButtonPointer.root, to->u.keyButtonPointer.root);
691 cpswapl(from->u.keyButtonPointer.event, to->u.keyButtonPointer.event);
692 cpswapl(from->u.keyButtonPointer.child, to->u.keyButtonPointer.child);
693 cpswaps(from->u.keyButtonPointer.rootX, to->u.keyButtonPointer.rootX);
694 cpswaps(from->u.keyButtonPointer.rootY, to->u.keyButtonPointer.rootY);
695 cpswaps(from->u.keyButtonPointer.eventX, to->u.keyButtonPointer.eventX);
696 cpswaps(from->u.keyButtonPointer.eventY, to->u.keyButtonPointer.eventY);
697 cpswaps(from->u.keyButtonPointer.state, to->u.keyButtonPointer.state);
698 to->u.keyButtonPointer.sameScreen = from->u.keyButtonPointer.sameScreen;
702 SEnterLeaveEvent(xEvent *from, xEvent *to)
704 to->u.u.type = from->u.u.type;
705 to->u.u.detail = from->u.u.detail;
706 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
707 cpswapl(from->u.enterLeave.time, to->u.enterLeave.time);
708 cpswapl(from->u.enterLeave.root, to->u.enterLeave.root);
709 cpswapl(from->u.enterLeave.event, to->u.enterLeave.event);
710 cpswapl(from->u.enterLeave.child, to->u.enterLeave.child);
711 cpswaps(from->u.enterLeave.rootX, to->u.enterLeave.rootX);
712 cpswaps(from->u.enterLeave.rootY, to->u.enterLeave.rootY);
713 cpswaps(from->u.enterLeave.eventX, to->u.enterLeave.eventX);
714 cpswaps(from->u.enterLeave.eventY, to->u.enterLeave.eventY);
715 cpswaps(from->u.enterLeave.state, to->u.enterLeave.state);
716 to->u.enterLeave.mode = from->u.enterLeave.mode;
717 to->u.enterLeave.flags = from->u.enterLeave.flags;
721 SFocusEvent(xEvent *from, xEvent *to)
723 to->u.u.type = from->u.u.type;
724 to->u.u.detail = from->u.u.detail;
725 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
726 cpswapl(from->u.focus.window, to->u.focus.window);
727 to->u.focus.mode = from->u.focus.mode;
731 SExposeEvent(xEvent *from, xEvent *to)
733 to->u.u.type = from->u.u.type;
734 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
735 cpswapl(from->u.expose.window, to->u.expose.window);
736 cpswaps(from->u.expose.x, to->u.expose.x);
737 cpswaps(from->u.expose.y, to->u.expose.y);
738 cpswaps(from->u.expose.width, to->u.expose.width);
739 cpswaps(from->u.expose.height, to->u.expose.height);
740 cpswaps(from->u.expose.count, to->u.expose.count);
744 SGraphicsExposureEvent(xEvent *from, xEvent *to)
746 to->u.u.type = from->u.u.type;
747 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
748 cpswapl(from->u.graphicsExposure.drawable, to->u.graphicsExposure.drawable);
749 cpswaps(from->u.graphicsExposure.x, to->u.graphicsExposure.x);
750 cpswaps(from->u.graphicsExposure.y, to->u.graphicsExposure.y);
751 cpswaps(from->u.graphicsExposure.width, to->u.graphicsExposure.width);
752 cpswaps(from->u.graphicsExposure.height, to->u.graphicsExposure.height);
753 cpswaps(from->u.graphicsExposure.minorEvent,
755 cpswaps(from->u.graphicsExposure.count, to->u.graphicsExposure.count);
756 to->u.graphicsExposure.majorEvent = from->u.graphicsExposure.majorEvent;
760 SNoExposureEvent(xEvent *from, xEvent *to)
762 to->u.u.type = from->u.u.type;
763 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
764 cpswapl(from->u.noExposure.drawable, to->u.noExposure.drawable);
765 cpswaps(from->u.noExposure.minorEvent, to->u.noExposure.minorEvent);
766 to->u.noExposure.majorEvent = from->u.noExposure.majorEvent;
770 SVisibilityEvent(xEvent *from, xEvent *to)
772 to->u.u.type = from->u.u.type;
773 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
774 cpswapl(from->u.visibility.window, to->u.visibility.window);
775 to->u.visibility.state = from->u.visibility.state;
779 SCreateNotifyEvent(xEvent *from, xEvent *to)
781 to->u.u.type = from->u.u.type;
782 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
783 cpswapl(from->u.createNotify.window, to->u.createNotify.window);
784 cpswapl(from->u.createNotify.parent, to->u.createNotify.parent);
785 cpswaps(from->u.createNotify.x, to->u.createNotify.x);
786 cpswaps(from->u.createNotify.y, to->u.createNotify.y);
787 cpswaps(from->u.createNotify.width, to->u.createNotify.width);
788 cpswaps(from->u.createNotify.height, to->u.createNotify.height);
789 cpswaps(from->u.createNotify.borderWidth, to->u.createNotify.borderWidth);
790 to->u.createNotify.override = from->u.createNotify.override;
794 SDestroyNotifyEvent(xEvent *from, xEvent *to)
796 to->u.u.type = from->u.u.type;
797 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
798 cpswapl(from->u.destroyNotify.event, to->u.destroyNotify.event);
799 cpswapl(from->u.destroyNotify.window, to->u.destroyNotify.window);
803 SUnmapNotifyEvent(xEvent *from, xEvent *to)
805 to->u.u.type = from->u.u.type;
806 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
807 cpswapl(from->u.unmapNotify.event, to->u.unmapNotify.event);
808 cpswapl(from->u.unmapNotify.window, to->u.unmapNotify.window);
809 to->u.unmapNotify.fromConfigure = from->u.unmapNotify.fromConfigure;
813 SMapNotifyEvent(xEvent *from, xEvent *to)
815 to->u.u.type = from->u.u.type;
816 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
817 cpswapl(from->u.mapNotify.event, to->u.mapNotify.event);
818 cpswapl(from->u.mapNotify.window, to->u.mapNotify.window);
819 to->u.mapNotify.override = from->u.mapNotify.override;
823 SMapRequestEvent(xEvent *from, xEvent *to)
825 to->u.u.type = from->u.u.type;
826 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
827 cpswapl(from->u.mapRequest.parent, to->u.mapRequest.parent);
828 cpswapl(from->u.mapRequest.window, to->u.mapRequest.window);
832 SReparentEvent(xEvent *from, xEvent *to)
834 to->u.u.type = from->u.u.type;
835 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
836 cpswapl(from->u.reparent.event, to->u.reparent.event);
837 cpswapl(from->u.reparent.window, to->u.reparent.window);
838 cpswapl(from->u.reparent.parent, to->u.reparent.parent);
839 cpswaps(from->u.reparent.x, to->u.reparent.x);
840 cpswaps(from->u.reparent.y, to->u.reparent.y);
841 to->u.reparent.override = from->u.reparent.override;
845 SConfigureNotifyEvent(xEvent *from, xEvent *to)
847 to->u.u.type = from->u.u.type;
848 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
849 cpswapl(from->u.configureNotify.event, to->u.configureNotify.event);
850 cpswapl(from->u.configureNotify.window, to->u.configureNotify.window);
851 cpswapl(from->u.configureNotify.aboveSibling,
853 cpswaps(from->u.configureNotify.x, to->u.configureNotify.x);
854 cpswaps(from->u.configureNotify.y, to->u.configureNotify.y);
855 cpswaps(from->u.configureNotify.width, to->u.configureNotify.width);
856 cpswaps(from->u.configureNotify.height, to->u.configureNotify.height);
857 cpswaps(from->u.configureNotify.borderWidth,
859 to->u.configureNotify.override = from->u.configureNotify.override;
863 SConfigureRequestEvent(xEvent *from, xEvent *to)
865 to->u.u.type = from->u.u.type;
866 to->u.u.detail = from->u.u.detail; /* actually stack-mode */
867 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
868 cpswapl(from->u.configureRequest.parent, to->u.configureRequest.parent);
869 cpswapl(from->u.configureRequest.window, to->u.configureRequest.window);
870 cpswapl(from->u.configureRequest.sibling, to->u.configureRequest.sibling);
871 cpswaps(from->u.configureRequest.x, to->u.configureRequest.x);
872 cpswaps(from->u.configureRequest.y, to->u.configureRequest.y);
873 cpswaps(from->u.configureRequest.width, to->u.configureRequest.width);
874 cpswaps(from->u.configureRequest.height, to->u.configureRequest.height);
875 cpswaps(from->u.configureRequest.borderWidth,
877 cpswaps(from->u.configureRequest.valueMask,
882 SGravityEvent(xEvent *from, xEvent *to)
884 to->u.u.type = from->u.u.type;
885 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
886 cpswapl(from->u.gravity.event, to->u.gravity.event);
887 cpswapl(from->u.gravity.window, to->u.gravity.window);
888 cpswaps(from->u.gravity.x, to->u.gravity.x);
889 cpswaps(from->u.gravity.y, to->u.gravity.y);
893 SResizeRequestEvent(xEvent *from, xEvent *to)
895 to->u.u.type = from->u.u.type;
896 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
897 cpswapl(from->u.resizeRequest.window, to->u.resizeRequest.window);
898 cpswaps(from->u.resizeRequest.width, to->u.resizeRequest.width);
899 cpswaps(from->u.resizeRequest.height, to->u.resizeRequest.height);
903 SCirculateEvent(xEvent *from, xEvent *to)
905 to->u.u.type = from->u.u.type;
906 to->u.u.detail = from->u.u.detail;
907 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
908 cpswapl(from->u.circulate.event, to->u.circulate.event);
909 cpswapl(from->u.circulate.window, to->u.circulate.window);
910 cpswapl(from->u.circulate.parent, to->u.circulate.parent);
911 to->u.circulate.place = from->u.circulate.place;
915 SPropertyEvent(xEvent *from, xEvent *to)
917 to->u.u.type = from->u.u.type;
918 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
919 cpswapl(from->u.property.window, to->u.property.window);
920 cpswapl(from->u.property.atom, to->u.property.atom);
921 cpswapl(from->u.property.time, to->u.property.time);
922 to->u.property.state = from->u.property.state;
926 SSelectionClearEvent(xEvent *from, xEvent *to)
928 to->u.u.type = from->u.u.type;
929 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
930 cpswapl(from->u.selectionClear.time, to->u.selectionClear.time);
931 cpswapl(from->u.selectionClear.window, to->u.selectionClear.window);
932 cpswapl(from->u.selectionClear.atom, to->u.selectionClear.atom);
936 SSelectionRequestEvent(xEvent *from, xEvent *to)
938 to->u.u.type = from->u.u.type;
939 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
940 cpswapl(from->u.selectionRequest.time, to->u.selectionRequest.time);
941 cpswapl(from->u.selectionRequest.owner, to->u.selectionRequest.owner);
942 cpswapl(from->u.selectionRequest.requestor,
944 cpswapl(from->u.selectionRequest.selection,
946 cpswapl(from->u.selectionRequest.target, to->u.selectionRequest.target);
947 cpswapl(from->u.selectionRequest.property, to->u.selectionRequest.property);
951 SSelectionNotifyEvent(xEvent *from, xEvent *to)
953 to->u.u.type = from->u.u.type;
954 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
955 cpswapl(from->u.selectionNotify.time, to->u.selectionNotify.time);
956 cpswapl(from->u.selectionNotify.requestor, to->u.selectionNotify.requestor);
957 cpswapl(from->u.selectionNotify.selection, to->u.selectionNotify.selection);
958 cpswapl(from->u.selectionNotify.target, to->u.selectionNotify.target);
959 cpswapl(from->u.selectionNotify.property, to->u.selectionNotify.property);
963 SColormapEvent(xEvent *from, xEvent *to)
965 to->u.u.type = from->u.u.type;
966 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
967 cpswapl(from->u.colormap.window, to->u.colormap.window);
968 cpswapl(from->u.colormap.colormap, to->u.colormap.colormap);
969 to->u.colormap.new = from->u.colormap.new;
970 to->u.colormap.state = from->u.colormap.state;
974 SMappingEvent(xEvent *from, xEvent *to)
976 to->u.u.type = from->u.u.type;
977 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
978 to->u.mappingNotify.request = from->u.mappingNotify.request;
979 to->u.mappingNotify.firstKeyCode = from->u.mappingNotify.firstKeyCode;
980 to->u.mappingNotify.count = from->u.mappingNotify.count;
984 SClientMessageEvent(xEvent *from, xEvent *to)
986 to->u.u.type = from->u.u.type;
987 to->u.u.detail = from->u.u.detail; /* actually format */
988 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber);
989 cpswapl(from->u.clientMessage.window, to->u.clientMessage.window);
990 cpswapl(from->u.clientMessage.u.l.type, to->u.clientMessage.u.l.type);
991 switch (from->u.u.detail) {
994 from->u.clientMessage.u.b.bytes, 20);
997 cpswaps(from->u.clientMessage.u.s.shorts0,
999 cpswaps(from->u.clientMessage.u.s.shorts1,
1001 cpswaps(from->u.clientMessage.u.s.shorts2,
1003 cpswaps(from->u.clientMessage.u.s.shorts3,
1005 cpswaps(from->u.clientMessage.u.s.shorts4,
1007 cpswaps(from->u.clientMessage.u.s.shorts5,
1009 cpswaps(from->u.clientMessage.u.s.shorts6,
1011 cpswaps(from->u.clientMessage.u.s.shorts7,
1013 cpswaps(from->u.clientMessage.u.s.shorts8,
1015 cpswaps(from->u.clientMessage.u.s.shorts9,
1019 cpswapl(from->u.clientMessage.u.l.longs0,
1021 cpswapl(from->u.clientMessage.u.l.longs1,
1023 cpswapl(from->u.clientMessage.u.l.longs2,
1025 cpswapl(from->u.clientMessage.u.l.longs3,
1027 cpswapl(from->u.clientMessage.u.l.longs4,
1034 SKeymapNotifyEvent(xEvent *from, xEvent *to)
1038 *to = *from;