sinterface WidthAndHeight { int getWidth(); int getHeight(); public default Rect bounds() { ret rect(0, 0, getWidth(), getHeight()); } }