public Bounds(ScreenPoint position, ScreenPoint size, ScreenPoint padding) { _position = position; _size = size; _padding = padding; }
public Bounds Grow(int x, int y) { ScreenPoint diff = ScreenPoint.FromAbsolute(x, y, Position.Screen); return(new Bounds(Position - diff, Size + diff * 2)); }
public Bounds(IScreen screen, float relX, float relY, float relWidth, float relHeight) { _position = new ScreenPoint(screen, relX, relY); _size = new ScreenPoint(screen, relWidth, relHeight); _padding = new ScreenPoint(screen, Vector2.Zero); }
public bool Contains(ScreenPoint point) { return(Rectangle.Contains((Point)point)); }
public Bounds(ScreenPoint position, ScreenPoint size) { _position = position; _size = size; _padding = new ScreenPoint(position.Screen, Vector2.Zero); }