Mercurial > hg > xemacs-beta
diff src/console-x-impl.h @ 5178:97eb4942aec8
merge
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 29 Mar 2010 21:28:13 -0500 |
parents | 8b2f75cecb89 7be849cb8828 |
children | 6466bc9ebf15 |
line wrap: on
line diff
--- a/src/console-x-impl.h Tue Feb 23 07:28:35 2010 -0600 +++ b/src/console-x-impl.h Mon Mar 29 21:28:13 2010 -0500 @@ -2,6 +2,7 @@ Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. Copyright (C) 1994, 1995 Board of Trustees, University of Illinois. Copyright (C) 1996, 2002, 2003 Ben Wing. + Copyright (C) 2010 Didier Verna This file is part of XEmacs. @@ -45,7 +46,7 @@ struct x_device { #ifdef NEW_GC - struct lrecord_header header; + NORMAL_LISP_OBJECT_HEADER header; #endif /* NEW_GC */ /* The X connection of this device. */ Display *display; @@ -167,7 +168,7 @@ #ifdef NEW_GC typedef struct x_device Lisp_X_Device; -DECLARE_LRECORD (x_device, Lisp_X_Device); +DECLARE_LISP_OBJECT (x_device, Lisp_X_Device); #define XX_DEVICE(x) \ XRECORD (x, x_device, Lisp_X_Device) @@ -243,7 +244,7 @@ struct x_frame { #ifdef NEW_GC - struct lrecord_header header; + NORMAL_LISP_OBJECT_HEADER header; #endif /* NEW_GC */ /* The widget of this frame. @@ -265,6 +266,8 @@ /* The widget of the edit portion of this frame; this is an EmacsFrame, and the window of this widget is what the redisplay code draws on. */ Widget edit_widget; + /* Position of the edit widget above, for absolute background placement. */ + int x, y; /* Lists the widgets above the text area, in the proper order. Used by the EmacsManager. */ @@ -351,7 +354,7 @@ #ifdef NEW_GC typedef struct x_frame Lisp_X_Frame; -DECLARE_LRECORD (x_frame, Lisp_X_Frame); +DECLARE_LISP_OBJECT (x_frame, Lisp_X_Frame); #define XX_FRAME(x) \ XRECORD (x, x_frame, Lisp_X_Frame) @@ -360,6 +363,8 @@ #endif /* NEW_GC */ #define FRAME_X_DATA(f) FRAME_TYPE_DATA (f, x) +#define FRAME_X_X(f) (FRAME_X_DATA (f)->x) +#define FRAME_X_Y(f) (FRAME_X_DATA (f)->y) #define FRAME_X_SHELL_WIDGET(f) (FRAME_X_DATA (f)->widget) #define FRAME_X_CONTAINER_WIDGET(f) (FRAME_X_DATA (f)->container) #define FRAME_X_MENUBAR_WIDGET(f) (FRAME_X_DATA (f)->menubar_widget) @@ -407,6 +412,8 @@ extern struct console_type *x_console_type; +void x_get_frame_text_position (struct frame *); + #endif /* HAVE_X_WINDOWS */ #endif /* INCLUDED_console_x_impl_h_ */