GPKGPixelBounds
Objective-C
@interface GPKGPixelBounds : NSObject
Swift
class GPKGPixelBounds : NSObject
Expanded pixel bounds from a point or location. Stored in directional left, up, right, and down pixels
-
Pixels left of the location
Declaration
Objective-C
@property (nonatomic) double left;
Swift
var left: Double { get set }
-
Pixels up of the location
Declaration
Objective-C
@property (nonatomic) double up;
Swift
var up: Double { get set }
-
Pixels right of the location
Declaration
Objective-C
@property (nonatomic) double right;
Swift
var right: Double { get set }
-
Pixels down of the location
Declaration
Objective-C
@property (nonatomic) double down;
Swift
var down: Double { get set }
-
Create
Declaration
Objective-C
+ (GPKGPixelBounds *)create;
Swift
class func create() -> GPKGPixelBounds!
Return Value
new pixel bounds
-
Create
Declaration
Objective-C
+ (GPKGPixelBounds *)createWithLength:(double)length;
Swift
class func create(withLength length: Double) -> GPKGPixelBounds!
Parameters
length
length in all directions
Return Value
new pixel bounds
-
Create
Declaration
Objective-C
+ (GPKGPixelBounds *)createWithWidth:(double)width andHeight:(double)height;
Swift
class func create(withWidth width: Double, andHeight height: Double) -> GPKGPixelBounds!
Parameters
width
length both left and right
height
height both up and down
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
+ (GPKGPixelBounds *)createWithLeft:(double)left andUp:(double)up andRight:(double)right andDown:(double)down;
Swift
class func create(withLeft left: Double, andUp up: Double, andRight right: Double, andDown down: Double) -> GPKGPixelBounds!
Parameters
left
left length
up
up length
right
right length
down
down length
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)initWithLength:(double)length;
Swift
init!(length: Double)
Parameters
length
length in all directions
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)initWithWidth:(double)width andHeight:(double)height;
Swift
init!(width: Double, andHeight height: Double)
Parameters
width
length both left and right
height
height both up and down
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)initWithLeft:(double)left andUp:(double)up andRight:(double)right andDown:(double)down;
Swift
init!(left: Double, andUp up: Double, andRight right: Double, andDown down: Double)
Parameters
left
left length
up
up length
right
right length
down
down length
Return Value
new pixel bounds
-
Expand the left pixels if greater than the current value
Declaration
Objective-C
- (void)expandLeft:(double)left;
Swift
func expandLeft(_ left: Double)
Parameters
left
left pixels
-
Expand the up pixels if greater than the current value
Declaration
Objective-C
- (void)expandUp:(double)up;
Swift
func expandUp(_ up: Double)
Parameters
up
up pixels
-
Expand the right pixels if greater than the current value
Declaration
Objective-C
- (void)expandRight:(double)right;
Swift
func expandRight(_ right: Double)
Parameters
right
right pixels
-
Expand the down pixels if greater than the current value
Declaration
Objective-C
- (void)expandDown:(double)down;
Swift
func expandDown(_ down: Double)
Parameters
down
down pixels
-
Expand the width pixels if greater than the current values
Declaration
Objective-C
- (void)expandWidth:(double)width;
Swift
func expandWidth(_ width: Double)
Parameters
width
width pixels
-
Expand the height pixels if greater than the current values
Declaration
Objective-C
- (void)expandHeight:(double)height;
Swift
func expandHeight(_ height: Double)
Parameters
height
height pixels
-
Expand the length pixels in all directions
Declaration
Objective-C
- (void)expandLength:(double)length;
Swift
func expandLength(_ length: Double)
Parameters
length
length pixels
-
Get the total pixel width
Declaration
Objective-C
- (double)width;
Swift
func width() -> Double
Return Value
pixel width
-
Get the total pixel height
Declaration
Objective-C
- (double)height;
Swift
func height() -> Double
Return Value
pixel height
-
Get the pixel area
Declaration
Objective-C
- (double)area;
Swift
func area() -> Double
Return Value
pixel area