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