! Copyright (C) 2009 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: kernel accessors ui.images ui.pens ui.pens.image ui.gadgets ui.gadgets.labels ; IN: ui.gadgets.icons TUPLE: icon < gadget ; : ( image-name -- icon ) icon new swap t >>fill? >>interior ; M: icon pref-dim* dup interior>> pen-pref-dim ; M: image-name >label ;