comparison src/console.h @ 282:c42ec1d1cded r21-0b39

Import from CVS: tag r21-0b39
author cvs
date Mon, 13 Aug 2007 10:33:18 +0200
parents 7df0dd720c89
children 558f606b08ae
comparison
equal deleted inserted replaced
281:090b52736db2 282:c42ec1d1cded
40 the same physical display. This is an implementational detail 40 the same physical display. This is an implementational detail
41 specific to X consoles (e.g. under NeXTstep or Windows, this 41 specific to X consoles (e.g. under NeXTstep or Windows, this
42 could be different, and input would come directly from the console). 42 could be different, and input would come directly from the console).
43 */ 43 */
44 44
45
46 /* GCC does not like forward enum declaration. This needs to be
47 defined here. What a disgust! */
48
49 enum device_metrics
50 {
51 color_default, color_select, color_balloon, color_3d_face, color_3d_light,
52 color_3d_dark, color_menu, color_menu_high, color_menu_button,
53 color_menu_unsel, color_toolbar, color_scrollbar, color_desktop,
54 color_workspace, font_default, font_menubar, font_dialog, size_cursor,
55 size_scrollbar, size_menu, size_toolbar, size_tbbutton, size_tbborder,
56 size_icon, size_icon_small, size_device, size_workspace, size_device_mm,
57 device_dpi, num_bit_planes, num_color_cells,mouse_buttons,
58 swap_buttons, show_sounds, slow_device, security, dbcs, ime, mid_east
59 };
60
45 struct console_methods 61 struct console_methods
46 { 62 {
47 CONST char *name; /* Used by print_console, print_device, print_frame */ 63 CONST char *name; /* Used by print_console, print_device, print_frame */
48 Lisp_Object symbol; 64 Lisp_Object symbol;
49 Lisp_Object predicate_symbol; 65 Lisp_Object predicate_symbol;
68 void (*init_device_method) (struct device *, Lisp_Object props); 84 void (*init_device_method) (struct device *, Lisp_Object props);
69 void (*finish_init_device_method) (struct device *, Lisp_Object props); 85 void (*finish_init_device_method) (struct device *, Lisp_Object props);
70 void (*delete_device_method) (struct device *); 86 void (*delete_device_method) (struct device *);
71 void (*mark_device_method) (struct device *, void (*)(Lisp_Object)); 87 void (*mark_device_method) (struct device *, void (*)(Lisp_Object));
72 void (*asynch_device_change_method) (void); 88 void (*asynch_device_change_method) (void);
73 int (*device_pixel_width_method) (struct device *); 89 Lisp_Object (*device_system_metrics_method) (struct device *, enum device_metrics);
74 int (*device_pixel_height_method) (struct device *);
75 int (*device_mm_width_method) (struct device *);
76 int (*device_mm_height_method) (struct device *);
77 int (*device_bitplanes_method) (struct device *);
78 int (*device_color_cells_method) (struct device *);
79 unsigned int (*device_implementation_flags_method) (); 90 unsigned int (*device_implementation_flags_method) ();
80 91
81 /* frame methods */ 92 /* frame methods */
82 Lisp_Object *device_specific_frame_props; 93 Lisp_Object *device_specific_frame_props;
83 void (*init_frame_1_method) (struct frame *, Lisp_Object properties); 94 void (*init_frame_1_method) (struct frame *, Lisp_Object properties);
111 void (*set_frame_pointer_method) (struct frame *f); 122 void (*set_frame_pointer_method) (struct frame *f);
112 void (*set_frame_icon_method) (struct frame *f); 123 void (*set_frame_icon_method) (struct frame *f);
113 void (*popup_menu_method) (Lisp_Object menu, Lisp_Object event); 124 void (*popup_menu_method) (Lisp_Object menu, Lisp_Object event);
114 Lisp_Object (*get_frame_parent_method) (struct frame *f); 125 Lisp_Object (*get_frame_parent_method) (struct frame *f);
115 void (*update_frame_external_traits_method) (struct frame *f, Lisp_Object name); 126 void (*update_frame_external_traits_method) (struct frame *f, Lisp_Object name);
127 int (*frame_size_fixed_p_method) (struct frame *f);
116 128
117 /* redisplay methods */ 129 /* redisplay methods */
118 int (*left_margin_width_method) (struct window *); 130 int (*left_margin_width_method) (struct window *);
119 int (*right_margin_width_method) (struct window *); 131 int (*right_margin_width_method) (struct window *);
120 int (*text_width_method) (struct frame *f, struct face_cachel *cachel, 132 int (*text_width_method) (struct frame *f, struct face_cachel *cachel,
213 #endif 225 #endif
214 Lisp_Object image_conversion_list; 226 Lisp_Object image_conversion_list;
215 227
216 #ifdef HAVE_TOOLBARS 228 #ifdef HAVE_TOOLBARS
217 /* toolbar methods */ 229 /* toolbar methods */
218 void (*toolbar_size_changed_in_frame_method) (struct frame *f,
219 enum toolbar_pos pos,
220 Lisp_Object oldval);
221 void (*toolbar_border_width_changed_in_frame_method) (struct frame *f,
222 enum toolbar_pos pos,
223 Lisp_Object oldval);
224 void (*toolbar_visible_p_changed_in_frame_method) (struct frame *f,
225 enum toolbar_pos pos,
226 Lisp_Object oldval);
227 void (*output_frame_toolbars_method) (struct frame *); 230 void (*output_frame_toolbars_method) (struct frame *);
228 void (*initialize_frame_toolbars_method) (struct frame *); 231 void (*initialize_frame_toolbars_method) (struct frame *);
229 void (*free_frame_toolbars_method) (struct frame *); 232 void (*free_frame_toolbars_method) (struct frame *);
230 void (*output_toolbar_button_method) (struct frame *, Lisp_Object); 233 void (*output_toolbar_button_method) (struct frame *, Lisp_Object);
231 void (*redraw_frame_toolbars_method) (struct frame *); 234 void (*redraw_frame_toolbars_method) (struct frame *);
238 int (*inhibit_scrollbar_slider_size_change_method) (void); 241 int (*inhibit_scrollbar_slider_size_change_method) (void);
239 void (*free_scrollbar_instance_method) (struct scrollbar_instance *); 242 void (*free_scrollbar_instance_method) (struct scrollbar_instance *);
240 void (*release_scrollbar_instance_method) (struct scrollbar_instance *); 243 void (*release_scrollbar_instance_method) (struct scrollbar_instance *);
241 void (*create_scrollbar_instance_method) (struct frame *, int, 244 void (*create_scrollbar_instance_method) (struct frame *, int,
242 struct scrollbar_instance *); 245 struct scrollbar_instance *);
243 void (*scrollbar_width_changed_in_frame_method) (Lisp_Object, struct frame *,
244 Lisp_Object);
245 void (*scrollbar_height_changed_in_frame_method) (Lisp_Object,
246 struct frame *,
247 Lisp_Object);
248 void (*update_scrollbar_instance_values_method) (struct window *, 246 void (*update_scrollbar_instance_values_method) (struct window *,
249 struct scrollbar_instance *, 247 struct scrollbar_instance *,
250 int, int, int, int, int, 248 int, int, int, int, int,
251 int, int, int, int, int); 249 int, int, int, int, int);
252 void (*update_scrollbar_instance_status_method) (struct window *, int, int, 250 void (*update_scrollbar_instance_status_method) (struct window *, int, int,