indexing description: "General definitions for drawable elments"; status: "See notice at end of class"; date: "$Date$"; revision: "$Revision$" deferred class DRAWING feature -- Status report destroyed: BOOLEAN is -- Is current dash destroyed? deferred end; feature -- Status setting clear is -- Clear the entire area. require exists: not destroyed do implementation.clear end; feature -- Access implementation: DRAWING_I is -- Implementation deferred end; feature -- Comparison same (other: like Current): BOOLEAN is -- Does the current drawing and `other' share the same object -- on screen ? require other_exists: other /= Void deferred end; feature -- Status setting set_clip (a_clip: CLIP) is -- Set a clip area. require exists: not destroyed; a_clip_exists: a_clip /= Void do implementation.set_clip (a_clip) end; set_no_clip is -- Remove all clip area. require exists: not destroyed do implementation.set_no_clip end; feature -- Element change add_expose_action (a_command: COMMAND; argument: ANY) is -- Add `a_command' to the list of action to execute when -- current area is exposed. require exists: not destroyed not_a_command_void: a_command /= Void do implementation.add_expose_action (a_command, argument) end; feature -- Removal remove_expose_action (a_command: COMMAND; argument: ANY) is -- Remove `a_command' from the list of action to execute when -- current area is exposed. require exists: not destroyed not_a_command_void: a_command /= Void do implementation.remove_expose_action (a_command, argument) end; end -- class DRAWING --|---------------------------------------------------------------- --| EiffelVision: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------