• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcl-102/tk84/tk/unix/

Lines Matching +defs:format +defs:type

103 			    Atom type, Tk_Window tkwin, Tcl_DString *dsPtr));
104 static long * SelCvtToX _ANSI_ARGS_((char *string, Atom type,
314 formatType = selPtr->format;
364 * Encode the data using the proper format for each type.
377 * Set up the encoding state based on the format and whether
519 * Lots: depends on the type of event.
540 if (eventPtr->type == SelectionClear) {
549 if (eventPtr->type == SelectionNotify) {
552 Atom type;
553 int format, result;
585 &type, &format, &numItems, &bytesAfter,
587 if ((result != Success) || (type == None)) {
597 if ((type == XA_STRING) || (type == dispPtr->textAtom)
598 || (type == dispPtr->compoundTextAtom)) {
600 if (format != 8) {
604 "bad format for string selection: wanted \"8\", got \"%d\"",
605 format);
624 if (type == dispPtr->compoundTextAtom) {
638 } else if (type == dispPtr->utf8Atom) {
640 * The X selection data is in UTF-8 format already.
646 if (format != 8) {
650 "bad format for string selection: wanted \"8\", got \"%d\"",
651 format);
667 } else if (type == dispPtr->incrAtom) {
689 if (format != 32) {
693 "bad format for selection: wanted \"32\", got \"%d\"",
694 format);
700 SelCvtFromX((long *) propInfo, (int) numItems, type,
718 if (eventPtr->type == SelectionRequest) {
830 reply.type = SelectionNotify;
868 Atom type;
869 int format, result;
880 &type, &format, &incr.numConversions, &bytesAfter,
882 if ((result != Success) || (bytesAfter != 0) || (format != 32)
883 || (type == None)) {
903 Atom target, property, type;
906 int numItems, format;
930 TK_SEL_BYTES_AT_ONCE, &type);
939 type = selPtr->format;
964 type = winPtr->dispPtr->incrAtom;
972 format = 32;
975 property, type, format, PropModeReplace,
977 } else if (type == winPtr->dispPtr->utf8Atom) {
979 * This matches selection requests of type UTF8_STRING,
984 property, type, 8, PropModeReplace,
986 } else if ((type == XA_STRING)
987 || (type == winPtr->dispPtr->compoundTextAtom)) {
997 if (type == XA_STRING) {
1004 property, type, 8, PropModeReplace,
1013 type, (Tk_Window) winPtr, &numItems);
1017 format = 32;
1019 property, type, format, PropModeReplace,
1140 Atom type;
1141 int format, result;
1153 True, (Atom) AnyPropertyType, &type, &format, &numItems,
1155 if ((result != Success) || (type == None)) {
1164 if ((type == XA_STRING)
1165 || (type == retrPtr->winPtr->dispPtr->textAtom)
1166 || (type == retrPtr->winPtr->dispPtr->utf8Atom)
1167 || (type == retrPtr->winPtr->dispPtr->compoundTextAtom)) {
1173 if (format != 8) {
1177 "bad format for string selection: wanted \"8\", got \"%d\"",
1178 format);
1186 if (type == retrPtr->winPtr->dispPtr->compoundTextAtom) {
1188 } else if (type == retrPtr->winPtr->dispPtr->utf8Atom) {
1280 if (format != 32) {
1284 "bad format for selection: wanted \"32\", got \"%d\"",
1285 format);
1291 SelCvtFromX((long *) propInfo, (int) numItems, type,
1401 * convert it to the ICCCM-mandated format for X, depending on
1402 * the type argument. This procedure and SelCvtFromX are inverses.
1406 * equivalent to "string", but formatted as for "type". It is
1418 SelCvtToX(string, type, tkwin, numLongsPtr)
1420 Atom type; /* Atom specifying the X format that is
1436 * 1. If type is XA_ATOM, convert each field to its corresponding atom.
1437 * 2. If type is anything else, convert each field from an ASCII number to
1451 if (type == XA_ATOM) {
1481 * values according to "type" and the ICCCM conventions, convert
1496 SelCvtFromX(propPtr, numValues, type, tkwin, dsPtr)
1499 Atom type; /* Type of property Should not be
1507 * the name of an atom (if type is XA_ATOM) or a hexadecimal string. We
1515 if (type == XA_ATOM) {