… | |
… | |
268 | }; |
268 | }; |
269 | |
269 | |
270 | overlay::overlay (rxvt_term *THIS, int x_, int y_, int w_, int h_, rend_t rstyle, int border) |
270 | overlay::overlay (rxvt_term *THIS, int x_, int y_, int w_, int h_, rend_t rstyle, int border) |
271 | : THIS(THIS), x(x_), y(y_), w(w_), h(h_), border(border == 2), overlay_av (0) |
271 | : THIS(THIS), x(x_), y(y_), w(w_), h(h_), border(border == 2), overlay_av (0) |
272 | { |
272 | { |
|
|
273 | if (w < 0) w = 0; |
|
|
274 | if (h < 0) h = 0; |
|
|
275 | |
273 | if (border == 2) |
276 | if (border == 2) |
274 | { |
277 | { |
275 | w += 2; |
278 | w += 2; |
276 | h += 2; |
279 | h += 2; |
277 | } |
280 | } |
… | |
… | |
787 | const_iv (Button2Mask), |
790 | const_iv (Button2Mask), |
788 | const_iv (Button3Mask), |
791 | const_iv (Button3Mask), |
789 | const_iv (Button4Mask), |
792 | const_iv (Button4Mask), |
790 | const_iv (Button5Mask), |
793 | const_iv (Button5Mask), |
791 | const_iv (AnyModifier), |
794 | const_iv (AnyModifier), |
|
|
795 | |
|
|
796 | const_iv (NoSymbol), |
|
|
797 | const_iv (GrabModeSync), |
|
|
798 | const_iv (GrabModeAsync), |
792 | |
799 | |
793 | const_iv (EVENT_NONE), |
800 | const_iv (EVENT_NONE), |
794 | const_iv (EVENT_READ), |
801 | const_iv (EVENT_READ), |
795 | const_iv (EVENT_WRITE), |
802 | const_iv (EVENT_WRITE), |
796 | |
803 | |
… | |
… | |
1012 | void |
1019 | void |
1013 | rxvt_term::set_should_invoke (int htype, int inc) |
1020 | rxvt_term::set_should_invoke (int htype, int inc) |
1014 | CODE: |
1021 | CODE: |
1015 | THIS->perl.should_invoke [htype] += inc; |
1022 | THIS->perl.should_invoke [htype] += inc; |
1016 | |
1023 | |
1017 | void |
1024 | int |
1018 | rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) |
1025 | rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) |
1019 | CODE: |
1026 | CODE: |
1020 | XGrabButton (THIS->dpy, button, modifiers, window, 1, |
1027 | RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1, |
1021 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
1028 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
1022 | GrabModeSync, GrabModeSync, None, GRAB_CURSOR); |
1029 | GrabModeSync, GrabModeSync, None, GRAB_CURSOR); |
|
|
1030 | OUTPUT: RETVAL |
1023 | |
1031 | |
1024 | void |
1032 | int |
1025 | rxvt_term::ungrab_button (int button, U32 modifiers, Window window = THIS->vt) |
1033 | rxvt_term::ungrab_button (int button, U32 modifiers, Window window = THIS->vt) |
1026 | CODE: |
1034 | CODE: |
1027 | XUngrabButton (THIS->dpy, button, modifiers, window); |
1035 | RETVAL = XUngrabButton (THIS->dpy, button, modifiers, window); |
|
|
1036 | OUTPUT: RETVAL |
1028 | |
1037 | |
1029 | #if 0 |
|
|
1030 | |
|
|
1031 | void |
1038 | void |
1032 | XGrabKey (rxvt_term *THIS, int keycode, U32 modifiers, Window window = THIS->vt) |
1039 | rxvt_term::XGrabKey (int keycode, U32 modifiers, Window window = THIS->vt, \ |
1033 | C_ARGS: |
1040 | int owner_events = 1, int pointer_mode = GrabModeAsync, int keyboard_mode = GrabModeAsync) |
1034 | THIS->dpy, keycode, modifiers, window, 1, |
1041 | CODE: |
1035 | GrabModeSync, GrabModeSync |
1042 | XGrabKey (THIS->dpy, keycode, modifiers, window, owner_events, pointer_mode, keyboard_mode); |
1036 | |
1043 | |
1037 | void |
1044 | void |
1038 | XUngrabKey (rxvt_term *THIS, int keycode, U32 modifiers, Window window = THIS->vt) |
1045 | rxvt_term::XUngrabKey (int keycode, U32 modifiers, Window window = THIS->vt) |
|
|
1046 | CODE: |
1039 | C_ARGS: THIS->dpy, keycode, modifiers, window |
1047 | XUngrabKey (THIS->dpy, keycode, modifiers, window); |
1040 | |
1048 | |
1041 | #endif |
1049 | void |
|
|
1050 | rxvt_term::XUngrabKeyboard (Time eventtime) |
|
|
1051 | CODE: |
|
|
1052 | XUngrabKeyboard (THIS->dpy, eventtime); |
1042 | |
1053 | |
1043 | bool |
1054 | bool |
1044 | rxvt_term::grab (Time eventtime, int sync = 0) |
1055 | rxvt_term::grab (Time eventtime, int sync = 0) |
1045 | CODE: |
1056 | CODE: |
1046 | { |
1057 | { |
… | |
… | |
1079 | |
1090 | |
1080 | void |
1091 | void |
1081 | rxvt_term::ungrab () |
1092 | rxvt_term::ungrab () |
1082 | CODE: |
1093 | CODE: |
1083 | ungrab (THIS); |
1094 | ungrab (THIS); |
|
|
1095 | |
|
|
1096 | int |
|
|
1097 | rxvt_term::XStringToKeysym (char *string) |
|
|
1098 | CODE: |
|
|
1099 | RETVAL = XStringToKeysym (string); |
|
|
1100 | OUTPUT: RETVAL |
|
|
1101 | |
|
|
1102 | char * |
|
|
1103 | rxvt_term::XKeysymToString (int sym) |
|
|
1104 | CODE: |
|
|
1105 | RETVAL = XKeysymToString (sym); |
|
|
1106 | OUTPUT: RETVAL |
|
|
1107 | |
|
|
1108 | int |
|
|
1109 | rxvt_term::XKeysymToKeycode (int sym) |
|
|
1110 | CODE: |
|
|
1111 | RETVAL = XKeysymToKeycode (THIS->dpy, sym); |
|
|
1112 | OUTPUT: RETVAL |
|
|
1113 | |
|
|
1114 | int |
|
|
1115 | rxvt_term::XKeycodeToKeysym (int code, int index) |
|
|
1116 | CODE: |
|
|
1117 | RETVAL = XKeycodeToKeysym (THIS->dpy, code, index); |
|
|
1118 | OUTPUT: RETVAL |
1084 | |
1119 | |
1085 | int |
1120 | int |
1086 | rxvt_term::strwidth (SV *str) |
1121 | rxvt_term::strwidth (SV *str) |
1087 | CODE: |
1122 | CODE: |
1088 | { |
1123 | { |