Folder

open class Folder : Manipulator

Identifies a folder manipulator. This class inherits from Manipulator.

  • Initializes a new instance of the Folder class associated with the specified container.

    Declaration

    Swift

    public init(container: ContainerNode)

    Parameters

    container

    The ContainerNode associated with this Folder.

    Return Value

    The newly created Folder object.

  • Draws the Folder at the specified canvas.

    Declaration

    Swift

    open override func draw(_ canvas: Canvas)

    Parameters

    canvas

    The canvas onto which the folder is drawn.

  • Checks if the specified point is within the bounds of this Folder.

    Declaration

    Swift

    open override func hitTest(_ point: Point) -> Bool

    Parameters

    point

    The point to test.

    Return Value

    true if the Folder contains point; otherwise false.

  • Handles the onClick event.

    Declaration

    Swift

    open override func onClick(_ point: Point)

    Parameters

    point

    The point where the user has clicked.

  • Gets the ContainerNode of this Folder.

    Declaration

    Swift

    open var container: ContainerNode { get }