aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.h
diff options
context:
space:
mode:
authorAndreas Schwab1997-11-21 15:12:34 +0000
committerAndreas Schwab1997-11-21 15:12:34 +0000
commitd748a3dbdc6351ca3fc773ef54d3ec86321c94ef (patch)
treead542228118922eee20eab5a27e48bb02b775276 /src/fontset.h
parent0c60dfd7b4834041e0205b4bb45b27c7d1a7732a (diff)
downloademacs-d748a3dbdc6351ca3fc773ef54d3ec86321c94ef.tar.gz
emacs-d748a3dbdc6351ca3fc773ef54d3ec86321c94ef.zip
Add prototypes and more function declarations.
Diffstat (limited to 'src/fontset.h')
-rw-r--r--src/fontset.h37
1 files changed, 24 insertions, 13 deletions
diff --git a/src/fontset.h b/src/fontset.h
index bb7c8e8ffcd..b99d7de576a 100644
--- a/src/fontset.h
+++ b/src/fontset.h
@@ -170,40 +170,51 @@ struct fontset_data
170 int n_fontsets; 170 int n_fontsets;
171}; 171};
172 172
173/* Forward declaration for prototypes. */
174struct 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. */
179extern struct font_info *(*get_font_info_func) (/* FRAME_PTR f; 182extern 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. */
184extern Lisp_Object (*list_fonts_func) (/* Lisp_Object pattern, face, frame, 187extern 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. */
189extern struct font_info *(*load_font_func) (/* FRAME_PTR f; char *name */); 194extern 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. */
193extern struct font_info *(*query_font_func) (/* FRAME_PTR f; char *name */); 199extern 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. */
198extern void (*set_frame_fontset_func) (/* FRAME_PTR f; Lisp_Object arg, oldval */); 204extern 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. */
201extern void (*check_window_system_func) (); 208extern void (*check_window_system_func) P_ ((void));
202 209
203extern struct fontset_data *alloc_fontset_data (); 210extern struct fontset_data *alloc_fontset_data P_ ((void));
204extern void free_fontset_data (); 211extern void free_fontset_data P_ ((struct fontset_data *));
205extern struct font_info *fs_load_font (); 212extern struct font_info *fs_load_font P_ ((struct frame *, struct font_info *,
206extern Lisp_Object list_fontsets (); 213 int, char *, int));
214extern int fs_query_fontset P_ ((struct frame *, char *));
215extern int fs_register_fontset P_ ((struct frame *, Lisp_Object));
216EXFUN (Fquery_fontset, 1);
217extern Lisp_Object list_fontsets P_ ((struct frame *, Lisp_Object, int));
207extern Lisp_Object Vglobal_fontset_alist; 218extern Lisp_Object Vglobal_fontset_alist;
208 219
209extern Lisp_Object Qfontset; 220extern Lisp_Object Qfontset;