init tab menu elements

This commit is contained in:
yggverse 2024-07-06 05:59:51 +03:00
parent c5aee8f861
commit 1459667dc7
4 changed files with 152 additions and 2 deletions

View file

@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser\Menu\Tab;
class Close
{
public \GtkMenuItem $gtk;
// Dependencies
public \Yggverse\Yoda\Entity\Browser\Menu\Tab $tab;
// Defaults
private string $_label = 'Close';
public function __construct(
\Yggverse\Yoda\Entity\Browser\Menu\Tab $tab
) {
// Init dependencies
$this->tab = $tab;
// Init menu item
$this->gtk = \GtkMenuItem::new_with_label(
$this->_label
);
// Int events
$this->gtk->connect(
'activate',
function()
{
// @TODO
}
);
}
}