… | |
… | |
60 | |
60 | |
61 | typedef struct rxvt_term *rxvt_t; |
61 | typedef struct rxvt_term *rxvt_t; |
62 | |
62 | |
63 | extern rxvt_t rxvt_current_term; |
63 | extern rxvt_t rxvt_current_term; |
64 | |
64 | |
65 | #define SET_R(r) rxvt_current_term = (r) |
65 | #define SET_R(r) rxvt_current_term = const_cast<rxvt_term *>(r) |
66 | #define GET_R rxvt_current_term |
66 | #define GET_R rxvt_current_term |
67 | |
|
|
68 | #define scrollbar_visible() scrollBar.state |
|
|
69 | #define menubar_visible() menuBar.state |
|
|
70 | |
67 | |
71 | typedef struct { |
68 | typedef struct { |
72 | int row; |
69 | int row; |
73 | int col; |
70 | int col; |
74 | } row_col_t; |
71 | } row_col_t; |
… | |
… | |
216 | }; |
213 | }; |
217 | |
214 | |
218 | /* ------------------------------------------------------------------------- */ |
215 | /* ------------------------------------------------------------------------- */ |
219 | |
216 | |
220 | typedef struct { |
217 | typedef struct { |
221 | short state; |
|
|
222 | Window win; |
|
|
223 | struct rxvt_drawable *drawable; |
|
|
224 | } menuBar_t; |
|
|
225 | |
|
|
226 | typedef struct { |
|
|
227 | char state; /* scrollbar state */ |
218 | char state; /* scrollbar state */ |
228 | char init; /* scrollbar has been initialised */ |
219 | char init; /* scrollbar has been initialised */ |
229 | unsigned int beg; /* slider sub-window begin height */ |
220 | unsigned int beg; /* slider sub-window begin height */ |
230 | unsigned int end; /* slider sub-window end height */ |
221 | unsigned int end; /* slider sub-window end height */ |
231 | unsigned int top; /* slider top position */ |
222 | unsigned int top; /* slider top position */ |
… | |
… | |
241 | void setDn() { state = 'D'; } |
232 | void setDn() { state = 'D'; } |
242 | } scrollBar_t; |
233 | } scrollBar_t; |
243 | |
234 | |
244 | struct rxvt_vars : TermWin_t { |
235 | struct rxvt_vars : TermWin_t { |
245 | scrollBar_t scrollBar; |
236 | scrollBar_t scrollBar; |
246 | menuBar_t menuBar; |
|
|
247 | uint32_t options; |
237 | uint32_t options; |
248 | XSizeHints szHint; |
238 | XSizeHints szHint; |
249 | rxvt_display *display; |
239 | rxvt_display *display; |
250 | rxvt_color *pix_colors; |
240 | rxvt_color *pix_colors; |
251 | rxvt_color *pix_colors_focused; |
241 | rxvt_color *pix_colors_focused; |
… | |
… | |
253 | rxvt_color *pix_colors_unfocused; |
243 | rxvt_color *pix_colors_unfocused; |
254 | #endif |
244 | #endif |
255 | short numpix_colors; |
245 | short numpix_colors; |
256 | Cursor TermWin_cursor; /* cursor for vt window */ |
246 | Cursor TermWin_cursor; /* cursor for vt window */ |
257 | int sb_shadow; /* scrollbar shadow width */ |
247 | int sb_shadow; /* scrollbar shadow width */ |
258 | rxvt_ptytty pty; |
|
|
259 | int numlock_state; |
248 | int numlock_state; |
260 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
249 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
261 | line_t *drawn_buf; // text on screen |
250 | line_t *drawn_buf; // text on screen |
262 | line_t *swap_buf; // lines for swap buffer |
251 | line_t *swap_buf; // lines for swap buffer |
263 | char *tabs; /* per location: 1 == tab-stop */ |
252 | char *tabs; /* per location: 1 == tab-stop */ |