Beispiel #1
0
func (c *control) GetSize() Vector {
	rect := w32.GetWindowRect(c.handle)
	return Vector{int(rect.Right - rect.Left), int(rect.Bottom - rect.Top)}
}
Beispiel #2
0
func (w *Window) GetSize() Vector {
	rect := w32.GetWindowRect(w.handle)
	return Vector{int(rect.Right - rect.Left), int(rect.Bottom - rect.Top)}
}
Beispiel #3
0
func (c *control) GetPosition() Vector {
	rect := w32.GetWindowRect(c.handle)
	return Vector{int(rect.Left), int(rect.Top)}
}
Beispiel #4
0
func (w *Window) GetPosition() Vector {
	rect := w32.GetWindowRect(w.handle)
	return Vector{int(rect.Left), int(rect.Top)}
}