1 Star 0 Fork 0

李超 / gotk3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
window_since_3_16.go 500 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Same copyright and license as the rest of the files in this project
// +build !gtk_3_6,!gtk_3_8,!gtk_3_10,!gtk_3_12,!gtk_3_14
package gtk
// #include <gtk/gtk.h>
import "C"
import (
"unsafe"
"github.com/gotk3/gotk3/glib"
)
// GetTitlebar is a wrapper around gtk_window_get_titlebar().
// TODO: Use IWidget here
func (v *Window) GetTitlebar() *Widget {
c := C.gtk_window_get_titlebar(v.native())
if c == nil {
return nil
}
obj := glib.Take(unsafe.Pointer(c))
return wrapWidget(obj)
}
1
https://gitee.com/telhello1/gotk3.git
git@gitee.com:telhello1/gotk3.git
telhello1
gotk3
gotk3
v0.4.0

搜索帮助

53164aa7 5694891 3bd8fe86 5694891