note description: "Item pixmap scaler. Implementation interface." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class EV_ITEM_PIXMAP_SCALER_I inherit EV_ANY_I redefine interface end feature -- Access pixmaps_width: INTEGER -- Width of displayed pixmaps in `Current'. pixmaps_height: INTEGER -- Height of displayed pixmaps in `Current'. feature -- Status setting set_pixmaps_size (a_width: INTEGER; a_height: INTEGER) -- Set the size of displayed pixmaps in `Current' to -- `a_width' by `a_height'. do if pixmaps_width /= a_width or pixmaps_height /= a_height then pixmaps_width := a_width pixmaps_height := a_height pixmaps_size_changed end ensure width_set: pixmaps_width = a_width height_set: pixmaps_height = a_height end feature {NONE} -- Implementation pixmaps_size_changed -- The size of the displayed pixmaps has just -- changed. deferred end initialize_pixmaps -- Assign default sizes to pixmaps. do pixmaps_width := default_pixmaps_width pixmaps_height := default_pixmaps_height end default_pixmaps_width: INTEGER = 16 -- Default width for pixmaps. default_pixmaps_height: INTEGER = 16 -- Default height for pixmaps. feature {EV_ANY, EV_ANY_I} -- Implementation interface: detachable EV_ITEM_PIXMAP_SCALER note option: stable attribute end; -- Provides a common user interface to possibly dependent -- functionality implemented by `Current'. note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class EV_PIXMAPABLE_ITEM_HOLDER_I