• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/src/

Lines Matching +defs:face +defs:background

309     gc->background = xgcv->background;
354 hb = CreateSolidBrush (gc->background);
463 #if 0 /* Rows in a current matrix containing glyphs in mouse-face have
466 flag set. So, rows containing mouse-face glyphs are never
503 struct face *face;
511 face = FACE_FROM_ID (f, VERTICAL_BORDER_FACE_ID);
512 if (face)
513 w32_fill_rect (f, hdc, face->foreground, &r);
527 glyphs in mouse-face were overwritten. In that case we have to
556 /* If a row with mouse-face was overwritten, arrange for
686 struct face *face = p->face;
710 w32_fill_area (f, hdc, face->background,
733 h_brush = CreateSolidBrush (face->foreground);
751 SetTextColor (hdc, face->background);
754 : face->foreground));
1264 face. */
1271 && s->face->background == FRAME_BACKGROUND_PIXEL (s->f)
1272 && s->face->foreground == FRAME_FOREGROUND_PIXEL (s->f)
1277 /* Cursor on non-default face: must merge. */
1281 xgcv.background = s->f->output_data.w32->cursor_pixel;
1282 xgcv.foreground = s->face->background;
1285 if (xgcv.foreground == xgcv.background)
1286 xgcv.foreground = s->face->foreground;
1287 if (xgcv.foreground == xgcv.background)
1289 if (xgcv.foreground == xgcv.background)
1290 xgcv.foreground = s->face->foreground;
1292 /* Make sure the cursor is distinct from text in this face. */
1293 if (xgcv.background == s->face->background
1294 && xgcv.foreground == s->face->foreground)
1296 xgcv.background = s->face->foreground;
1297 xgcv.foreground = s->face->background;
1316 /* Set up S->gc of glyph string S for drawing text in mouse face. */
1323 struct face *face;
1325 /* What face has to be used last for the mouse face? */
1327 face = FACE_FROM_ID (s->f, face_id);
1328 if (face == NULL)
1329 face = FACE_FROM_ID (s->f, MOUSE_FACE_ID);
1332 face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch);
1334 face_id = FACE_FOR_CHAR (s->f, face, 0);
1335 s->face = FACE_FROM_ID (s->f, face_id);
1336 PREPARE_FACE_FOR_DISPLAY (s->f, s->face);
1338 /* If font in this face is same as S->font, use it. */
1339 if (s->font == s->face->font)
1340 s->gc = s->face->gc;
1348 xgcv.background = s->face->background;
1349 xgcv.foreground = s->face->foreground;
1376 s->gc = s->face->gc;
1381 S->stippled_p to a non-zero value if the face of S has a stipple
1388 PREPARE_FACE_FOR_DISPLAY (s->f, s->face);
1392 s->gc = s->face->gc;
1393 s->stippled_p = s->face->stipple != 0;
1398 s->stippled_p = s->face->stipple != 0;
1408 s->stippled_p = s->face->stipple != 0;
1413 s->gc = s->face->gc;
1414 s->stippled_p = s->face->stipple != 0;
1418 s->gc = s->face->gc;
1419 s->stippled_p = s->face->stipple != 0;
1467 /* Fill rectangle X, Y, W, H with background color of glyph string S. */
1490 w32_fill_area (s->f, s->hdc, s->gc->background, real_x, real_y,
1495 /* Draw the background of glyph_string S. If S->background_filled_p
1497 background even if it wouldn't be drawn normally. This is used
1498 when a string preceding S draws into the background of S, or S
1506 /* Nothing to do if background has already been drawn or if it
1510 int box_line_width = max (s->face->box_line_width, 0);
1515 /* Fill background with a stipple pattern. */
1552 if (s->face->box != FACE_NO_BOX
1554 x = s->x + abs (s->face->box_line_width);
1564 SetBkColor (s->hdc, s->gc->background);
1599 if (s->face->overstrike)
1601 /* For overstriking (to simulate bold-face), draw the
1624 if (s->face->box != FACE_NO_BOX
1626 x = s->x + abs (s->face->box_line_width);
1636 SetBkColor (s->hdc, s->gc->background);
1658 if (s->face->overstrike)
1755 DELTA lighter or darker than the relief's background which is found
1771 COLORREF background = di->relief_background;
1778 pixel = background;
1807 if (s->face->use_box_color_for_shadows_p)
1808 color = s->face->box_color;
1814 color = s->gc->background;
1911 w32_fill_area (s->f, s->hdc, s->face->box_color,
1917 w32_fill_area (s->f, s->hdc, s->face->box_color,
1922 w32_fill_area (s->f, s->hdc, s->face->box_color,
1928 w32_fill_area (s->f, s->hdc, s->face->box_color,
1956 width = abs (s->face->box_line_width);
1957 raised_p = s->face->box == FACE_RAISED_BOX;
1976 if (s->face->box == FACE_SIMPLE_BOX)
1995 int y = s->ybase - image_ascent (s->img, s->face, &s->slice);
1999 if (s->face->box != FACE_NO_BOX
2002 x += abs (s->face->box_line_width);
2044 SetBkColor (s->hdc, s->gc->background);
2054 nothing here for mouse-face. */
2088 int y = s->ybase - image_ascent (s->img, s->face, &s->slice);
2092 if (s->face->box != FACE_NO_BOX
2095 x += abs (s->face->box_line_width);
2142 int y = s->ybase - s->y - image_ascent (s->img, s->face, &s->slice);
2146 if (s->face->box != FACE_NO_BOX
2149 x += abs (s->face->box_line_width);
2185 SetBkColor (hdc, s->gc->background);
2195 nothing here for mouse-face. */
2220 /* Draw part of the background of glyph string S. X, Y, W, and H
2231 /* Fill background with a stipple pattern. */
2246 | s->face->box
2261 int box_line_hwidth = abs (s->face->box_line_width);
2262 int box_line_vwidth = max (s->face->box_line_width, 0);
2268 /* Fill background with face under the image. Do it only if row is
2271 s->stippled_p = s->face->stipple != 0;
2292 with the background color. Copy the image to it, using
2306 /* Fill the pixmap with the background color/stipple. */
2309 /* Fill background with a stipple pattern. */
2320 XSetForeground (s->display, s->gc, xgcv.background);
2345 SetBkColor (s->hdc, s->gc->background);
2375 s->stippled_p = s->face->stipple != 0;
2395 /* Clear rest using the GC of the original non-cursor face. */
2398 XGCValues *gc = s->face->gc;
2412 gc = s->face->gc;
2418 if (s->face->stipple)
2420 /* Fill background with a stipple pattern. */
2428 w32_fill_area (s->f, s->hdc, gc->background, x, y, w, h);
2460 /* If S draws into the background of its successor, draw the
2461 background of the successor first so that S can draw into it.
2477 && s->face->box != FACE_NO_BOX
2524 if (s->face->underline_p
2540 if (s->face->underline_defaulted_p)
2547 w32_fill_area (s->f, s->hdc, s->face->underline_color, s->x,
2553 if (s->face->overline_p)
2557 if (s->face->overline_color_defaulted_p)
2564 w32_fill_area (s->f, s->hdc, s->face->overline_color, s->x,
2570 if (s->face->strike_through_p
2576 if (s->face->strike_through_color_defaulted_p)
2583 w32_fill_area (s->f, s->hdc, s->face->underline_color, s->x,
2589 if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
4109 background colors, and the scroll bars may need to be redrawn.
4247 /* Erase background again for safety. */
5013 struct face *face = FACE_FROM_ID (f, cursor_glyph->face_id);
5015 /* If the glyph's background equals the color we normally draw
5020 if (face->background == cursor_color)
5021 cursor_color = face->foreground;