trait HasAnchor extends HasSize
A supertype for objects that have an anchoring point.
- Alphabetic
- By Inheritance
- HasAnchor
- HasSize
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def anchor: Anchor
the object’s anchoring point
- abstract def height: Double
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
- Definition Classes
- HasSize
- abstract def width: Double
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
- Definition Classes
- HasSize
Concrete Value Members
- def centerFromTopLeft: Pos
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
- Definition Classes
- HasSize
- def internalAnchorPos: Pos
Returns the Pos of the anchoring point within this object, expressed as coordinates relative to the object’s top left-hand corner.
- def internalAnchorX: Double
Returns the x coordinate of the anchoring point within this object, relative to the object’s left edge.
- def internalAnchorY: Double
Returns the y coordinate of the anchoring point within this object, relative to the object’s top edge.