ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtlib.h.in
(Generate patch)

Comparing rxvt-unicode/src/rxvtlib.h.in (file contents):
Revision 1.12 by pcg, Tue Feb 24 00:44:23 2004 UTC vs.
Revision 1.17 by pcg, Sun Mar 14 23:14:39 2004 UTC

1#ifndef _RXVTLIB_H_ /* include once only */ 1#ifndef _RXVTLIB_H_ /* include once only */
2#define _RXVTLIB_H_ 2#define _RXVTLIB_H_
3 3
4#include <stdio.h> 4#include <cstdio>
5#include <ctype.h> 5#include <cctype>
6#include <errno.h> 6#include <cerrno>
7@include_stdarg_h@ 7@include_stdarg_h@
8@include_stdlib_h@ 8@include_stdlib_h@
9@include_stdint_h@ 9@include_stdint_h@
10#include <sys/types.h> 10#include <sys/types.h>
11@include_unistd_h@ 11@include_unistd_h@
20@include_sys_strredir_h@ 20@include_sys_strredir_h@
21 21
22#include <sys/wait.h> 22#include <sys/wait.h>
23#include <sys/stat.h> 23#include <sys/stat.h>
24 24
25#include <cwchar>
26
25extern "C" { 27extern "C" {
26#include <X11/Intrinsic.h> /* Xlib, Xutil, Xresource, Xfuncproto */ 28#include <X11/Intrinsic.h> /* Xlib, Xutil, Xresource, Xfuncproto */
27} 29}
28 30
29/* 31/*
61typedef struct { 63typedef struct {
62 int32_t row; 64 int32_t row;
63 int32_t col; 65 int32_t col;
64} row_col_t; 66} row_col_t;
65 67
66#if UNICODE3 68#if UNICODE_3
67typedef uint32_t text_t; 69typedef uint32_t text_t;
68#else 70#else
69typedef uint16_t text_t; // saves lots of memory 71typedef uint16_t text_t; // saves lots of memory
70#endif 72#endif
71typedef uint32_t rend_t; 73typedef uint32_t rend_t;
157 SELECTION_CONT, /* continued selection */ 159 SELECTION_CONT, /* continued selection */
158 SELECTION_DONE /* selection put in CUT_BUFFER0 */ 160 SELECTION_DONE /* selection put in CUT_BUFFER0 */
159}; 161};
160 162
161typedef struct { 163typedef struct {
162 unsigned char *text; /* selected text */ 164 wchar_t *text; /* selected text */
163 uint32_t len; /* length of selected text */ 165 uint32_t len; /* length of selected text */
164 short screen; /* screen being used */ 166 short screen; /* screen being used */
165 short clicks; /* number of clicks */ 167 short clicks; /* number of clicks */
166 selection_op_t op; /* current operation */ 168 selection_op_t op; /* current operation */
167 row_col_t beg; /* beginning of selection <= mark */ 169 row_col_t beg; /* beginning of selection <= mark */
168 row_col_t mark; /* point of initial click <= end */ 170 row_col_t mark; /* point of initial click <= end */
169 row_col_t end; /* one character past end point */ 171 row_col_t end; /* one character past end point */
170} selection_t; 172} selection_t;
171
172typedef enum {
173 OLD_SELECT, OLD_WORD_SELECT, NEW_SELECT
174} sstyle_t;
175 173
176/* ------------------------------------------------------------------------- */ 174/* ------------------------------------------------------------------------- */
177 175
178/* screen_t flags */ 176/* screen_t flags */
179#define Screen_Relative (1<<0) /* relative origin mode flag */ 177#define Screen_Relative (1<<0) /* relative origin mode flag */
197#define Opt_meta8 (1LU<<10) 195#define Opt_meta8 (1LU<<10)
198#define Opt_scrollTtyOutput (1LU<<11) 196#define Opt_scrollTtyOutput (1LU<<11)
199#define Opt_scrollTtyKeypress (1LU<<12) 197#define Opt_scrollTtyKeypress (1LU<<12)
200#define Opt_transparent (1LU<<13) 198#define Opt_transparent (1LU<<13)
201#define Opt_transparent_all (1LU<<14) 199#define Opt_transparent_all (1LU<<14)
202#define Opt_mc_hack (1LU<<15) 200#define Opt_15 (1LU<<15) // UNALLOCATED
203#define Opt_tripleclickwords (1LU<<16) 201#define Opt_tripleclickwords (1LU<<16)
204#define Opt_scrollWithBuffer (1LU<<17) 202#define Opt_scrollWithBuffer (1LU<<17)
205#define Opt_jumpScroll (1LU<<18) 203#define Opt_jumpScroll (1LU<<18)
206#define Opt_mouseWheelScrollPage (1LU<<19) 204#define Opt_mouseWheelScrollPage (1LU<<19)
207#define Opt_pointerBlank (1LU<<20) 205#define Opt_pointerBlank (1LU<<20)
216/* ------------------------------------------------------------------------- */ 214/* ------------------------------------------------------------------------- */
217 215
218typedef struct { 216typedef struct {
219 short state; 217 short state;
220 Window win; 218 Window win;
219 struct rxvt_drawable *drawable;
221} menuBar_t; 220} menuBar_t;
222 221
223typedef struct { 222typedef struct {
224 char state; /* scrollbar state */ 223 char state; /* scrollbar state */
225 char init; /* scrollbar has been initialised */ 224 char init; /* scrollbar has been initialised */
258 rend_t **buf_rend; 257 rend_t **buf_rend;
259 char *tabs; /* per location: 1 == tab-stop */ 258 char *tabs; /* per location: 1 == tab-stop */
260 screen_t screen; 259 screen_t screen;
261 screen_t swap; 260 screen_t swap;
262 selection_t selection; 261 selection_t selection;
263 sstyle_t selection_style;
264}; 262};
265 263
266void rxvt_init_signals (); 264void rxvt_init_signals ();
267rxvt_t rxvt_init (int argc, const char *const *argv); 265rxvt_t rxvt_init (int argc, const char *const *argv);
268 266

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines