Sha256: 5d4c62aa5a447ac565df8aac0cbc866390c9afb044640449c90467d924dfd66e
Contents?: true
Size: 637 Bytes
Versions: 14
Compression:
Stored size: 637 Bytes
Contents
# @provides MotionKit::Layout # @provides MotionKit::NSViewHelpers # @requires MotionKit::TreeLayout module MotionKit class Layout < TreeLayout # platform specific default root view def default_root # child Layout classes will return *their* NSView subclass from self.targets view_class = self.class.targets || MotionKit.default_view_class view_class.alloc.initWithFrame([[0, 0], [0, 0]]) end def add_child(subview) target.addSubview(subview) end def remove_child(subview) subview.removeFromSuperview end end class NSViewHelpers < Layout targets NSView end end
Version data entries
14 entries across 14 versions & 1 rubygems