HasSize

trait HasSize

A supertype for objects that have a size: a width and a height.

class Object
trait Matchable
class Any

Value members

Abstract methods

this object’s height: the distance from its top edge to its bottom edge

this object’s height: the distance from its top edge to its bottom edge

this object’s width: the distance from its left edge to its right edge

this object’s width: the distance from its left edge to its right edge

Concrete methods

the location of this object’s center: the average point between its edges, expressed in coordinates relative to the object’s top left-hand corner

the location of this object’s center: the average point between its edges, expressed in coordinates relative to the object’s top left-hand corner