indexing description: "Abstraction for objects that have a pixmap property." status: "See notice at end of class" keywords: "pixmap, bitmap, icon, graphic, image" date: "$Date$" revision: "$Revision$" deferred class EV_PIXMAPABLE -- Version for/required by Build. inherit EV_ANY redefine implementation, is_in_default_state end feature -- Access pixmap: EV_PIXMAP is -- Image displayed on `Current'. require not_destroyed: not is_destroyed do Result := implementation.pixmap ensure bridge_ok: (Result = Void and implementation.pixmap = Void) or Result.is_equal (implementation.pixmap) end pixmap_path: STRING -- Path of `pixmap'. feature -- Element change set_pixmap (a_pixmap: EV_PIXMAP) is -- Assign `a_pixmap' to `pixmap'. require not_destroyed: not is_destroyed pixmap_not_void: a_pixmap /= Void do implementation.set_pixmap (a_pixmap) ensure pixmap_assigned: a_pixmap.is_equal (pixmap) and pixmap /= a_pixmap end set_pixmap_path (a_path: STRING) is -- Assign `a_path' to `pixmap_path'. do pixmap_path := a_path ensure path_set: pixmap_path = a_path end remove_pixmap is -- Make `pixmap' `Void'. require not_destroyed: not is_destroyed do implementation.remove_pixmap ensure pixmap_removed: pixmap = Void end feature {NONE} -- Contract support is_in_default_state: BOOLEAN is -- Is `Current' in its default state? do Result := Precursor {EV_ANY} and pixmap = void end feature {EV_ANY_I} -- Implementation implementation: EV_PIXMAPABLE_I -- Responsible for interaction with native graphics toolkit. end -- class EV_PIXMAPABLE --|---------------------------------------------------------------- --| EiffelVision2: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------