|
|
|
@ -12,6 +12,7 @@ abstract class Entry
@@ -12,6 +12,7 @@ abstract class Entry
|
|
|
|
|
protected string $_placeholder = ''; |
|
|
|
|
protected string $_value = ''; |
|
|
|
|
protected bool $_visible = true; |
|
|
|
|
protected bool $_focus = false; |
|
|
|
|
|
|
|
|
|
public function __construct() |
|
|
|
|
{ |
|
|
|
@ -33,6 +34,11 @@ abstract class Entry
@@ -33,6 +34,11 @@ abstract class Entry
|
|
|
|
|
$this->_visible |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if ($this->_focus) |
|
|
|
|
{ |
|
|
|
|
$this->gtk->grab_focus(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Render |
|
|
|
|
$this->gtk->show(); |
|
|
|
|
|
|
|
|
@ -134,4 +140,9 @@ abstract class Entry
@@ -134,4 +140,9 @@ abstract class Entry
|
|
|
|
|
{ |
|
|
|
|
return $this->gtk->get_visibility(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function focus(): void |
|
|
|
|
{ |
|
|
|
|
$this->gtk->grab_focus(); |
|
|
|
|
} |
|
|
|
|
} |