mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
delegate GdkEvent object
This commit is contained in:
parent
faa85d7292
commit
3334d40975
4 changed files with 24 additions and 12 deletions
|
|
@ -40,10 +40,12 @@ abstract class Entry
|
|||
$this->gtk->connect(
|
||||
'activate',
|
||||
function(
|
||||
\GtkEntry $entry
|
||||
\GtkEntry $entry,
|
||||
\GdkEvent $event
|
||||
) {
|
||||
$this->_onActivate(
|
||||
$entry
|
||||
$entry,
|
||||
$event
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
@ -75,17 +77,20 @@ abstract class Entry
|
|||
$this->gtk->connect(
|
||||
'focus-out-event',
|
||||
function (
|
||||
\GtkEntry $entry
|
||||
\GtkEntry $entry,
|
||||
\GdkEvent $event
|
||||
) {
|
||||
$this->_onFocusOut(
|
||||
$entry
|
||||
$entry,
|
||||
$event
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
abstract protected function _onActivate(
|
||||
\GtkEntry $entry
|
||||
\GtkEntry $entry,
|
||||
\GdkEvent $event
|
||||
): void;
|
||||
|
||||
abstract protected function _onKeyRelease(
|
||||
|
|
@ -98,7 +103,8 @@ abstract class Entry
|
|||
): void;
|
||||
|
||||
abstract protected function _onFocusOut(
|
||||
\GtkEntry $entry
|
||||
\GtkEntry $entry,
|
||||
\GdkEvent $event
|
||||
): void;
|
||||
|
||||
public function setLength(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue