Modifier

Partager via


SKSize Struct

Definition

Stores an ordered pair of floating-point numbers describing the width and height of a rectangle.

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

Constructors

SKSize(Single, Single)

Creates a new size with a given width and height.

SKSize(SKPoint)

Creates a new size from the offset of a point.

Fields

Empty

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

Properties

Height

Gets or sets the vertical component of this SKSize structure.

IsEmpty

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

Width

Gets or sets the horizontal component of this SKSize structure.

Methods

Add(SKSize, SKSize)

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

Equals(Object)

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

Equals(SKSize)

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

GetHashCode()

Returns a hash code for this SKSize structure.

Subtract(SKSize, SKSize)

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

ToPoint()

Converts a SKSize structure to a SKPoint structure.

ToSizeI()

Converts a SKSize structure to a SKSizeI structure.

ToString()

Converts this SKSize to a human readable string.

Operators

Addition(SKSize, SKSize)

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

Equality(SKSize, SKSize)

Tests whether two SKSize structures are equal.

Explicit(SKSize to SKPoint)

Converts the specified SKSize structure to a SKPoint structure.

Implicit(SKSizeI to SKSize)

Converts the specified SKSizeI structure to a SKSize structure.

Inequality(SKSize, SKSize)

Tests whether two SKSize structures are different.

Subtraction(SKSize, SKSize)

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

Applies to