mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
50 lines
No EOL
821 B
PHP
50 lines
No EOL
821 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Yggverse\Yoda\Entity\Browser;
|
|
|
|
use \Yggverse\Yoda\Entity\Browser;
|
|
|
|
class Container
|
|
{
|
|
public \GtkBox $gtk;
|
|
|
|
// Dependencies
|
|
public Browser $browser;
|
|
|
|
// Requirements
|
|
public Container\Tab $tab;
|
|
|
|
public function __construct(
|
|
Browser $browser
|
|
) {
|
|
// Init dependency
|
|
$this->browser = $browser;
|
|
|
|
// Init container
|
|
$this->gtk = new \GtkBox(
|
|
\GtkOrientation::VERTICAL
|
|
);
|
|
|
|
// Init tab
|
|
$this->tab = new Container\Tab(
|
|
$this
|
|
);
|
|
|
|
$this->gtk->pack_start(
|
|
$this->tab->gtk,
|
|
true,
|
|
true,
|
|
0
|
|
);
|
|
|
|
// Render
|
|
$this->gtk->show();
|
|
}
|
|
|
|
public function refresh()
|
|
{
|
|
// @TODO
|
|
}
|
|
} |