Users will not normally directly create instances of ContainerView, but only use it through its subclasses. It provides the basic mechanisms for container views of various kinds, which are used for placing and grouping widgets in a window.
Container views are meant for placing and grouping child views and widgets. While they accept key actions, many do not accept mouse clicks or drags. The exception is SCTopView and its subclasses.
An automatic layout management for a container. Currently the only one existing is FlowLayout.
arg1 |
A convenience utility which sets decorator to FlowLayout and returns the decorator. See FlowLayout for examples.
margin |
An instance of Point. |
gap |
An instance of Point. |
An array containing all the views (children) contained in the container.
Adds a view to children. The placement of the child view will depend on the decorator, and the child's bounds. Normally you don't need to call this directly, since subviews call it automatically when you create them.
child |
Removes all children from the view.
The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.
argParent | |
argBounds |
Private method.
child |
Private method.