mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement setText method
This commit is contained in:
parent
50460d3928
commit
aea00e602f
1 changed files with 12 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ class Statusbar
|
|||
|
||||
// Defaults
|
||||
private int $_margin = 8;
|
||||
private string $_text = '';
|
||||
|
||||
public function __construct(
|
||||
\Yggverse\Yoda\Entity\Window\Tab\Address $address
|
||||
|
|
@ -48,4 +49,15 @@ class Statusbar
|
|||
$this->_margin
|
||||
);
|
||||
}
|
||||
|
||||
public function setText(
|
||||
?string $text = null
|
||||
): void
|
||||
{
|
||||
$this->gtk->set_text(
|
||||
is_null($text) ? $this->_text : trim(
|
||||
$text
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue