… | |
… | |
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 = const_cast<rxvt_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; |