Ai
1 Star 0 Fork 1

pispanda/walk

forked from arao/walk 
Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
point.go 514 Bytes
Copy Edit Raw Blame History
Simon Rozman authored 2019-09-26 21:08 +08:00 . DPI: Merge PointPixels to Point
// Copyright 2010 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build windows
package walk
import "github.com/lxn/win"
// Point defines 2D coordinate in 1/96" units ot native pixels.
type Point struct {
X, Y int
}
func (p Point) toPOINT() win.POINT {
return win.POINT{
X: int32(p.X),
Y: int32(p.Y),
}
}
func pointPixelsFromPOINT(p win.POINT) Point {
return Point{
X: int(p.X),
Y: int(p.Y),
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/pispanda/walk.git
git@gitee.com:pispanda/walk.git
pispanda
walk
walk
a5fea13dfac9

Search