pgtk/gtk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pgtk/gtk

最新稳定版本:0.1.1

Composer 安装命令:

composer require pgtk/gtk

包简介

README 文档

README

Requirement

  • php (8.1)
  • ext-FFI
  • gtk-4

Installation

composer require pgtk/gtk

Example:

alt text

require_once __DIR__ . '/vendor/autoload.php';

use PGtk\Gtk\Gtk\Window;
use PGtk\Gtk\Gtk\HeaderBar;
use PGtk\Gtk\Gtk\Label;
use PGtk\Gtk\GLib\MainLoop;

$run = true;

$window = new Window();
$window->widget->setSizeRequest(100, 100);
$window->setTitle('Window');

$headerBar = new HeaderBar();
$headerBar->setDecorationLayout('menu:close');
$window->setTitlebar($headerBar);

$label = new Label('label');

$window->setChild($label);

$loop = new MainLoop();
$window->connect('destroy', function (Window $window, MainLoop $loop) {
    $loop->quit();
}, $loop);

$window->widget->show();

$loop->run();

Supported platforms and features

Platforms

Platform Status
Linux
Windows

Examples:

Contributing

Feel free to open issues and make PR. Contributions are welcome.

统计信息

  • 总下载量: 62
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 21
  • Watchers: 4
  • Forks: 3
  • 开发语言: C

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固