Lines Matching refs:info

413     DisplayRecord *info,
418 float *m = info->sampler->sampler.invctm;
420 Position oldInfoHeight = info->height;
423 info->window_height = newHeight;
427 info->width = (int) (m[0] * w - m[2] * h + m[4]);
428 info->height = (int) (m[1] * w - m[3] * h + m[5]);
430 info->y += info->height - oldInfoHeight;
432 for (f = info->shown_fonts; f != NULL; f = f->next) {
433 f->y += info->height - oldInfoHeight;
535 static void FreeDisplayInfo(DisplayRecord *info)
540 if (info == NULL) return;
542 XtVaSetValues(info->sampler->sampler.font_label_child,
546 while ((f = info->shown_fonts) != NULL) {
547 info->shown_fonts = f->next;
551 while ((t = info->text_list) != NULL) {
552 info->text_list = t->next;
557 XtFree((char *) info);
571 DisplayRecord *info;
585 info = s->sampler.current_display_info =
589 XtNwidth, &info->width,
590 XtNheight, &info->window_height,
591 XtNdepth, &info->depth,
596 XtScreen(s->sampler.area_child), info->depth,
598 info->window_height,
610 s->sampler.pixmap, info->window_height,
619 h = info->window_height;
620 w = info->width;
624 info->width = (int) (m[0] * w - m[2] * h + m[4]);
625 info->height = (int) (m[1] * w - m[3] * h + m[5]);
626 info->sampler = s;
627 info->inited = info->any_shown = False;
628 info->column_width = 0;
629 info->x = 5;
630 info->y = info->height;
631 info->shown_fonts = NULL;
633 t = info->text_list = XtNew(DisplayedTextRec);
659 (XtPointer) info);
663 (XtPointer) info);
667 (XtPointer) info);
671 (XtPointer) info);
1252 static void AdvanceInfoToNextFont(DisplayRecord *info)
1254 if (info->current_font->blend_data != NULL) {
1255 if (info->current_blend == NULL) {
1256 info->current_blend = info->current_font->blend_data->blends;
1257 } else info->current_blend = info->current_blend->next;
1258 if (info->current_blend == NULL) {
1259 info->current_font = info->current_font->next;
1261 } else info->current_font = info->current_font->next;
1263 if (info->current_font == NULL) {
1264 info->current_family = info->current_family->next;
1265 if (info->current_family != NULL) {
1266 info->current_font = info->current_family->fonts;
1271 static Boolean ShowFont(DisplayRecord *info)
1274 FontRec *f = info->current_font;
1275 BlendRec *b = info->current_blend;
1277 FontSamplerWidget s = info->sampler;
1279 DisplayedTextRec *t = info->text_list;
1286 oldx = info->x;
1287 oldy = info->y;
1289 info->y -= t->size * 5 / 4;
1291 if (info->y < 0) {
1292 if (info->column_width == 0) return False;
1293 info->y = info->height - (t->size * 5 / 4);
1294 info->x += info->column_width + (t->size / 4);
1295 if (info->x > (int) info->width) return False;
1296 info->column_width = 0;
1300 AdvanceInfoToNextFont(info);
1313 t->size, info->x, info->y, &bogusFont);
1315 AdvanceInfoToNextFont(info);
1318 info->x = oldx;
1319 info->y = oldy;
1323 s->sampler.gc, 0, 0, info->width, info->height, 0, 0);
1325 if (info->current_font == f) {
1327 info->current_font = info->current_font->next;
1329 if (info->current_font == NULL) {
1330 info->current_family = info->current_family->next;
1331 if (info->current_family != NULL) {
1332 info->current_font = info->current_family->fonts;
1345 t->size, info->x, info->y,
1350 if (width > (int) info->column_width) info->column_width = (int) width;
1358 d->t = (int) ceil(m[1] * left + m[3] * top + m[5] + info->window_height);
1359 d->b = (int) (m[1] * right + m[3] * bottom + m[5] + info->window_height);
1360 d->x = info->x;
1361 d->y = info->y;
1364 d->text = info->text_list;
1365 d->next = info->shown_fonts;
1366 info->shown_fonts = d;
1373 DisplayRecord *info = (DisplayRecord *) client_data;
1374 FontSamplerWidget s = info->sampler;
1376 if (!info->inited) {
1377 info->inited = True;
1378 info->current_family = s->sampler.fsb->fsb.known_families;
1379 info->current_font = info->current_family->fonts;
1380 info->current_blend = NULL;
1383 if (!ShowFont(info)) {
1384 if (!info->any_shown) ShowLabel(s, s->sampler.no_room_message);
1389 info->any_shown = True;
1390 if (info->current_family == NULL) {
1391 if (!info->any_shown) ShowLabel(s, s->sampler.no_font_message);
1400 DisplayRecord *info = (DisplayRecord *) client_data;
1401 FontSamplerWidget s = info->sampler;
1403 info->current_family = s->sampler.fsb->fsb.currently_selected_family;
1404 info->current_font = s->sampler.fsb->fsb.currently_selected_face;
1405 info->current_blend = s->sampler.fsb->fsb.currently_selected_blend;
1407 if (info->current_font != NULL) {
1408 if (!ShowFont(info)) ShowLabel(s, s->sampler.no_room_message);
1417 DisplayRecord *info = (DisplayRecord *) client_data;
1418 FontSamplerWidget s = info->sampler;
1421 if (!info->inited) {
1422 info->inited = True;
1423 info->current_family = s->sampler.fsb->fsb.currently_selected_family;
1424 if (info->current_family != NULL) {
1425 info->current_font = info->current_family->fonts;
1426 info->current_blend = NULL;
1434 currentFamily = info->current_family;
1436 if (!ShowFont(info)) {
1437 if (!info->any_shown) ShowLabel(s, s->sampler.no_room_message);
1442 info->any_shown = True;
1443 if (info->current_family != currentFamily) {
1444 if (!info->any_shown) ShowLabel(s, s->sampler.no_family_font_message);
1635 DisplayRecord *info = (DisplayRecord *) client_data;
1636 FontSamplerWidget s = info->sampler;
1638 if (!info->inited) {
1639 info->inited = True;
1640 info->current_family = s->sampler.fsb->fsb.known_families;
1641 info->current_font = info->current_family->fonts;
1642 info->current_blend = NULL;
1646 if (FontMatchesFilters(info->current_font, info->current_blend, s)) {
1647 if (!ShowFont(info)) {
1648 if (!info->any_shown) ShowLabel(s, s->sampler.no_room_message);
1652 info->any_shown = True;
1653 } else AdvanceInfoToNextFont(info);
1655 if (info->current_font == NULL) {
1656 if (!info->any_shown) ShowLabel(s, s->sampler.no_match_message);