diff options
| author | Jim Blandy | 1993-05-25 14:04:41 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-25 14:04:41 +0000 |
| commit | bf489d26face57127fb118eb3b6c18189c6fab5c (patch) | |
| tree | aec3a98bf2d51ed02e09a63480c8ac23b7ac3f1f /src | |
| parent | b5cf7a0ea5d7664539487b6bb743695bbd1e715f (diff) | |
| download | emacs-bf489d26face57127fb118eb3b6c18189c6fab5c.tar.gz emacs-bf489d26face57127fb118eb3b6c18189c6fab5c.zip | |
* xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face,
face_name_id_number, same_size_fonts, recompute_basic_faces,
compute_char_face, compute_glyph_face): Declare these here.
* xfaces.c (same_size_fonts): We can now remove this extern
declaration.
* xfns.c (face_name_id_number): Likewise.
* xterm.c (intern_face): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 7981bd90283..61f94f98be2 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -570,3 +570,46 @@ struct selection_input_event | |||
| 570 | (((struct selection_input_event *) (eventp))->property) | 570 | (((struct selection_input_event *) (eventp))->property) |
| 571 | #define SELECTION_EVENT_TIME(eventp) \ | 571 | #define SELECTION_EVENT_TIME(eventp) \ |
| 572 | (((struct selection_input_event *) (eventp))->time) | 572 | (((struct selection_input_event *) (eventp))->time) |
| 573 | |||
| 574 | |||
| 575 | /* Interface to the face code functions. */ | ||
| 576 | |||
| 577 | /* Create the first two faces for a frame -- the ones that have GC's. */ | ||
| 578 | extern void init_frame_faces (/* FRAME_PTR */); | ||
| 579 | |||
| 580 | /* Free the resources for the faces associated with a frame. */ | ||
| 581 | extern void free_frame_faces (/* FRAME_PTR */); | ||
| 582 | |||
| 583 | /* Given a non-display face, find or make an equivalent display face | ||
| 584 | in face_vector, and return a pointer to it. */ | ||
| 585 | extern struct face *intern_face (/* FRAME_PTR, struct face * */); | ||
| 586 | |||
| 587 | /* Given a frame and a face name, return the face's ID number, or | ||
| 588 | zero if it isn't a recognized face name. */ | ||
| 589 | extern int face_name_id_number (/* FRAME_PTR, Lisp_Object */); | ||
| 590 | |||
| 591 | /* Return non-zero if FONT1 and FONT2 have the same size bounding box. | ||
| 592 | We assume that they're both character-cell fonts. */ | ||
| 593 | extern int same_size_fonts (/* XFontStruct *, XFontStruct * */); | ||
| 594 | |||
| 595 | /* Recompute the GC's for the default and modeline faces. | ||
| 596 | We call this after changing frame parameters on which those GC's | ||
| 597 | depend. */ | ||
| 598 | extern void recompute_basic_faces (/* FRAME_PTR */); | ||
| 599 | |||
| 600 | /* Return the face ID associated with a buffer position POS. | ||
| 601 | Store into *ENDPTR the position at which a different face is needed. | ||
| 602 | This does not take account of glyphs that specify their own face codes. | ||
| 603 | F is the frame in use for display, and W is a window displaying | ||
| 604 | the current buffer. | ||
| 605 | |||
| 606 | REGION_BEG, REGION_END delimit the region, so it can be highlighted. */ | ||
| 607 | extern int compute_char_face (/* FRAME_PTR frame, | ||
| 608 | struct window *w, | ||
| 609 | int pos, | ||
| 610 | int region_beg, int region_end, | ||
| 611 | int *endptr */); | ||
| 612 | /* Return the face ID to use to display a special glyph which selects | ||
| 613 | FACE_CODE as the face ID, assuming that ordinarily the face would | ||
| 614 | be BASIC_FACE. F is the frame. */ | ||
| 615 | extern int compute_glyph_face (/* FRAME_PTR, int */); | ||