C# Class Knot3.Framework.Math.Bounds

显示文件 Open project: knot3/knot3-code Class Usage Examples

Public Methods

Method Description
Bounds ( IScreen screen, float relX, float relY, float relWidth, float relHeight ) : System
Bounds ( ScreenPoint position, ScreenPoint size ) : System
Bounds ( ScreenPoint position, ScreenPoint size, ScreenPoint padding ) : System
Contains ( Point point ) : bool
Contains ( ScreenPoint point ) : bool
FromBottom ( Func percent ) : Bounds
FromBottom ( float percent ) : Bounds
FromLeft ( Func percent ) : Bounds
FromLeft ( float percent ) : Bounds
FromRight ( Func percent ) : Bounds
FromRight ( float percent ) : Bounds
FromTop ( Func percent ) : Bounds
FromTop ( float percent ) : Bounds
Grow ( int xy ) : Bounds
Grow ( int x, int y ) : Bounds
In ( Bounds container ) : Bounds
Shrink ( int xy ) : Bounds
Shrink ( int x, int y ) : Bounds
Zero ( IScreen screen ) : Bounds

Private Methods

Method Description
ToString ( ) : string

Method Details

Bounds() public method

public Bounds ( IScreen screen, float relX, float relY, float relWidth, float relHeight ) : System
screen IScreen
relX float
relY float
relWidth float
relHeight float
return System

Bounds() public method

public Bounds ( ScreenPoint position, ScreenPoint size ) : System
position ScreenPoint
size ScreenPoint
return System

Bounds() public method

public Bounds ( ScreenPoint position, ScreenPoint size, ScreenPoint padding ) : System
position ScreenPoint
size ScreenPoint
padding ScreenPoint
return System

Contains() public method

public Contains ( Point point ) : bool
point Point
return bool

Contains() public method

public Contains ( ScreenPoint point ) : bool
point ScreenPoint
return bool

FromBottom() public method

public FromBottom ( Func percent ) : Bounds
percent Func
return Bounds

FromBottom() public method

public FromBottom ( float percent ) : Bounds
percent float
return Bounds

FromLeft() public method

public FromLeft ( Func percent ) : Bounds
percent Func
return Bounds

FromLeft() public method

public FromLeft ( float percent ) : Bounds
percent float
return Bounds

FromRight() public method

public FromRight ( Func percent ) : Bounds
percent Func
return Bounds

FromRight() public method

public FromRight ( float percent ) : Bounds
percent float
return Bounds

FromTop() public method

public FromTop ( Func percent ) : Bounds
percent Func
return Bounds

FromTop() public method

public FromTop ( float percent ) : Bounds
percent float
return Bounds

Grow() public method

public Grow ( int xy ) : Bounds
xy int
return Bounds

Grow() public method

public Grow ( int x, int y ) : Bounds
x int
y int
return Bounds

In() public method

public In ( Bounds container ) : Bounds
container Bounds
return Bounds

Shrink() public method

public Shrink ( int xy ) : Bounds
xy int
return Bounds

Shrink() public method

public Shrink ( int x, int y ) : Bounds
x int
y int
return Bounds

Zero() public static method

public static Zero ( IScreen screen ) : Bounds
screen IScreen
return Bounds