EFIntSize

@objcMembers
public final class EFIntSize : NSObject

A structure that contains width and height values.

Note

This is like CGSize, but with Int instead of CGFloat.
  • A width value.

    Declaration

    Swift

    public let width: Int
  • A height value.

    Declaration

    Swift

    public let height: Int
  • Creates a size with dimensions specified as integer values.

    Note

    Creates a size with zero width and height if no argument is specified.

    Declaration

    Swift

    public init(width: Int = 0, height: Int = 0)

    Parameters

    width

    The width value.

    height

    The height value.

  • Converts CGSize to EFIntSize.

    Note

    width and height will be truncated to Int.

    Declaration

    Swift

    public convenience init(size: CGSize)

    Parameters

    size

    the CGSize to convert.

  • Representation as CGSize.

    Declaration

    Swift

    public var cgSize: CGSize { get }