Mercurial > hg > xemacs-beta
comparison src/frame.h @ 380:8626e4521993 r21-2-5
Import from CVS: tag r21-2-5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:07:10 +0200 |
parents | cc15677e0335 |
children | bbff43aa5eb7 |
comparison
equal
deleted
inserted
replaced
379:76b7d63099ad | 380:8626e4521993 |
---|---|
21 /* Synched up with: FSF 19.30. */ | 21 /* Synched up with: FSF 19.30. */ |
22 | 22 |
23 #ifndef _XEMACS_FRAME_H_ | 23 #ifndef _XEMACS_FRAME_H_ |
24 #define _XEMACS_FRAME_H_ | 24 #define _XEMACS_FRAME_H_ |
25 | 25 |
26 #ifdef HAVE_SCROLLBARS | |
26 #include "scrollbar.h" | 27 #include "scrollbar.h" |
28 #endif | |
29 | |
30 #ifdef HAVE_TOOLBARS | |
27 #include "toolbar.h" | 31 #include "toolbar.h" |
32 #endif | |
33 | |
28 #include "device.h" | 34 #include "device.h" |
29 | 35 |
30 #define FRAME_TYPE_NAME(f) ((f)->framemeths->name) | 36 #define FRAME_TYPE_NAME(f) ((f)->framemeths->name) |
31 #define FRAME_TYPE(f) ((f)->framemeths->symbol) | 37 #define FRAME_TYPE(f) ((f)->framemeths->symbol) |
32 | 38 |
46 /* Methods for this frame's console. This can also be retrieved | 52 /* Methods for this frame's console. This can also be retrieved |
47 through frame->device->console, but it's faster this way. */ | 53 through frame->device->console, but it's faster this way. */ |
48 struct console_methods *framemeths; | 54 struct console_methods *framemeths; |
49 | 55 |
50 /* Size of text only area of this frame, excluding scrollbars, | 56 /* Size of text only area of this frame, excluding scrollbars, |
51 toolbars and end of line glyphs. The size can be in charactes | 57 toolbars and end of line glyphs. The size can be in characters |
52 or pixels, depending on units in which window system resizes | 58 or pixels, depending on units in which window system resizes |
53 its windows */ | 59 its windows */ |
54 int height, width; | 60 int height, width; |
55 | 61 |
56 /* New height and width for pending size change, in the same units | 62 /* New height and width for pending size change, in the same units |
58 int new_height, new_width; | 64 int new_height, new_width; |
59 | 65 |
60 /* Size of text-only are of the frame, in default font characters. | 66 /* Size of text-only are of the frame, in default font characters. |
61 This may be inaccurate due to rounding error */ | 67 This may be inaccurate due to rounding error */ |
62 int char_height, char_width; | 68 int char_height, char_width; |
63 | 69 |
64 /* Size of the whole frame, including scrollbars, toolbars and end | 70 /* Size of the whole frame, including scrollbars, toolbars and end |
65 of line glyphs, in pixels */ | 71 of line glyphs, in pixels */ |
66 int pixheight, pixwidth; | 72 int pixheight, pixwidth; |
67 | 73 |
68 #ifdef HAVE_TTY | 74 #ifdef HAVE_TTY |
106 #define FRAME_SLOT_DECLARATION | 112 #define FRAME_SLOT_DECLARATION |
107 #define MARKED_SLOT(x) Lisp_Object x | 113 #define MARKED_SLOT(x) Lisp_Object x |
108 #include "frameslots.h" | 114 #include "frameslots.h" |
109 | 115 |
110 /* Nonzero if frame is currently displayed. | 116 /* Nonzero if frame is currently displayed. |
111 Mutally exclusive with iconfied | 117 Mutually exclusive with iconified |
112 JV: This now a tristate flag: | 118 JV: This now a tristate flag: |
113 Value : Emacs meaning :f-v-p : X meaning | 119 Value : Emacs meaning :f-v-p : X meaning |
114 0 : not displayed : nil : unmapped | 120 0 : not displayed : nil : unmapped |
115 >0 : user can access it,needs repainting : t : mapped and visible | 121 >0 : user can access it,needs repainting : t : mapped and visible |
116 <0 : user can access it,needs no repainting : hidden :mapped and invisible | 122 <0 : user can access it,needs no repainting : hidden :mapped and invisible |