C# Class NScumm.Core.Graphics.Rect

Afficher le fichier Open project: scemino/nscumm Class Usage Examples

Méthodes publiques

Свойство Type Description
Bottom int
Top int

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Clip ( Rect r ) : void
Clip ( int maxw, int maxh ) : void
Contains ( Point p ) : bool
Contains ( int x, int y ) : bool

Check if given position is inside this rectangle.

Rect ( int w, int h )
Rect ( int x1, int y1, int x2, int y2 )
ToString ( ) : string

Method Details

Clip() public méthode

public Clip ( Rect r ) : void
r Rect
Résultat void

Clip() public méthode

public Clip ( int maxw, int maxh ) : void
maxw int
maxh int
Résultat void

Contains() public méthode

public Contains ( Point p ) : bool
p Point
Résultat bool

Contains() public méthode

Check if given position is inside this rectangle.
public Contains ( int x, int y ) : bool
x int The horizontal position to check.
y int The vertical position to check.
Résultat bool

Rect() public méthode

public Rect ( int w, int h )
w int
h int

Rect() public méthode

public Rect ( int x1, int y1, int x2, int y2 )
x1 int
y1 int
x2 int
y2 int

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Bottom public_oe property

public int Bottom
Résultat int

Top public_oe property

public int Top
Résultat int