コード例 #1
0
ファイル: controls.go プロジェクト: yamnikov-oleg/wingo
func (c *control) GetSize() Vector {
	rect := w32.GetWindowRect(c.handle)
	return Vector{int(rect.Right - rect.Left), int(rect.Bottom - rect.Top)}
}
コード例 #2
0
ファイル: window.go プロジェクト: yamnikov-oleg/wingo
func (w *Window) GetSize() Vector {
	rect := w32.GetWindowRect(w.handle)
	return Vector{int(rect.Right - rect.Left), int(rect.Bottom - rect.Top)}
}
コード例 #3
0
ファイル: controls.go プロジェクト: yamnikov-oleg/wingo
func (c *control) GetPosition() Vector {
	rect := w32.GetWindowRect(c.handle)
	return Vector{int(rect.Left), int(rect.Top)}
}
コード例 #4
0
ファイル: window.go プロジェクト: yamnikov-oleg/wingo
func (w *Window) GetPosition() Vector {
	rect := w32.GetWindowRect(w.handle)
	return Vector{int(rect.Left), int(rect.Top)}
}