… | |
… | |
1115 | Converts rxvt-unicodes text reprsentation into a perl string. See |
1115 | Converts rxvt-unicodes text reprsentation into a perl string. See |
1116 | C<< $term->ROW_t >> for details. |
1116 | C<< $term->ROW_t >> for details. |
1117 | |
1117 | |
1118 | =item $success = $term->grab_button ($button, $modifiermask) |
1118 | =item $success = $term->grab_button ($button, $modifiermask) |
1119 | |
1119 | |
1120 | Registers a synchronous button grab. See XGrabButton. |
1120 | Registers a synchronous button grab. See the XGrabButton manpage. |
1121 | |
1121 | |
1122 | =item $success = $term->grab ($eventtime[, $sync]) |
1122 | =item $success = $term->grab ($eventtime[, $sync]) |
1123 | |
1123 | |
1124 | Calls XGrabPointer and XGrabKeyboard in asynchronous (default) or |
1124 | Calls XGrabPointer and XGrabKeyboard in asynchronous (default) or |
1125 | synchronous (C<$sync> is true). Also remembers the grab timestampe. |
1125 | synchronous (C<$sync> is true). Also remembers the grab timestampe. |
… | |
… | |
1191 | } |
1191 | } |
1192 | |
1192 | |
1193 | sub add_button { |
1193 | sub add_button { |
1194 | my ($self, $text, $cb) = @_; |
1194 | my ($self, $text, $cb) = @_; |
1195 | |
1195 | |
1196 | $self->add_item ({ type => "button", text => "[ $text ]", activate => $cb}); |
1196 | $self->add_item ({ type => "button", text => $text, activate => $cb}); |
1197 | } |
1197 | } |
1198 | |
1198 | |
1199 | sub add_toggle { |
1199 | sub add_toggle { |
1200 | my ($self, $text, $cb, $value) = @_; |
1200 | my ($self, $text, $cb, $value) = @_; |
1201 | |
1201 | |