1 USING: accessors sequences namespaces ui.render opengl fry kernel ;
3 SYMBOLS: width height ;
4 : store-dim ( gadget -- ) dim>> [ first width set ] [ second height set ] bi ;
5 : with-dim ( gadget quot -- ) '[ _ store-dim @ ] with-scope ; inline
6 : with-w/h ( gadget quot -- ) '[ origin get _ with-translation ] with-dim ; inline