Edit

Share via


SKSizeI Struct

Definition

Stores an ordered pair of integers describing the width and height of a rectangle.

public struct SKSizeI : IEquatable<SkiaSharp.SKSizeI>
Inheritance
SKSizeI
Implements

Constructors

Name Description
SKSizeI(Int32, Int32)

Initializes a new instance of the SKSizeI struct with a given width and height.

SKSizeI(SKPointI)

Initializes a new instance of the SKSizeI struct from the offset of a point.

Fields

Name Description
Empty

Represents a new instance of the SKSizeI class with member data left uninitialized.

Properties

Name Description
Height

Gets or sets the vertical component of this SKSizeI structure.

IsEmpty

Gets a value that indicates whether this SKSizeI structure has zero width and height.

Width

Gets or sets the horizontal component of this SKSizeI structure.

Methods

Name Description
Add(SKSizeI, SKSizeI)

Adds the width and height of one SKSizeI structure to the width and height of another SKSizeI structure.

Equals(Object)

Tests to see whether the specified object is a SKSizeI structure with the same dimensions as this SKSizeI structure.

Equals(SKSizeI)

Tests to see whether the specified object is a SKSizeI structure with the same dimensions as this SKSizeI structure.

GetHashCode()

Returns a hash code for this SKSizeI structure.

Subtract(SKSizeI, SKSizeI)

Subtracts the width and height of one SKSizeI structure from the width and height of another SKSizeI structure.

ToPointI()

Converts a SKSizeI structure to a SKPointI structure.

ToString()

Converts this SKSizeI to a human readable string.

Operators

Name Description
Addition(SKSizeI, SKSizeI)

Adds the width and height of one SKSizeI structure to the width and height of another SKSizeI structure.

Equality(SKSizeI, SKSizeI)

Tests whether two SKSizeI structures are equal.

Explicit(SKSizeI to SKPointI)

Converts the specified SKSizeI structure to a SKPointI structure.

Inequality(SKSizeI, SKSizeI)

Tests whether two SKSizeI structures are different.

Subtraction(SKSizeI, SKSizeI)

Subtracts the width and height of one SKSizeI structure from the width and height of another SKSizeI structure.

Applies to