WorkspaceLayout

@objcMembers open class WorkspaceLayout: Layout

Stores information on how to render and position a Workspace on-screen.

  • Flag that should be used when the canvas size of the workspace has been updated.

    Declaration

    Swift

    public static let Flag_UpdateCanvasSize = LayoutFlag(0)
  • Returns all visible layouts associated with every block inside self.workspace.allBlocks.

    Declaration

    Swift

    open func allVisibleBlockLayoutsInWorkspace() -> [BlockLayout]

    Return Value

    A list of all visible BlockLayout objects associated with every block in this workspace.

  • Appends a blockGroupLayout to self.blockGroupLayouts and sets its parentLayout to this instance.

    Declaration

    Swift

    open func appendBlockGroupLayout(_ blockGroupLayout: BlockGroupLayout, updateLayout: Bool = true)
  • Removes a given block group layout from self.blockGroupLayouts and sets its parentLayout to nil.

    Declaration

    Swift

    open func removeBlockGroupLayout(_ blockGroupLayout: BlockGroupLayout, updateLayout: Bool = true)
  • Removes all elements from self.blockGroupLayouts and sets their parentLayout to nil.

    Declaration

    Swift

    open func reset(updateLayout: Bool = true)
  • Brings the given block group layout to the front by setting its zIndex to the highest value in the workspace.

    Declaration

    Swift

    open func bringBlockGroupLayoutToFront(_ blockGroupLayout: BlockGroupLayout?)
  • Updates the required size of this layout based on the current positions of all blocks.

    Declaration

    Swift

    open func updateCanvasSize()