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

Lines Matching +defs:face +defs:background

302   CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR (context, (gc)->xgcv.background,	\
1626 XSetBackground (display, gc, xgcv->background);
1694 xgcv->background = gc->xgcv.background;
1749 if (gc->xgcv.background != color)
1751 gc->xgcv.background = color;
1986 #if 0 /* Rows in a current matrix containing glyphs in mouse-face have
1989 flag set. So, rows containing mouse-face glyphs are never
2025 struct face *face;
2027 face = FACE_FROM_ID (f, VERTICAL_BORDER_FACE_ID);
2028 if (face)
2030 face->foreground);
2041 glyphs in mouse-face were overwritten. In that case we have to
2070 /* If a row with mouse-face was overwritten, arrange for
2191 struct face *face = p->face;
2204 x_clip_to_row (w, row, -1, face->gc);
2209 x_clip_to_row (w, row, -1, face->gc);
2214 /* In case the same realized face is used for fringes and
2215 for something displayed in the text (e.g. face `region' on
2218 if (face->stipple)
2219 XSetFillStyle (FRAME_X_DISPLAY (f), face->gc, FillOpaqueStippled);
2221 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->background);
2224 mac_erase_rectangle (f, face->gc, p->bx, p->by, p->nx, p->ny);
2227 if (!face->stipple)
2228 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground);
2240 XGetGCValues (display, face->gc, GCForeground, &gcv);
2241 XSetForeground (display, face->gc,
2243 ? (p->overlay_p ? face->background
2245 : face->foreground));
2247 mac_draw_cg_image (fringe_bmp[p->which], f, face->gc, 0, p->dh,
2250 mac_draw_bitmap (f, face->gc, p->x, p->y,
2253 XSetForeground (display, face->gc, gcv.foreground);
2256 mac_reset_clip_rectangles (display, face->gc);
2590 face. */
2597 && s->face->background == FRAME_BACKGROUND_PIXEL (s->f)
2598 && s->face->foreground == FRAME_FOREGROUND_PIXEL (s->f)
2603 /* Cursor on non-default face: must merge. */
2607 xgcv.background = s->f->output_data.mac->cursor_pixel;
2608 xgcv.foreground = s->face->background;
2611 if (xgcv.foreground == xgcv.background)
2612 xgcv.foreground = s->face->foreground;
2613 if (xgcv.foreground == xgcv.background)
2615 if (xgcv.foreground == xgcv.background)
2616 xgcv.foreground = s->face->foreground;
2618 /* Make sure the cursor is distinct from text in this face. */
2619 if (xgcv.background == s->face->background
2620 && xgcv.foreground == s->face->foreground)
2622 xgcv.background = s->face->foreground;
2623 xgcv.foreground = s->face->background;
2642 /* Set up S->gc of glyph string S for drawing text in mouse face. */
2649 struct face *face;
2651 /* What face has to be used last for the mouse face? */
2653 face = FACE_FROM_ID (s->f, face_id);
2654 if (face == NULL)
2655 face = FACE_FROM_ID (s->f, MOUSE_FACE_ID);
2658 face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch);
2660 face_id = FACE_FOR_CHAR (s->f, face, 0);
2661 s->face = FACE_FROM_ID (s->f, face_id);
2662 PREPARE_FACE_FOR_DISPLAY (s->f, s->face);
2664 /* If font in this face is same as S->font, use it. */
2665 if (s->font == s->face->font)
2666 s->gc = s->face->gc;
2674 xgcv.background = s->face->background;
2675 xgcv.foreground = s->face->foreground;
2702 s->gc = s->face->gc;
2707 S->stippled_p to a non-zero value if the face of S has a stipple
2714 PREPARE_FACE_FOR_DISPLAY (s->f, s->face);
2718 s->gc = s->face->gc;
2719 s->stippled_p = s->face->stipple != 0;
2724 s->stippled_p = s->face->stipple != 0;
2734 s->stippled_p = s->face->stipple != 0;
2739 s->gc = s->face->gc;
2740 s->stippled_p = s->face->stipple != 0;
2744 s->gc = s->face->gc;
2745 s->stippled_p = s->face->stipple != 0;
2814 /* Fill rectangle X, Y, W, H with background color of glyph string S. */
2825 /* Draw the background of glyph_string S. If S->background_filled_p
2827 background even if it wouldn't be drawn normally. This is used
2828 when a string preceding S draws into the background of S, or S
2836 /* Nothing to do if background has already been drawn or if it
2840 int box_line_width = max (s->face->box_line_width, 0);
2845 /* Fill background with a stipple pattern. */
2880 if (s->face->box != FACE_NO_BOX
2882 x = s->x + abs (s->face->box_line_width);
2915 /* Draw text with XDrawString if background has already been
2935 s->face->overstrike))
2941 s->face->overstrike);
2945 s->face->overstrike);
2959 if (s->face->box != FACE_NO_BOX
2961 x = s->x + abs (s->face->box_line_width);
2984 s->char2b + i, 1, 0, s->face->overstrike);
3243 DELTA lighter or darker than the relief's background which is found
3259 unsigned long background = di->relief_background;
3266 pixel = background;
3296 if (s->face->use_box_color_for_shadows_p)
3297 color = s->face->box_color;
3306 /* Get the background color of the face. */
3308 color = xgcv.background;
3403 XSetForeground (s->display, s->gc, s->face->box_color);
3449 width = abs (s->face->box_line_width);
3450 raised_p = s->face->box == FACE_RAISED_BOX;
3469 if (s->face->box == FACE_SIMPLE_BOX)
3488 int y = s->ybase - image_ascent (s->img, s->face, &s->slice);
3492 if (s->face->box != FACE_NO_BOX
3495 x += abs (s->face->box_line_width);
3534 nothing here for mouse-face. */
3561 int y = s->ybase - image_ascent (s->img, s->face, &s->slice);
3565 if (s->face->box != FACE_NO_BOX
3568 x += abs (s->face->box_line_width);
3605 /* Draw part of the background of glyph string S. X, Y, W, and H
3616 /* Fill background with a stipple pattern. */
3631 | s->face->box
3646 int box_line_hwidth = abs (s->face->box_line_width);
3647 int box_line_vwidth = max (s->face->box_line_width, 0);
3653 /* Fill background with face under the image. Do it only if row is
3656 s->stippled_p = s->face->stipple != 0;
3696 s->stippled_p = s->face->stipple != 0;
3716 /* Clear rest using the GC of the original non-cursor face. */
3732 gc = s->face->gc;
3738 if (s->face->stipple)
3740 /* Fill background with a stipple pattern. */
3778 /* If S draws into the background of its successor that does not
3779 draw a cursor, draw the background of the successor first so that
3797 && s->face->box != FACE_NO_BOX
3844 if (s->face->underline_p)
3872 if (s->face->font)
3873 y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
3876 if (s->face->underline_defaulted_p)
3883 XSetForeground (s->display, s->gc, s->face->underline_color);
3891 if (s->face->overline_p)
3895 if (s->face->overline_color_defaulted_p)
3902 XSetForeground (s->display, s->gc, s->face->overline_color);
3910 if (s->face->strike_through_p)
3915 if (s->face->strike_through_color_defaulted_p)
3922 XSetForeground (s->display, s->gc, s->face->strike_through_color);
3930 if (!relief_drawn_p && s->face->box != FACE_NO_BOX)
5576 background colors, and the scroll bars may need to be redrawn.
5650 background color, which can cause the cursor box to be invisible. */
5705 struct face *face = FACE_FROM_ID (f, cursor_glyph->face_id);
5708 /* If the glyph's background equals the color we normally draw
5713 if (face->background == f->output_data.mac->cursor_pixel)
5714 xgcv.background = xgcv.foreground = face->foreground;
5716 xgcv.background = xgcv.foreground = f->output_data.mac->cursor_pixel;
7186 /* Alist linking Font Manager style to face attributes. */
8792 struct face *face;
8795 face = FACE_FROM_ID (f, face_id);
8796 font = face->font;