mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +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(
|
$this->gtk->connect(
|
||||||
'activate',
|
'activate',
|
||||||
function(
|
function(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
) {
|
) {
|
||||||
$this->_onActivate(
|
$this->_onActivate(
|
||||||
$entry
|
$entry,
|
||||||
|
$event
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -75,17 +77,20 @@ abstract class Entry
|
||||||
$this->gtk->connect(
|
$this->gtk->connect(
|
||||||
'focus-out-event',
|
'focus-out-event',
|
||||||
function (
|
function (
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
) {
|
) {
|
||||||
$this->_onFocusOut(
|
$this->_onFocusOut(
|
||||||
$entry
|
$entry,
|
||||||
|
$event
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract protected function _onActivate(
|
abstract protected function _onActivate(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
abstract protected function _onKeyRelease(
|
abstract protected function _onKeyRelease(
|
||||||
|
|
@ -98,7 +103,8 @@ abstract class Entry
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
abstract protected function _onFocusOut(
|
abstract protected function _onFocusOut(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
public function setLength(
|
public function setLength(
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb
|
||||||
private ?int $_changed = null;
|
private ?int $_changed = null;
|
||||||
|
|
||||||
protected function _onActivate(
|
protected function _onActivate(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
$this->navbar->page->open(
|
$this->navbar->page->open(
|
||||||
|
|
@ -58,7 +59,8 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navb
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _onFocusOut(
|
protected function _onFocusOut(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void
|
): void
|
||||||
{}
|
{}
|
||||||
}
|
}
|
||||||
|
|
@ -22,7 +22,8 @@ class Query extends \Yggverse\Yoda\Abstract\Entity\Entry
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _onActivate(
|
protected function _onActivate(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
$this->response->send();
|
$this->response->send();
|
||||||
|
|
@ -42,7 +43,8 @@ class Query extends \Yggverse\Yoda\Abstract\Entity\Entry
|
||||||
{}
|
{}
|
||||||
|
|
||||||
protected function _onFocusOut(
|
protected function _onFocusOut(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void
|
): void
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ class Filter extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Na
|
||||||
protected string $_placeholder = 'Search in history...';
|
protected string $_placeholder = 'Search in history...';
|
||||||
|
|
||||||
protected function _onActivate(
|
protected function _onActivate(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
$this->navbar->container->content->search(
|
$this->navbar->container->content->search(
|
||||||
|
|
@ -33,7 +34,8 @@ class Filter extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Na
|
||||||
{}
|
{}
|
||||||
|
|
||||||
protected function _onFocusOut(
|
protected function _onFocusOut(
|
||||||
\GtkEntry $entry
|
\GtkEntry $entry,
|
||||||
|
\GdkEvent $event
|
||||||
): void
|
): void
|
||||||
{}
|
{}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue