public struct LayoutFlag: OptionSet
Flags for marking which parts of a
Layout that need to be updated by its delegate.
A total of 64 flags can be defined:
- Common flags are defined by Layout.Flag_*, up to a maximum of 14 flags, which start at the highest order bit (ie. 63, 62, etc).
- Subclasses of
Layoutcan define up to 50 custom layout flags, which start at the lowest order bit (ie. 0, 1, etc).
Layoutsubclasses looking to define a custom layout flag.
NoteAn assertion is made in this method that
lowestOrderBitIndex < 50.
public init(_ lowestOrderBitIndex: UInt64)
public init(rawValue: UInt64)
Return if a flag has been set for this value.
public func hasFlagSet() -> Bool
The equivalent of
self != LayoutFlag.None.
public func intersectsWith(_ other: LayoutFlag) -> Bool
selfshares at least one common flag with