… | |
… | |
800 | const_iv (XIMSecondary), |
800 | const_iv (XIMSecondary), |
801 | const_iv (XIMTertiary), |
801 | const_iv (XIMTertiary), |
802 | const_iv (XIMVisibleToForward), |
802 | const_iv (XIMVisibleToForward), |
803 | const_iv (XIMVisibleToBackword), |
803 | const_iv (XIMVisibleToBackword), |
804 | const_iv (XIMVisibleToCenter), |
804 | const_iv (XIMVisibleToCenter), |
805 | #if HAVE_XRENDER |
805 | #if XRENDER |
806 | const_iv (PictStandardARGB32), |
806 | const_iv (PictStandardARGB32), |
807 | const_iv (PictStandardRGB24), |
807 | const_iv (PictStandardRGB24), |
808 | const_iv (PictStandardA8), |
808 | const_iv (PictStandardA8), |
809 | const_iv (PictStandardA4), |
809 | const_iv (PictStandardA4), |
810 | const_iv (PictStandardA1), |
810 | const_iv (PictStandardA1), |
… | |
… | |
978 | rxvt_term::destroy () |
978 | rxvt_term::destroy () |
979 | |
979 | |
980 | void |
980 | void |
981 | rxvt_term::set_should_invoke (int htype, int inc) |
981 | rxvt_term::set_should_invoke (int htype, int inc) |
982 | CODE: |
982 | CODE: |
983 | THIS->perl.should_invoke [htype] += inc; |
983 | uint8_t &count = THIS->perl.should_invoke [htype]; |
|
|
984 | uint8_t prev = count; |
|
|
985 | count += inc; |
|
|
986 | if (!prev != !count) |
|
|
987 | { |
|
|
988 | // hook status changed, react |
|
|
989 | switch (htype) |
|
|
990 | { |
|
|
991 | case HOOK_POSITION_CHANGE: |
|
|
992 | if (count) |
|
|
993 | THIS->get_window_origin (THIS->parent_x, THIS->parent_y); |
|
|
994 | } |
|
|
995 | } |
984 | |
996 | |
985 | int |
997 | int |
986 | rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) |
998 | rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) |
987 | CODE: |
999 | CODE: |
988 | RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1, |
1000 | RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1, |
… | |
… | |
1245 | CODE: |
1257 | CODE: |
1246 | RETVAL = THIS->parent; |
1258 | RETVAL = THIS->parent; |
1247 | OUTPUT: |
1259 | OUTPUT: |
1248 | RETVAL |
1260 | RETVAL |
1249 | |
1261 | |
1250 | Window |
1262 | int |
1251 | rxvt_term::vt () |
1263 | rxvt_term::parent_x () |
1252 | CODE: |
1264 | CODE: |
1253 | RETVAL = THIS->vt; |
1265 | RETVAL = THIS->parent_x; |
|
|
1266 | OUTPUT: |
|
|
1267 | RETVAL |
|
|
1268 | |
|
|
1269 | int |
|
|
1270 | rxvt_term::parent_y () |
|
|
1271 | CODE: |
|
|
1272 | RETVAL = THIS->parent_y; |
1254 | OUTPUT: |
1273 | OUTPUT: |
1255 | RETVAL |
1274 | RETVAL |
1256 | |
1275 | |
1257 | void |
1276 | void |
1258 | rxvt_term::vt_emask_add (U32 emask) |
1277 | rxvt_term::vt_emask_add (U32 emask) |
… | |
… | |
1934 | } |
1953 | } |
1935 | |
1954 | |
1936 | ############################################################################# |
1955 | ############################################################################# |
1937 | # fancy bg bloatstuff (TODO: should be moved up somewhere) |
1956 | # fancy bg bloatstuff (TODO: should be moved up somewhere) |
1938 | |
1957 | |
|
|
1958 | # TODO: ugly |
|
|
1959 | void |
|
|
1960 | rxvt_term::get_geometry () |
|
|
1961 | PPCODE: |
|
|
1962 | EXTEND (SP, 4); |
|
|
1963 | PUSHs (sv_2mortal (newSViv (THIS->parent_x))); |
|
|
1964 | PUSHs (sv_2mortal (newSViv (THIS->parent_y))); |
|
|
1965 | PUSHs (sv_2mortal (newSViv (THIS->szHint.width))); |
|
|
1966 | PUSHs (sv_2mortal (newSViv (THIS->szHint.height))); |
|
|
1967 | |
1939 | #if HAVE_IMG |
1968 | #if HAVE_IMG |
1940 | |
1969 | |
1941 | rxvt_img * |
1970 | rxvt_img * |
1942 | rxvt_term::new_img (SV *format, int width, int height) |
1971 | rxvt_term::new_img (SV *format, int width, int height) |
1943 | CODE: |
1972 | CODE: |
… | |
… | |
2095 | void |
2124 | void |
2096 | rxvt_img::unshare () |
2125 | rxvt_img::unshare () |
2097 | |
2126 | |
2098 | rxvt_img * |
2127 | rxvt_img * |
2099 | rxvt_img::clone () |
2128 | rxvt_img::clone () |
2100 | |
|
|
2101 | rxvt_img * |
|
|
2102 | rxvt_img::scale (int new_width, int new_height) |
|
|
2103 | |
2129 | |
2104 | rxvt_img * |
2130 | rxvt_img * |
2105 | rxvt_img::transform (int new_width, int new_height, int repeat, NV p11, NV p12, NV p13, NV p21, NV p22, NV p23, NV p31, NV p32, NV p33) |
2131 | rxvt_img::transform (int new_width, int new_height, int repeat, NV p11, NV p12, NV p13, NV p21, NV p22, NV p23, NV p31, NV p32, NV p33) |
2106 | INIT: |
2132 | INIT: |
2107 | double matrix[9] = { |
2133 | double matrix[9] = { |
… | |
… | |
2109 | p21, p22, p23, |
2135 | p21, p22, p23, |
2110 | p31, p32, p33 |
2136 | p31, p32, p33 |
2111 | }; |
2137 | }; |
2112 | C_ARGS: new_width, new_height, repeat, matrix |
2138 | C_ARGS: new_width, new_height, repeat, matrix |
2113 | |
2139 | |
|
|
2140 | rxvt_img * |
|
|
2141 | rxvt_img::scale (int new_width, int new_height) |
|
|
2142 | |
|
|
2143 | rxvt_img * |
|
|
2144 | rxvt_img::rotate (int new_width, int new_height, int repeat, int x, int y, NV phi) |
|
|
2145 | |
2114 | #endif |
2146 | #endif |
2115 | |
2147 | |