grid-ios 1.0.7 Documentation

Class Pixel​Range

public class PixelRange  
  • Pixel Range

Initializers

init(_:​_:​)

public init(_ topLeft: Pixel, _ bottomRight: Pixel)  
  • Initialize
  • @param topLeft
  •        top left pixel
    
  • @param bottomRight
  •        bottom right pixel
    

Properties

top​Left

public var topLeft: Pixel
  • Top left pixel

bottom​Right

public var bottomRight: Pixel
  • Bottom right pixel

min​X

public var minX: Float  
  • Get the minimum x pixel
  • @return minimum x pixel

min​Y

public var minY: Float  
  • Get the minimum y pixel
  • @return minimum y pixel

max​X

public var maxX: Float  
  • Get the maximum x pixel
  • @return maximum x pixel

max​Y

public var maxY: Float  
  • Get the maximum y pixel
  • @return maximum y pixel

left

public var left: Float  
  • Get the left pixel
  • @return left pixel

top

public var top: Float  
  • Get the top pixel
  • @return top pixel

right

public var right: Float  
  • Get the right pixel
  • @return right pixel

bottom

public var bottom: Float  
  • Get the bottom pixel
  • @return bottom pixel

width

public var width: Float  
  • Get the pixel width
  • @return pixel width

height

public var height: Float  
  • Get the pixel height
  • @return pixel height