2 Star 1 Fork 1

progmboy / gtkduilib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

gtkduilib

duilib向gtk的移植

##编译

windows:

install [msys2](https://msys2.github.io/)
then install gtk3.0.x from msys2 shell
install codeblocks
open the workspace and build

linux (ubuntu):

sudo apt-get install codebloks libgtk3.0xxxx
open the workspace and build

##Demo 以前弄好的Demo找不到了但是有截图.

player run in windows:

player_windows

player run in ubuntu:

player_ubuntu

360safe run in ubuntu:

360demo

##和原版的duilib有啥不同 基本上兼容原版duilib的格式,主要有下面几种不同.

  1. 全部使用unicode, 便于移植, windows A/W很是闹心呀.
  2. 绘制字体使用pango的接口,没有保留原版的绘制接口.
  3. 好多LPCTSTR类型的参数使用const CUIString& 传递.
  4. 使用pugixml作为xml解析.
  5. 直接使用gdk-pixbuf加载图片

##备注

  1. 做这个的目的其实是为了学习下gtk.duilib的框架很好,把windows消息机制移植到gtk的机制,控件代码基本上都不用改。
  2. gtk for windows的bug多多,建议还是在linux下弄
  3. gtk 在windows下是支持加载系统字体的,但是只支持english name, 大家写xml的时候注意下。
  4. 不喜勿喷, 谢谢 ^_^
  5. 欢迎pull request

##TODO: 太多了。

  • 上传demo
  • 键盘事件
  • EDIT控件,树控件, webview
  • 移植原版demo
  • ...
The MIT License (MIT) Copyright (c) 2015 progmboy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

duilib for gtk 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/progmboy/gtkduilib.git
git@gitee.com:progmboy/gtkduilib.git
progmboy
gtkduilib
gtkduilib
master

搜索帮助