Module: vanilla-duim Synopsis: Vanilla back-end Author: Scott McKay, Andy Armstrong Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND define sealed class () sealed slot %pixmap, init-keyword: pixmap:; sealed slot %medium :: , init-keyword: medium:; end class ; //--- A little wierd that this is called 'medium-drawable', but what the heck define method medium-drawable (pixmap :: ) => (drawable) pixmap.%pixmap end method medium-drawable; define method image-width (pixmap :: ) => (width :: ) //--- Do it end method image-width; define method image-height (pixmap :: ) => (width :: ) //--- Do it end method image-height; define method image-depth (pixmap :: ) => (width :: ) //--- Do it end method image-depth; //---*** Should all pixmaps just keep a track of their medium anyway? define method port (pixmap :: ) => (port :: ) port(pixmap.%medium) end method port; define method do-make-mirror (_port :: , sheet :: ) => (mirror :: ) //--- Do it, or maybe you don't need to do anything end method do-make-mirror; define method do-make-pixmap (_port :: , medium :: , width :: , height :: ) => (pixmap :: ) //--- Do it end method do-make-pixmap; define method destroy-pixmap (pixmap :: ) => () //--- Do it end method destroy-pixmap; define sealed class (, ) sealed slot %pixmap, init-keyword: pixmap:; sealed slot %medium, init-keyword: medium:; end class ; define method make-pixmap-medium (_port :: , sheet :: , #key width, height) => (medium :: ) //--- Do it end method make-pixmap-medium; define method do-copy-area (from :: , from-x, from-y, width, height, to :: , to-x, to-y, #key function = $boole-1) => () //--- Do it end method do-copy-area; define method do-copy-area (from :: , from-x, from-y, width, height, to :: , to-x, to-y, #key function = $boole-1) => () //--- Do it end method do-copy-area; define method do-copy-area (from :: , from-x, from-y, width, height, to :: , to-x, to-y, #key function = $boole-1) => () //--- Do it end method do-copy-area; define method do-copy-area (from :: , from-x, from-y, width, height, to :: , to-x, to-y, #key function = $boole-1) => () //--- Do it end method do-copy-area;