note description: "Eiffel Vision positionable, implementation interface." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class EV_POSITIONABLE_I inherit EV_POSITIONED_I redefine interface end feature -- Status setting set_x_position (a_x: INTEGER) -- Set horizontal offset to parent to `a_x'. deferred ensure x_position_assigned: x_position = a_x end set_y_position (a_y: INTEGER) -- Set vertical offset to parent to `a_y'. deferred ensure y_position_assigned: y_position = a_y end set_position (a_x, a_y: INTEGER) -- Set horizontal offset to parent to `a_x'. -- Set vertical offset to parent to `a_y'. deferred ensure x_position_assigned: x_position = a_x y_position_assigned: y_position = a_y end set_width (a_width: INTEGER) -- Set the horizontal size to `a_width'. require a_width_positive_or_zero: a_width >= 0 deferred ensure width_assigned: width = minimum_width or else width = a_width end set_height (a_height: INTEGER) -- Set the vertical size to `a_height'. require a_height_positive_or_zero: a_height >= 0 deferred ensure height_assigned: height = minimum_height or else height = a_height end set_size (a_width, a_height: INTEGER) -- Set the horizontal size to `a_width'. -- Set the vertical size to `a_height'. require a_width_positive_or_zero: a_width >= 0 a_height_positive_or_zero: a_height >= 0 deferred ensure width_assigned: width = minimum_width or else width = a_width height_assigned: height = minimum_height or else height = a_height end feature {EV_ANY, EV_ANY_I} -- Implementation interface: detachable EV_POSITIONABLE note option: stable attribute end; 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_POSITIONABLE_I