/[emacs]/emacs/src/xterm.h
ViewVC logotype

Diff of /emacs/src/xterm.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.139 by jhd, Sat Jan 25 16:25:39 2003 UTC revision 1.140 by lektu, Tue Feb 4 14:03:17 2003 UTC
# Line 30  Boston, MA 02111-1307, USA.  */ Line 30  Boston, MA 02111-1307, USA.  */
30  #include <X11/StringDefs.h>  #include <X11/StringDefs.h>
31  #include <X11/IntrinsicP.h>     /* CoreP.h needs this */  #include <X11/IntrinsicP.h>     /* CoreP.h needs this */
32  #include <X11/CoreP.h>          /* foul, but we need this to use our own  #include <X11/CoreP.h>          /* foul, but we need this to use our own
33                                     window inside a widget instead of one                                     window inside a widget instead of one
34                                     that Xt creates... */                                     that Xt creates... */
35  #include <X11/StringDefs.h>  #include <X11/StringDefs.h>
36    
# Line 77  typedef GtkWidget *xt_or_gtk_widget; Line 77  typedef GtkWidget *xt_or_gtk_widget;
77  #ifdef PBaseSize  #ifdef PBaseSize
78  /* AIX 3.1's X is somewhere between X11R3 and X11R4.  It has  /* AIX 3.1's X is somewhere between X11R3 and X11R4.  It has
79     PBaseSize, but not XWithdrawWindow, XSetWMName, XSetWMNormalHints,     PBaseSize, but not XWithdrawWindow, XSetWMName, XSetWMNormalHints,
80     XSetWMIconName.       XSetWMIconName.
81     AIX 3.2 is at least X11R4.  */     AIX 3.2 is at least X11R4.  */
82  #if (!defined AIX) || (defined AIX3_2)  #if (!defined AIX) || (defined AIX3_2)
83  #define HAVE_X11R4  #define HAVE_X11R4
# Line 138  struct x_display_info Line 138  struct x_display_info
138  {  {
139    /* Chain of all x_display_info structures.  */    /* Chain of all x_display_info structures.  */
140    struct x_display_info *next;    struct x_display_info *next;
141      
142    /* Connection number (normally a file descriptor number).  */    /* Connection number (normally a file descriptor number).  */
143    int connection;    int connection;
144      
145    /* This says how to access this display in Xlib.  */    /* This says how to access this display in Xlib.  */
146    Display *display;    Display *display;
147      
148    /* This is a cons cell of the form (NAME . FONT-LIST-CACHE).    /* This is a cons cell of the form (NAME . FONT-LIST-CACHE).
149       The same cons cell also appears in x_display_name_list.  */       The same cons cell also appears in x_display_name_list.  */
150    Lisp_Object name_list_element;    Lisp_Object name_list_element;
151      
152    /* Number of frames that are on this display.  */    /* Number of frames that are on this display.  */
153    int reference_count;    int reference_count;
154      
155    /* The Screen this connection is connected to.  */    /* The Screen this connection is connected to.  */
156    Screen *screen;    Screen *screen;
157    
158    /* Dots per inch of the screen.  */    /* Dots per inch of the screen.  */
159    double resx, resy;    double resx, resy;
160      
161    /* The Visual being used for this display.  */    /* The Visual being used for this display.  */
162    Visual *visual;    Visual *visual;
163    
164    /* The colormap being used.  */    /* The colormap being used.  */
165    Colormap cmap;    Colormap cmap;
166      
167    /* Number of panes on this screen.  */    /* Number of panes on this screen.  */
168    int n_planes;    int n_planes;
169      
170    /* Dimensions of this screen.  */    /* Dimensions of this screen.  */
171    int height, width;    int height, width;
172      
173    /* Mask of things that cause the mouse to be grabbed.  */    /* Mask of things that cause the mouse to be grabbed.  */
174    int grabbed;    int grabbed;
175      
176    /* Emacs bitmap-id of the default icon bitmap for this frame.    /* Emacs bitmap-id of the default icon bitmap for this frame.
177       Or -1 if none has been allocated yet.  */       Or -1 if none has been allocated yet.  */
178    int icon_bitmap_id;    int icon_bitmap_id;
179      
180    /* The root window of this screen.  */    /* The root window of this screen.  */
181    Window root_window;    Window root_window;
182      
183    /* The cursor to use for vertical scroll bars.  */    /* The cursor to use for vertical scroll bars.  */
184    Cursor vertical_scroll_bar_cursor;    Cursor vertical_scroll_bar_cursor;
185      
186    /* X Resource data base */    /* X Resource data base */
187    XrmDatabase xrdb;    XrmDatabase xrdb;
188    
# Line 274  struct x_display_info Line 274  struct x_display_info
274    
275    /* Communication with window managers.  */    /* Communication with window managers.  */
276    Atom Xatom_wm_protocols;    Atom Xatom_wm_protocols;
277      
278    /* Kinds of protocol things we may receive.  */    /* Kinds of protocol things we may receive.  */
279    Atom Xatom_wm_take_focus;    Atom Xatom_wm_take_focus;
280    Atom Xatom_wm_save_yourself;    Atom Xatom_wm_save_yourself;
281    Atom Xatom_wm_delete_window;    Atom Xatom_wm_delete_window;
282      
283    /* Atom for indicating window state to the window manager.  */    /* Atom for indicating window state to the window manager.  */
284    Atom Xatom_wm_change_state;    Atom Xatom_wm_change_state;
285      
286    /* Other WM communication */    /* Other WM communication */
287    Atom Xatom_wm_configure_denied; /* When our config request is denied */    Atom Xatom_wm_configure_denied; /* When our config request is denied */
288    Atom Xatom_wm_window_moved;     /* When the WM moves us.  */    Atom Xatom_wm_window_moved;     /* When the WM moves us.  */
289      
290    /* EditRes protocol */    /* EditRes protocol */
291    Atom Xatom_editres;    Atom Xatom_editres;
292    
# Line 476  struct x_output Line 476  struct x_output
476    GtkWidget *toolbar_widget;    GtkWidget *toolbar_widget;
477    /* The handle box that makes the tool bar detachable.  */    /* The handle box that makes the tool bar detachable.  */
478    GtkWidget *handlebox_widget;    GtkWidget *handlebox_widget;
479      
480    /* The last size hints set.  */    /* The last size hints set.  */
481    GdkGeometry size_hints;    GdkGeometry size_hints;
482    long hint_flags;    long hint_flags;
# Line 508  struct x_output Line 508  struct x_output
508    /* Foreground color for scroll bars.  A value of -1 means use the    /* Foreground color for scroll bars.  A value of -1 means use the
509       default (black for non-toolkit scroll bars).  */       default (black for non-toolkit scroll bars).  */
510    unsigned long scroll_bar_foreground_pixel;    unsigned long scroll_bar_foreground_pixel;
511      
512    /* Background color for scroll bars.  A value of -1 means use the    /* Background color for scroll bars.  A value of -1 means use the
513       default (background color of the frame for non-toolkit scroll       default (background color of the frame for non-toolkit scroll
514       bars).  */       bars).  */
# Line 530  struct x_output Line 530  struct x_output
530    /* Window whose cursor is hourglass_cursor.  This window is temporarily    /* Window whose cursor is hourglass_cursor.  This window is temporarily
531       mapped to display an hourglass cursor.  */       mapped to display an hourglass cursor.  */
532    Window hourglass_window;    Window hourglass_window;
533      
534    /* Non-zero means hourglass cursor is currently displayed.  */    /* Non-zero means hourglass cursor is currently displayed.  */
535    unsigned hourglass_p : 1;    unsigned hourglass_p : 1;
536    
# Line 629  struct x_output Line 629  struct x_output
629    /* As x_pixels_diff, but to FRAME_OUTER_WINDOW.  For some reason the    /* As x_pixels_diff, but to FRAME_OUTER_WINDOW.  For some reason the
630       two might differ by a pixel, depending on WM */       two might differ by a pixel, depending on WM */
631    int x_pixels_outer_diff;    int x_pixels_outer_diff;
632      
633    /* As y_pixels_diff, but to FRAME_OUTER_WINDOW.  In the toolkit version,    /* As y_pixels_diff, but to FRAME_OUTER_WINDOW.  In the toolkit version,
634       these may differ because this does not take into account possible       these may differ because this does not take into account possible
635       menubar.  y_pixels_diff is with menubar height included */       menubar.  y_pixels_diff is with menubar height included */
# Line 878  struct scroll_bar Line 878  struct scroll_bar
878    
879  /* Return the length of the rectangle within which the top of the  /* Return the length of the rectangle within which the top of the
880     handle must stay.  This isn't equivalent to the inside height,     handle must stay.  This isn't equivalent to the inside height,
881     because the scroll bar handle has a minimum height.       because the scroll bar handle has a minimum height.
882    
883     This is the real range of motion for the scroll bar, so when we're     This is the real range of motion for the scroll bar, so when we're
884     scaling buffer positions to scroll bar positions, we use this, not     scaling buffer positions to scroll bar positions, we use this, not
# Line 941  struct scroll_bar Line 941  struct scroll_bar
941     + (f)->output_data.x->internal_border_width)     + (f)->output_data.x->internal_border_width)
942    
943    
944  /* Return the row/column (zero-based) of the character cell containing  /* Return the row/column (zero-based) of the character cell containing
945     the pixel on FRAME at ROW/COL.  */     the pixel on FRAME at ROW/COL.  */
946  #define PIXEL_TO_CHAR_ROW(f, row) \  #define PIXEL_TO_CHAR_ROW(f, row) \
947    (((row) - (f)->output_data.x->internal_border_width) \    (((row) - (f)->output_data.x->internal_border_width) \

Legend:
Removed from v.1.139  
changed lines
  Added in v.1.140

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26