refactor to separated entities, init abstractions

This commit is contained in:
yggverse 2024-07-03 02:34:14 +03:00
parent 08c9fe76e5
commit 90acc3ac2d
47 changed files with 1927 additions and 2069 deletions

View file

@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Window\Tab\Address;
class Title
{
public \GtkLabel $gtk;
public \Yggverse\Yoda\Entity\Window\Tab\Address $address;
// Defaults
private int $_ellipsize = 3;
private int $_length = 12;
private string $_value = 'New address';
public function __construct(
\Yggverse\Yoda\Entity\Window\Tab\Address $address,
) {
$this->address = $address;
$this->gtk = new \GtkLabel(
$this->_value
);
$this->gtk->set_width_chars(
$this->_length
);
$this->gtk->set_ellipsize(
$this->_ellipsize
);
}
}