change menu namespace

This commit is contained in:
yggverse 2024-07-06 05:23:18 +03:00
parent 006f039282
commit 445b6c06fc
5 changed files with 19 additions and 19 deletions

View file

@ -0,0 +1,51 @@
<?php
declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser;
use \Yggverse\Yoda\Entity\Browser\Menu\History;
use \Yggverse\Yoda\Entity\Browser\Menu\Quit;
class Menu
{
public \GtkMenu $gtk;
// Dependencies
public \Yggverse\Yoda\Entity\Browser $browser;
// Requirements
public \Yggverse\Yoda\Entity\Browser\Menu\History $history;
public \Yggverse\Yoda\Entity\Browser\Menu\Quit $quit;
public function __construct(
\Yggverse\Yoda\Entity\Browser $browser
) {
// Init dependencies
$this->browser = $browser;
// Init menu
$this->gtk = new \GtkMenu;
// Init history
$this->history = new History(
$this
);
$this->gtk->append(
$this->history->gtk
);
// Init quit
$this->quit = new Quit(
$this
);
$this->gtk->append(
$this->quit->gtk
);
// Render
$this->gtk->show_all();
}
}