Sha256: 0fc1a7e246df3c908d0ff0c46650688d972e47d128d0b011c749ae201ed5dd76
Contents?: true
Size: 319 Bytes
Versions: 5
Compression:
Stored size: 319 Bytes
Contents
class CALayer include PurplishFrame::View def view_frame frame end def center=(pt) #We need to check because pt might be HIPoint or some Boxed type pt = pt.to_point if pt.respond_to? :to_point f = frame f.origin.x = pt.x-width/2 f.origin.y = pt.y-height/2 self.frame = f end end
Version data entries
5 entries across 5 versions & 1 rubygems