API Reference › Rect › Rect.right
method

Rect.right

Rect.right(r) -> fixed

Returns the right edge, x + w — the x coordinate just past the rectangle. Handy for anchoring something to a box's right side.

Example

program Demo {
  handler Step phase Update {
    let edge = Rect.right(hud)
  }
}
← All symbols