mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
init header navigation menu
This commit is contained in:
parent
b0b38581aa
commit
006f039282
6 changed files with 191 additions and 9 deletions
37
src/Entity/Browser/Header/Navigation.php
Normal file
37
src/Entity/Browser/Header/Navigation.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yggverse\Yoda\Entity\Browser\Header;
|
||||
|
||||
use \Yggverse\Yoda\Entity\Browser\Header\Navigation\Menu;
|
||||
|
||||
class Navigation
|
||||
{
|
||||
public \GtkMenuButton $gtk;
|
||||
|
||||
// Dependencies
|
||||
public \Yggverse\Yoda\Entity\Browser\Header $header;
|
||||
|
||||
// Requirements
|
||||
public \Yggverse\Yoda\Entity\Browser\Header\Navigation\Menu $menu;
|
||||
|
||||
public function __construct(
|
||||
\Yggverse\Yoda\Entity\Browser\Header $header
|
||||
) {
|
||||
// Init dependencies
|
||||
$this->header = $header;
|
||||
|
||||
// Init navigation container
|
||||
$this->gtk = new \GtkMenuButton;
|
||||
|
||||
// Init menu
|
||||
$this->menu = new Menu(
|
||||
$this
|
||||
);
|
||||
|
||||
$this->gtk->set_popup(
|
||||
$this->menu->gtk
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue