Class
GSShapeGroup
A shape group combines zero or more shapes into a single shape, forming a shape tree.
Declaration
class GSShapeGroupDeclaration
@interface GSShapeGroup : GSShapeDeclaration
class GSShapeGroup(GSShape)Overview
The shapes in the
shapesarray of a group are its direct members. Direct members of a group have a relative depth of1.The members of a group are all shapes that the group contains, directly, or more deeply in nested groups. Members of a group have a relative depth greater than or equal to
1.
Topics
Creating a Shape Group
Creates a new shapes group with a given ID.
Creates the root group for a layer.
Identity
The group ID reserved for the root group of a layer.
The per-layer identifier of the group.
Whether the group is the root of the shape tree.
Direct Members
The direct members of the group.
Membership
Returns whether the given shape is a member of the group.
Returns the relative depth of the shape within the group.
The range of layer shape indices that includes all group members and the index of the group shape itself (which is always at the last index of the range).
Traversal
Calls the block with every member of the group, including nested shapes.
Drawing
Draw a subset of the group into pens.
Copying
Creates a copy of the group and all of its members.
Structures
Instance Methods
Calls the block such that the shapes of the group are divided into composition units ready for display.
Topics
Creating a Shape Group
Creates a new shapes group with a given ID.
Creates the root group for a layer.
Identity
The group ID reserved for the root group of a layer.
The per-layer identifier of the group.
Whether the group is the root of the shape tree.
Direct Members
The direct members of the group.
Membership
Returns whether the given shape is a member of the group.
Returns the relative depth of the shape within the group.
The range of layer shape indices that includes all group members and the index of the group shape itself (which is always at the last index of the range).
Traversal
Calls the block with every member of the group, including nested shapes.
Drawing
Draw a subset of the group into pens.
Copying
Creates a copy of the group and all of its members.
Instance Methods
Calls the block such that the shapes of the group are divided into composition units ready for display.
Other
Relationships
Inherits From
Conforms To
Foundation.NSCopying- GSContainerProtocol
- GSSelectableElementProtocol
- GSUserDataProtocol
ObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.Hashable
Relationships
Inherits From
Conforms To
See Also
Shapes
An abstract base class for graphical elements stored in a glyph layer.
A graphical path made of nodes.
A reference to another glyph placed as a shape in a glyph layer.