C# Class SkiaSharp.SKRect

显示文件 Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
Empty SKRect

Public Methods

Method Description
AspectFill ( SKSize size ) : SKRect
AspectFit ( SKSize size ) : SKRect
Contains ( SKPoint pt ) : bool
Contains ( SKRect rect ) : bool
Contains ( float x, float y ) : bool
Create ( SKPoint location, SKSize size ) : SKRect
Create ( SKSize size ) : SKRect
Create ( float width, float height ) : SKRect
Create ( float x, float y, float width, float height ) : SKRect
Equals ( object obj ) : bool
GetHashCode ( ) : int
Inflate ( SKRect rect, float x, float y ) : SKRect
Inflate ( SKSize size ) : void
Inflate ( float x, float y ) : void
Intersect ( SKRect a, SKRect b ) : SKRect
Intersect ( SKRect rect ) : void
IntersectsWith ( SKRect rect ) : bool
IntersectsWithInclusive ( SKRect rect ) : bool
Offset ( SKPoint pos ) : void
Offset ( float x, float y ) : void
SKRect ( float left, float top, float right, float bottom ) : System
ToString ( ) : string
Union ( SKRect a, SKRect b ) : SKRect
Union ( SKRect rect ) : void
operator ( ) : bool

Private Methods

Method Description
AspectResize ( SKSize size, bool fit ) : SKRect

Method Details

AspectFill() public method

public AspectFill ( SKSize size ) : SKRect
size SKSize
return SKRect

AspectFit() public method

public AspectFit ( SKSize size ) : SKRect
size SKSize
return SKRect

Contains() public method

public Contains ( SKPoint pt ) : bool
pt SKPoint
return bool

Contains() public method

public Contains ( SKRect rect ) : bool
rect SKRect
return bool

Contains() public method

public Contains ( float x, float y ) : bool
x float
y float
return bool

Create() public static method

public static Create ( SKPoint location, SKSize size ) : SKRect
location SKPoint
size SKSize
return SKRect

Create() public static method

public static Create ( SKSize size ) : SKRect
size SKSize
return SKRect

Create() public static method

public static Create ( float width, float height ) : SKRect
width float
height float
return SKRect

Create() public static method

public static Create ( float x, float y, float width, float height ) : SKRect
x float
y float
width float
height float
return SKRect

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Inflate() public static method

public static Inflate ( SKRect rect, float x, float y ) : SKRect
rect SKRect
x float
y float
return SKRect

Inflate() public method

public Inflate ( SKSize size ) : void
size SKSize
return void

Inflate() public method

public Inflate ( float x, float y ) : void
x float
y float
return void

Intersect() public static method

public static Intersect ( SKRect a, SKRect b ) : SKRect
a SKRect
b SKRect
return SKRect

Intersect() public method

public Intersect ( SKRect rect ) : void
rect SKRect
return void

IntersectsWith() public method

public IntersectsWith ( SKRect rect ) : bool
rect SKRect
return bool

IntersectsWithInclusive() public method

public IntersectsWithInclusive ( SKRect rect ) : bool
rect SKRect
return bool

Offset() public method

public Offset ( SKPoint pos ) : void
pos SKPoint
return void

Offset() public method

public Offset ( float x, float y ) : void
x float
y float
return void

SKRect() public method

public SKRect ( float left, float top, float right, float bottom ) : System
left float
top float
right float
bottom float
return System

ToString() public method

public ToString ( ) : string
return string

Union() public static method

public static Union ( SKRect a, SKRect b ) : SKRect
a SKRect
b SKRect
return SKRect

Union() public method

public Union ( SKRect rect ) : void
rect SKRect
return void

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

public static SKRect,SkiaSharp Empty
return SKRect