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

Comparing cvsroot/rxvt-unicode/src/rxvt.h (file contents):
Revision 1.78 by root, Mon Jul 26 18:01:19 2004 UTC vs.
Revision 1.87 by root, Wed Aug 4 03:29:28 2004 UTC

9 9
10#include <X11/cursorfont.h> 10#include <X11/cursorfont.h>
11#include <X11/keysym.h> 11#include <X11/keysym.h>
12#include <X11/keysymdef.h> 12#include <X11/keysymdef.h>
13#include <X11/Xatom.h> 13#include <X11/Xatom.h>
14#ifndef NO_FRILLS
15#include <X11/Xmd.h>
16#endif
14 17
15#include "encoding.h" 18#include "encoding.h"
16#include "defaultfont.h" 19#include "defaultfont.h"
17#include "rxvtcolor.h" 20#include "rxvtcolor.h"
18#include "iom.h" 21#include "iom.h"
130 } while (/* CONSTCOND */ 0) 133 } while (/* CONSTCOND */ 0)
131#define BOUND_POSITIVE_INT16(val) \ 134#define BOUND_POSITIVE_INT16(val) \
132 (int16_t) ((val) <= 0 \ 135 (int16_t) ((val) <= 0 \
133 ? 0 \ 136 ? 0 \
134 : min ((val), (((uint16_t)-1)>>1))) 137 : min ((val), (((uint16_t)-1)>>1)))
138
139#ifndef NO_FRILLS
140typedef struct _mwmhints {
141 CARD32 flags;
142 CARD32 functions;
143 CARD32 decorations;
144 INT32 input_mode;
145 CARD32 status;
146} MWMHints;
147#endif
135 148
136/* 149/*
137 ***************************************************************************** 150 *****************************************************************************
138 * NORMAL DEFINES 151 * NORMAL DEFINES
139 ***************************************************************************** 152 *****************************************************************************
533 Rs_transparent_all, 546 Rs_transparent_all,
534#endif 547#endif
535#ifndef NO_FRILLS 548#ifndef NO_FRILLS
536 Rs_ext_bwidth, 549 Rs_ext_bwidth,
537 Rs_int_bwidth, 550 Rs_int_bwidth,
551 Rs_borderLess,
538#endif 552#endif
539 Rs_scrollBar_thickness, 553 Rs_scrollBar_thickness,
540#ifndef NO_LINESPACE 554#ifndef NO_LINESPACE
541 Rs_lineSpace, 555 Rs_lineSpace,
542#endif 556#endif
553 Rs_secondaryScreen, 567 Rs_secondaryScreen,
554 Rs_secondaryScroll, 568 Rs_secondaryScroll,
555#endif 569#endif
556#ifndef NO_BOLD_UNDERLINE_REVERSE 570#ifndef NO_BOLD_UNDERLINE_REVERSE
557 Rs_realBold, 571 Rs_realBold,
572#endif
573#ifdef OFF_FOCUS_FADING
574 Rs_fade,
575#endif
576#ifdef TINTING
577 Rs_shade,
558#endif 578#endif
559 NUM_RESOURCES 579 NUM_RESOURCES
560}; 580};
561 581
562// see init.C:xa_names, which must be kept in sync 582// see init.C:xa_names, which must be kept in sync
617# define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) 637# define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
618#else 638#else
619# define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor) 639# define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor)
620#endif 640#endif
621 641
622#define XDEPTH display->depth 642// do not change these constants lightly, there are many interdependencies
623#define XCMAP display->cmap
624#define XVISUAL display->visual
625
626#define IMBUFSIZ 128 // input modifier buffer sizes 643#define IMBUFSIZ 128 // input modifier buffer sizes
627#define KBUFSZ 512 // size of keyboard mapping buffer 644#define KBUFSZ 512 // size of keyboard mapping buffer
628#define CBUFSIZ 4096 // size of command buffer 645#define CBUFSIZ 4096 // size of command buffer
629#define UBUFSIZ 4096 // character buffer 646#define UBUFSIZ 4096 // character buffer
630 647
631#ifndef PATH_MAX 648#ifndef PATH_MAX
632# define PATH_MAX 16384 649# define PATH_MAX 16384
633#endif 650#endif
651
652/* Motif window hints */
653#define MWM_HINTS_FUNCTIONS (1L << 0)
654#define MWM_HINTS_DECORATIONS (1L << 1)
655#define MWM_HINTS_INPUT_MODE (1L << 2)
656#define MWM_HINTS_STATUS (1L << 3)
657/* bit definitions for MwmHints.functions */
658#define MWM_FUNC_ALL (1L << 0)
659#define MWM_FUNC_RESIZE (1L << 1)
660#define MWM_FUNC_MOVE (1L << 2)
661#define MWM_FUNC_MINIMIZE (1L << 3)
662#define MWM_FUNC_MAXIMIZE (1L << 4)
663#define MWM_FUNC_CLOSE (1L << 5)
664/* bit definitions for MwmHints.decorations */
665#define MWM_DECOR_ALL (1L << 0)
666#define MWM_DECOR_BORDER (1L << 1)
667#define MWM_DECOR_RESIZEH (1L << 2)
668#define MWM_DECOR_TITLE (1L << 3)
669#define MWM_DECOR_MENU (1L << 4)
670#define MWM_DECOR_MINIMIZE (1L << 5)
671#define MWM_DECOR_MAXIMIZE (1L << 6)
672/* bit definitions for MwmHints.inputMode */
673#define MWM_INPUT_MODELESS 0
674#define MWM_INPUT_PRIMARY_APPLICATION_MODAL 1
675#define MWM_INPUT_SYSTEM_MODAL 2
676#define MWM_INPUT_FULL_APPLICATION_MODAL 3
677#define PROP_MWM_HINTS_ELEMENTS 5
634 678
635/* 679/*
636 ***************************************************************************** 680 *****************************************************************************
637 * MACRO DEFINES 681 * MACRO DEFINES
638 ***************************************************************************** 682 *****************************************************************************
956#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) 1000#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING)
957 mouse_slip_wheel_speed, 1001 mouse_slip_wheel_speed,
958#endif 1002#endif
959 refresh_count, 1003 refresh_count,
960 refresh_limit, 1004 refresh_limit,
961 fnum, /* logical font number */
962 last_bot, /* scrollbar last bottom position */ 1005 last_bot, /* scrollbar last bottom position */
963 last_top, /* scrollbar last top position */ 1006 last_top, /* scrollbar last top position */
964 last_state, /* scrollbar last state */ 1007 last_state, /* scrollbar last state */
965 scrollbar_len, 1008 scrollbar_len,
966#ifdef MENUBAR 1009#ifdef MENUBAR
1126#endif 1169#endif
1127#ifdef MENUBAR 1170#ifdef MENUBAR
1128 xevent_watcher menubar_ev; 1171 xevent_watcher menubar_ev;
1129#endif 1172#endif
1130 1173
1131 void check_cb (check_watcher &w); check_watcher check_ev; 1174 void check_cb (check_watcher &w); check_watcher check_ev;
1132 void destroy_cb (time_watcher &w); time_watcher destroy_ev; 1175 void destroy_cb (time_watcher &w); time_watcher destroy_ev;
1176 void flush_cb (time_watcher &w); time_watcher flush_ev;
1133 1177
1134 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; 1178 void pty_cb (io_watcher &w, short revents); io_watcher pty_ev;
1135 1179
1136 void incr_cb (time_watcher &w); time_watcher incr_ev; 1180 void incr_cb (time_watcher &w); time_watcher incr_ev;
1137 1181
1153#endif 1197#endif
1154 1198
1155#ifdef POINTER_BLANK 1199#ifdef POINTER_BLANK
1156 void pointer_cb (time_watcher &w); time_watcher pointer_ev; 1200 void pointer_cb (time_watcher &w); time_watcher pointer_ev;
1157 void pointer_blank (); 1201 void pointer_blank ();
1202#endif
1158 void pointer_unblank (); 1203 void pointer_unblank ();
1159#endif
1160 1204
1161 void tt_printf (const char *fmt,...); 1205 void tt_printf (const char *fmt,...);
1162 void tt_write (const unsigned char *data, unsigned int len); 1206 void tt_write (const unsigned char *data, unsigned int len);
1163 1207
1164 void tt_winch (); 1208 void tt_winch ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines