1 ! Copyright (C) 2009 Slava Pestov.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: accessors classes.struct cocoa cocoa.classes
4 cocoa.runtime cocoa.subclassing cocoa.types core-graphics.types
6 FROM: alien.c-types => float ;
7 IN: tools.deploy.test.14
10 METHOD: float bar: NSRect rect [
11 rect origin>> [ x>> ] [ y>> ] bi +
12 rect size>> [ w>> ] [ h>> ] bi +
19 S{ CGRect f S{ CGPoint f 1.0 2.0 } S{ CGSize f 3.0 4.0 } } -> bar: