Mercurial > emacs
comparison src/fontset.h @ 20318:1507c5324f4c
Add prototypes and more function declarations.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Fri, 21 Nov 1997 15:12:34 +0000 |
parents | 7574338c92e2 |
children | 4ab361c28043 |
comparison
equal
deleted
inserted
replaced
20317:f62a4f83537e | 20318:1507c5324f4c |
---|---|
168 fontset_table[n] is used and valid iff 0 <= n < n_fontsets. | 168 fontset_table[n] is used and valid iff 0 <= n < n_fontsets. |
169 0 <= n_fontsets <= fontset_table_size. */ | 169 0 <= n_fontsets <= fontset_table_size. */ |
170 int n_fontsets; | 170 int n_fontsets; |
171 }; | 171 }; |
172 | 172 |
173 /* Forward declaration for prototypes. */ | |
174 struct frame; | |
175 | |
173 /* The following six are window system dependent functions. | 176 /* The following six are window system dependent functions. |
174 Initialization routine of each window system should set appropriate | 177 Initialization routine of each window system should set appropriate |
175 functions to these variables. For instance, in case of X window, | 178 functions to these variables. For instance, in case of X window, |
176 x_term_init does this. */ | 179 x_term_init does this. */ |
177 | 180 |
178 /* Return a pointer to struct font_info of font FONT_IDX of frame F. */ | 181 /* Return a pointer to struct font_info of font FONT_IDX of frame F. */ |
179 extern struct font_info *(*get_font_info_func) (/* FRAME_PTR f; | 182 extern struct font_info *(*get_font_info_func) P_ ((struct frame *f, |
180 int font_idx */); | 183 int font_idx)); |
181 | 184 |
182 /* Return a list of font names which matches PATTERN. See the document of | 185 /* Return a list of font names which matches PATTERN. See the document of |
183 `x-list-fonts' for more detail. */ | 186 `x-list-fonts' for more detail. */ |
184 extern Lisp_Object (*list_fonts_func) (/* Lisp_Object pattern, face, frame, | 187 extern Lisp_Object (*list_fonts_func) P_ ((Lisp_Object pattern, |
185 width */); | 188 Lisp_Object face, |
189 Lisp_Object frame, | |
190 Lisp_Object width)); | |
186 | 191 |
187 /* Load a font named NAME for frame F and return a pointer to the | 192 /* Load a font named NAME for frame F and return a pointer to the |
188 information of the loaded font. If loading is failed, return -1. */ | 193 information of the loaded font. If loading is failed, return -1. */ |
189 extern struct font_info *(*load_font_func) (/* FRAME_PTR f; char *name */); | 194 extern struct font_info *(*load_font_func) P_ ((struct frame *f, |
195 char *name, int)); | |
190 | 196 |
191 /* Return a pointer to struct font_info of a font named NAME for frame F. | 197 /* Return a pointer to struct font_info of a font named NAME for frame F. |
192 If no such font is loaded, return NULL. */ | 198 If no such font is loaded, return NULL. */ |
193 extern struct font_info *(*query_font_func) (/* FRAME_PTR f; char *name */); | 199 extern struct font_info *(*query_font_func) P_ ((struct frame *f, char *name)); |
194 | 200 |
195 /* Additional function for setting fontset or changing fontset | 201 /* Additional function for setting fontset or changing fontset |
196 contents of frame F. This function may change the coordinate of | 202 contents of frame F. This function may change the coordinate of |
197 the frame. */ | 203 the frame. */ |
198 extern void (*set_frame_fontset_func) (/* FRAME_PTR f; Lisp_Object arg, oldval */); | 204 extern void (*set_frame_fontset_func) P_ ((struct frame *f, Lisp_Object arg, |
205 Lisp_Object oldval)); | |
199 | 206 |
200 /* Check if any window system is used now. */ | 207 /* Check if any window system is used now. */ |
201 extern void (*check_window_system_func) (); | 208 extern void (*check_window_system_func) P_ ((void)); |
202 | 209 |
203 extern struct fontset_data *alloc_fontset_data (); | 210 extern struct fontset_data *alloc_fontset_data P_ ((void)); |
204 extern void free_fontset_data (); | 211 extern void free_fontset_data P_ ((struct fontset_data *)); |
205 extern struct font_info *fs_load_font (); | 212 extern struct font_info *fs_load_font P_ ((struct frame *, struct font_info *, |
206 extern Lisp_Object list_fontsets (); | 213 int, char *, int)); |
214 extern int fs_query_fontset P_ ((struct frame *, char *)); | |
215 extern int fs_register_fontset P_ ((struct frame *, Lisp_Object)); | |
216 EXFUN (Fquery_fontset, 1); | |
217 extern Lisp_Object list_fontsets P_ ((struct frame *, Lisp_Object, int)); | |
207 extern Lisp_Object Vglobal_fontset_alist; | 218 extern Lisp_Object Vglobal_fontset_alist; |
208 | 219 |
209 extern Lisp_Object Qfontset; | 220 extern Lisp_Object Qfontset; |
210 extern Lisp_Object Vuse_default_ascent; | 221 extern Lisp_Object Vuse_default_ascent; |
211 extern Lisp_Object Vignore_relative_composition; | 222 extern Lisp_Object Vignore_relative_composition; |