Lines Matching refs:cb

250 static Boolean Verify(FontSelectionBoxWidget fsb, FSBValidateCallbackRec *cb, String afm, Boolean doIt);
1609 FSBValidateCallbackRec cb;
1617 (void) Verify(fsb, &cb, afm, False);
1618 cb.reason = FSBValueChanged;
1620 XtCallCallbackList((Widget) fsb, fsb->fsb.value_changed_callback, &cb);
1636 XmAnyCallbackStruct *cb = (XmAnyCallbackStruct *) callData;
1647 if (cb != NULL && cb->event->type == Expose &&
1648 cb->event->xexpose.count != 0) return;
1886 FSBValidateCallbackRec *cb,
1894 cb->family = NULL;
1895 cb->family_selection = FSBMultiple;
1897 cb->family = NULL;
1898 cb->family_selection = FSBNone;
1900 cb->family = fsb->fsb.currently_selected_family->family_name;
1901 cb->family_selection = FSBOne;
1905 cb->face = NULL;
1906 cb->face_selection = FSBMultiple;
1908 cb->face = NULL;
1909 cb->face_selection = FSBNone;
1911 cb->face = fsb->fsb.currently_selected_face->face_name;
1912 cb->face_selection = FSBOne;
1915 if (cb->family_selection == FSBMultiple ||
1916 cb->face_selection == FSBMultiple) {
1917 cb->name = NULL;
1918 cb->name_selection = FSBMultiple;
1920 cb->name = NULL;
1921 cb->name_selection = FSBNone;
1924 cb->name = fsb->fsb.currently_selected_blend->font_name;
1925 } else cb->name = fsb->fsb.currently_selected_face->font_name;
1926 cb->name_selection = FSBOne;
1930 cb->size = 0.0;
1931 cb->size_selection = FSBMultiple;
1936 cb->size = 0.0;
1937 cb->size_selection = FSBNone;
1939 cb->size = atof(chSize);
1940 cb->size_selection = FSBOne;
1944 cb->afm_filename = afm;
1945 cb->afm_present = (afm != NULL);
1946 cb->doit = True;
1949 cb->blend = cb->base_name = NULL;
1950 for (i = 0; i < MAX_AXES; i++) cb->axis_percent[i] = 0.0;
1952 cb->blend = fsb->fsb.currently_selected_blend->blend_name;
1953 cb->base_name = fsb->fsb.currently_selected_face->font_name;
1955 cb->axis_percent[i] = fsb->fsb.currently_selected_blend->data[i];
1959 if (doIt) XtCallCallbackList((Widget) fsb, fsb->fsb.validate_callback, cb);
1960 return cb->doit;
1969 FSBValidateCallbackRec cb;
1980 cb.reason = reason;
1981 if (!Verify(fsb, &cb, afm, True)) return False;
2005 fsb->fsb.font_size = cb.size;
2032 XtCallCallbackList((Widget) fsb, callback, &cb);
2068 FSBCallbackRec cb;
2076 cb.reason = reason;
2078 cb.family = NULL;
2079 cb.family_selection = FSBMultiple;
2081 cb.family = NULL;
2082 cb.family_selection = FSBNone;
2084 cb.family = fsb->fsb.font_family;
2085 cb.family_selection = FSBOne;
2089 cb.face = NULL;
2090 cb.face_selection = FSBMultiple;
2092 cb.face = NULL;
2093 cb.face_selection = FSBNone;
2095 cb.face = fsb->fsb.font_face;
2096 cb.face_selection = FSBOne;
2099 if (cb.family_selection == FSBMultiple ||
2100 cb.face_selection == FSBMultiple) {
2101 cb.name = NULL;
2102 cb.name_selection = FSBMultiple;
2104 cb.name = NULL;
2105 cb.name_selection = FSBNone;
2107 cb.name = fsb->fsb.font_name;
2108 cb.name_selection = FSBOne;
2112 cb.size = 0.0;
2113 cb.size_selection = FSBMultiple;
2115 cb.size = fsb->fsb.font_size;
2116 cb.size_selection = FSBOne;
2119 cb.afm_filename = NULL;
2120 cb.afm_present = False;
2122 cb.blend = fsb->fsb.font_blend;
2123 if (cb.blend == NULL || fsb->fsb.currently_selected_blend == NULL) {
2124 cb.base_name = NULL;
2125 for (i = 0; i < MAX_AXES; i++) cb.axis_percent[i] = 0;
2127 cb.base_name = fsb->fsb.currently_selected_face->font_name;
2129 cb.axis_percent[i] = fsb->fsb.currently_selected_blend->data[i];
2134 XtCallCallbackList((Widget) fsb, fsb->fsb.reset_callback, &cb);
2135 } else XtCallCallbackList((Widget) fsb, fsb->fsb.cancel_callback, &cb);