C# Class Monobjc.ApplicationServices.CGSize

显示文件 Open project: Monobjc/monobjc Class Usage Examples

Public Properties

Property Type Description
CGSizeZero CGSize

Public Methods

Method Description
Add ( CGSize size1, CGSize size2 ) : CGSize

Returns the sum of the two sizes instances.

CGSizeEqualToSize ( CGSize size1, CGSize size2 ) : int

Indicates whether two sizes are equal.

Original declaration is : int CGSizeEqualToSize ( CGSize size1, CGSize size2 );

CGSizeMake ( CGFloat width, CGFloat height ) : CGSize

Returns a size structure constructed from dimension values you provide.

Original declaration is : CGSize CGSizeMake ( float width, float height );

Divide ( CGSize size, CGFloat factor ) : CGSize

Returns the result of the division of the size instance by the given factor.

Multiply ( CGSize size, CGFloat factor ) : CGSize

Returns the product of the size instance by the given factor.

Substract ( CGSize size1, CGSize size2 ) : CGSize

Returns the difference of the two sizes instances.

operator ( ) : CGSize

Implements the operator +.

Method Details

Add() public static method

Returns the sum of the two sizes instances.
public static Add ( CGSize size1, CGSize size2 ) : CGSize
size1 CGSize A size.
size2 CGSize A size.
return CGSize

CGSizeEqualToSize() public static method

Indicates whether two sizes are equal.
Original declaration is : int CGSizeEqualToSize ( CGSize size1, CGSize size2 );
public static CGSizeEqualToSize ( CGSize size1, CGSize size2 ) : int
size1 CGSize The first size to examine.
size2 CGSize The second size to examine.
return int

CGSizeMake() public static method

Returns a size structure constructed from dimension values you provide.
Original declaration is : CGSize CGSizeMake ( float width, float height );
public static CGSizeMake ( CGFloat width, CGFloat height ) : CGSize
width CGFloat A width value.
height CGFloat A height value.
return CGSize

Divide() public static method

Returns the result of the division of the size instance by the given factor.
public static Divide ( CGSize size, CGFloat factor ) : CGSize
size CGSize The size.
factor CGFloat The factor.
return CGSize

Multiply() public static method

Returns the product of the size instance by the given factor.
public static Multiply ( CGSize size, CGFloat factor ) : CGSize
size CGSize The size.
factor CGFloat The factor.
return CGSize

Substract() public static method

Returns the difference of the two sizes instances.
public static Substract ( CGSize size1, CGSize size2 ) : CGSize
size1 CGSize A size.
size2 CGSize A size.
return CGSize

operator() public static method

Implements the operator +.
public static operator ( ) : CGSize
return CGSize

Property Details

CGSizeZero public_oe static_oe property

A CGSize with its width and height set to zero.
public static CGSize,Monobjc.ApplicationServices CGSizeZero
return CGSize