|
|
@ -11,6 +11,7 @@ abstract class Entry |
|
|
|
protected int $_length = 1024; |
|
|
|
protected int $_length = 1024; |
|
|
|
protected string $_placeholder = ''; |
|
|
|
protected string $_placeholder = ''; |
|
|
|
protected string $_value = ''; |
|
|
|
protected string $_value = ''; |
|
|
|
|
|
|
|
protected bool $_visible = true; |
|
|
|
|
|
|
|
|
|
|
|
public function __construct() |
|
|
|
public function __construct() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -28,6 +29,10 @@ abstract class Entry |
|
|
|
$this->_value |
|
|
|
$this->_value |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->gtk->set_visibility( |
|
|
|
|
|
|
|
$this->_value |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Render |
|
|
|
// Render |
|
|
|
$this->gtk->show(); |
|
|
|
$this->gtk->show(); |
|
|
|
|
|
|
|
|
|
|
@ -101,6 +106,15 @@ abstract class Entry |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function setVisible( |
|
|
|
|
|
|
|
?bool $value = null |
|
|
|
|
|
|
|
): void |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->gtk->set_visibility( |
|
|
|
|
|
|
|
is_null($value) ? $this->_visibility : $value |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getLength(): ?int |
|
|
|
public function getLength(): ?int |
|
|
|
{ |
|
|
|
{ |
|
|
|
return $this->gtk->get_max_length(); |
|
|
|
return $this->gtk->get_max_length(); |
|
|
@ -115,4 +129,9 @@ abstract class Entry |
|
|
|
{ |
|
|
|
{ |
|
|
|
return $this->gtk->get_text(); |
|
|
|
return $this->gtk->get_text(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function getVisible(): ?bool |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->gtk->get_visible(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |