mirror of https://github.com/YGGverse/Yoda.git
yggverse
4 months ago
2 changed files with 46 additions and 6 deletions
@ -0,0 +1,34 @@
@@ -0,0 +1,34 @@
|
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
namespace Yggverse\Yoda\Entity\Browser\Container\Page\Content; |
||||
|
||||
use \Yggverse\Yoda\Entity\Browser\Container\Page\Content; |
||||
|
||||
class Image |
||||
{ |
||||
public \GtkImage $gtk; |
||||
|
||||
// Dependencies |
||||
public Content $content; |
||||
|
||||
public function __construct( |
||||
Content $content |
||||
) { |
||||
// Init dependency |
||||
$this->content = $content; |
||||
|
||||
// Init image object |
||||
$this->gtk = new \GtkImage; |
||||
} |
||||
|
||||
public function set( |
||||
string $data |
||||
): void |
||||
{ |
||||
$this->gtk->new_from_resource( |
||||
$data |
||||
); |
||||
} |
||||
} |
Loading…
Reference in new issue