C# 클래스 OpenTK.Graphics.Rectangle

파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty Rectangle

공개 메소드들

메소드 설명
Contains ( Point pt ) : bool

Contains Method

Checks if a Point lies within this Rectangle.

Contains ( Rectangle rect ) : bool

Contains Method

Checks if a Rectangle lies entirely within this Rectangle.

Contains ( int x, int y ) : bool

Contains Method

Checks if an x,y coordinate lies within this Rectangle.

Equals ( object obj ) : bool

Equals Method

Checks equivalence of this Rectangle and another object.

FromLTRB ( int left, int top, int right, int bottom ) : Rectangle

FromLTRB Shared Method

Produces a Rectangle structure from left, top, right, and bottom coordinates.

GetHashCode ( ) : int

GetHashCode Method

Calculates a hashing value.

Inflate ( Rectangle rect, int x, int y ) : Rectangle

Inflate Shared Method

Produces a new Rectangle by inflating an existing Rectangle by the specified coordinate values.

Inflate ( Size size ) : void

Inflate Method

Inflates the Rectangle by a specified Size.

Inflate ( int width, int height ) : void

Inflate Method

Inflates the Rectangle by a specified width and height.

Intersect ( Rectangle a, Rectangle b ) : Rectangle

Intersect Shared Method

Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection.

Intersect ( Rectangle rect ) : void

Intersect Method

Replaces the Rectangle with the intersection of itself and another Rectangle.

IntersectsWith ( Rectangle rect ) : bool

IntersectsWith Method

Checks if a Rectangle intersects with this one.

Offset ( Point pos ) : void

Offset Method

Moves the Rectangle a specified distance.

Offset ( int x, int y ) : void

Offset Method

Moves the Rectangle a specified distance.

Rectangle ( Point location, Size size ) : System

Rectangle Constructor

Creates a Rectangle from Point and Size values.

Rectangle ( int x, int y, int width, int height ) : System

Rectangle Constructor

Creates a Rectangle from a specified x,y location and width and height values.

ToString ( ) : string

ToString Method

Formats the Rectangle as a string in (x,y,w,h) notation.

Union ( Rectangle a, Rectangle b ) : Rectangle

Union Shared Method

Produces a new Rectangle from the union of 2 existing Rectangles.

operator ( ) : bool

Equality Operator

Compares two Rectangle objects. The return value is based on the equivalence of the Location and Size properties of the two Rectangles.

비공개 메소드들

메소드 설명
IntersectsWithInclusive ( Rectangle r ) : bool

메소드 상세

Contains() 공개 메소드

Contains Method
Checks if a Point lies within this Rectangle.
public Contains ( Point pt ) : bool
pt Point
리턴 bool

Contains() 공개 메소드

Contains Method
Checks if a Rectangle lies entirely within this Rectangle.
public Contains ( Rectangle rect ) : bool
rect Rectangle
리턴 bool

Contains() 공개 메소드

Contains Method
Checks if an x,y coordinate lies within this Rectangle.
public Contains ( int x, int y ) : bool
x int
y int
리턴 bool

Equals() 공개 메소드

Equals Method
Checks equivalence of this Rectangle and another object.
public Equals ( object obj ) : bool
obj object
리턴 bool

FromLTRB() 공개 정적인 메소드

FromLTRB Shared Method
Produces a Rectangle structure from left, top, right, and bottom coordinates.
public static FromLTRB ( int left, int top, int right, int bottom ) : Rectangle
left int
top int
right int
bottom int
리턴 Rectangle

GetHashCode() 공개 메소드

GetHashCode Method
Calculates a hashing value.
public GetHashCode ( ) : int
리턴 int

Inflate() 공개 정적인 메소드

Inflate Shared Method
Produces a new Rectangle by inflating an existing Rectangle by the specified coordinate values.
public static Inflate ( Rectangle rect, int x, int y ) : Rectangle
rect Rectangle
x int
y int
리턴 Rectangle

Inflate() 공개 메소드

Inflate Method
Inflates the Rectangle by a specified Size.
public Inflate ( Size size ) : void
size Size
리턴 void

Inflate() 공개 메소드

Inflate Method
Inflates the Rectangle by a specified width and height.
public Inflate ( int width, int height ) : void
width int
height int
리턴 void

Intersect() 공개 정적인 메소드

Intersect Shared Method
Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection.
public static Intersect ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
리턴 Rectangle

Intersect() 공개 메소드

Intersect Method
Replaces the Rectangle with the intersection of itself and another Rectangle.
public Intersect ( Rectangle rect ) : void
rect Rectangle
리턴 void

IntersectsWith() 공개 메소드

IntersectsWith Method
Checks if a Rectangle intersects with this one.
public IntersectsWith ( Rectangle rect ) : bool
rect Rectangle
리턴 bool

Offset() 공개 메소드

Offset Method
Moves the Rectangle a specified distance.
public Offset ( Point pos ) : void
pos Point
리턴 void

Offset() 공개 메소드

Offset Method
Moves the Rectangle a specified distance.
public Offset ( int x, int y ) : void
x int
y int
리턴 void

Rectangle() 공개 메소드

Rectangle Constructor
Creates a Rectangle from Point and Size values.
public Rectangle ( Point location, Size size ) : System
location Point
size Size
리턴 System

Rectangle() 공개 메소드

Rectangle Constructor
Creates a Rectangle from a specified x,y location and width and height values.
public Rectangle ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
리턴 System

ToString() 공개 메소드

ToString Method
Formats the Rectangle as a string in (x,y,w,h) notation.
public ToString ( ) : string
리턴 string

Union() 공개 정적인 메소드

Union Shared Method
Produces a new Rectangle from the union of 2 existing Rectangles.
public static Union ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
리턴 Rectangle

operator() 공개 정적인 메소드

Equality Operator
Compares two Rectangle objects. The return value is based on the equivalence of the Location and Size properties of the two Rectangles.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

Empty Shared Field
An uninitialized Rectangle Structure.
public static Rectangle,OpenTK.Graphics Empty
리턴 Rectangle