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