OverlayButton

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKOverlayButton)
open class OverlayButton : Button

An OverlayButton is used inside the workspaceView of a StackLayoutToolController. It is a regular button with a translucent black background.

  • Sets the images for the UIControl.State normal and disabled based on the given templated image. The alpha value of the image is reduced for the disabled state.

    Declaration

    Swift

    open func setImage(_ image: UIImage?)

    Parameters

    image

    The image for the UIControl.State normal and disabled.

  • Creates the default add button.

    Declaration

    Swift

    open class func makeAddButton() -> OverlayButton

    Return Value

    The default add button.

  • Creates the default delete button.

    Declaration

    Swift

    open class func makeDeleteButton() -> OverlayButton

    Return Value

    The default delete button.

  • Creates the default flip button.

    Declaration

    Swift

    open class func makeFlipButton() -> OverlayButton

    Return Value

    The default flip button.

  • Creates the default straighten button.

    Declaration

    Swift

    open class func makeStraightenButton() -> OverlayButton

    Return Value

    The default straighten button.

  • Creates the default bring to front button.

    Declaration

    Swift

    open class func makeToFrontButton() -> OverlayButton

    Return Value

    The default bring to front button.

  • Creates the default undo button.

    Declaration

    Swift

    open class func makeUndoButton() -> OverlayButton

    Return Value

    The default undo button.

  • Creates the default redo button.

    Declaration

    Swift

    open class func makeRedoButton() -> OverlayButton

    Return Value

    The default redo button.

  • Creates the default alignment button.

    Declaration

    Swift

    open class func makeAlignmentButton() -> OverlayButton

    Return Value

    The default alignment button.

  • Creates the default invert button.

    Declaration

    Swift

    open class func makeInvertButton() -> OverlayButton

    Return Value

    The default invert button.

  • Creates the default disable invert button.

    Declaration

    Swift

    open class func makeDisableInvertButton() -> OverlayButton

    Return Value

    The default disable invert button.