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