func (self *Image) SetBounds(bounds geom.Rect) { self.Control.SetBounds(bounds) self.area = self.Layout().Layout(bounds.Size(), self.imageSize()) }
func makeCGRect(r geom.Rect) C.CGRect { return C.CGRect{ origin: makeCGPoint(r.Origin()), size: makeCGSize(r.Size()), } }