// Rect gets an element's rectangle
Rect gets an element's rectangle
// Rect gets an element ' s rectangle
func (e *Element) Rect() (Rect, error) {
	resp, err := e.el.Rectangle()
	if err != nil {
		return Rect{}, err
	}
	return Rect{
		X:      resp.Rectangle.X,
		Y:      resp.Rectangle.Y,
		Width:  int(resp.Rectangle.Width),
		Height: int(resp.Rectangle.Height),
	}, nil
}
func ( e * Element ) Rect ( ) ( Rect , error ) { resp , err := e . el . Rectangle ( ) if err != nil { return Rect { } , err } return Rect { X : resp . Rectangle . X , Y : resp . Rectangle . Y , Width : int ( resp . Rectangle . Width ) , Height : int ( resp . Rectangle . Height ) , } , nil }
Rect gets an element's rectangle
Rect gets an element ' s rectangle