1 Star 0 Fork 0

陈慧颖/gooid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rect.go 314 Bytes
一键复制 编辑 原始数据 按行查看 历史
gooid 提交于 2018-11-20 23:05 +08:00 . init gooid
package app
/*
#include <android/rect.h>
*/
import "C"
//import "unsafe"
type Rect C.ARect
func (rc *Rect) cptr() *C.ARect {
return (*C.ARect)(rc)
}
func NewRect(l, t, r, b int) Rect {
var rc Rect
rc.left = C.int32_t(l)
rc.top = C.int32_t(t)
rc.right = C.int32_t(r)
rc.bottom = C.int32_t(b)
return rc
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/githubchy/gooid.git
git@gitee.com:githubchy/gooid.git
githubchy
gooid
gooid
2c72341a60e5

搜索帮助