Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "Objects that draw the EV_GRID widget as required." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2021-11-28 08:03:48 -0900 (Sun, 28 Nov 2021) $" revision: "$Revision: 106008 $" class interface EV_GRID_DRAWER_I create make_with_grid (a_grid: EV_GRID_I) -- Create Current associated to `grid` a_grid. require a_grid_not_void: a_grid /= Void ensure grid_set: grid = a_grid feature -- Access generating_type: TYPE [detachable EV_GRID_DRAWER_I] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty grid: EV_GRID_I feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) frozen is_deep_equal alias "≡≡≡" (other: EV_GRID_DRAWER_I): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: EV_GRID_DRAWER_I): BOOLEAN -- Is other attached to an object considered -- equal to current object? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "" (other: EV_GRID_DRAWER_I): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) feature -- Status report conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) feature -- Duplication copy (other: EV_GRID_DRAWER_I) -- Update current object using fields of object attached -- to other, so as to yield equal objects. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other frozen deep_copy (other: EV_GRID_DRAWER_I) -- Effect equivalent to that of: -- `copy` (other . `deep_twin`) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: EV_GRID_DRAWER_I -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) frozen standard_copy (other: EV_GRID_DRAWER_I) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: EV_GRID_DRAWER_I -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) frozen twin: EV_GRID_DRAWER_I -- New object equal to Current -- `twin` calls `copy`; to change copying/twinning semantics, redefine `copy`. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations column_at_position (a_x: INTEGER_32): detachable EV_GRID_COLUMN_I -- Result is column at position a_x relative to the left -- of the grid.drawable in which the grid is displayed. column_at_virtual_position (a_x: INTEGER_32): detachable EV_GRID_COLUMN_I -- Result is row at virtual x position, a_x relative to the left --  of the virtual size. frozen default: detachable EV_GRID_DRAWER_I -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.`default` for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class item_at_position (an_x, a_y: INTEGER_32): detachable EV_GRID_ITEM_I -- Result is item at position an_x, a_y relative to the top left corner -- of the grid.drawable in which the grid is displayed. The bounded item -- incorporates the tree node if any. item_at_position_strict (an_x, a_y: INTEGER_32): detachable EV_GRID_ITEM_I -- Result is item at position an_x, a_y relative to the top left corner -- of the grid.drawable in which the grid is displayed. This version -- returns Void if the pointed_part of the item is part of a tree node. item_at_virtual_position (an_x, a_y: INTEGER_32): detachable EV_GRID_ITEM_I -- Result is item at virtual position an_x, a_y relative to the top -- left hand corner of the virtual size. item_coordinates_at_position (an_x, a_y: INTEGER_32): detachable EV_COORDINATE -- Result is coordinates of item at position an_x, a_y relative to the top left corner -- of the grid.drawable in which the grid is displayed. The bounded item -- incorporates the tree node if any. No checking of whether the item at this posibion is Void. items_spanning_horizontal_span (an_x, a_width: INTEGER_32): ARRAYED_LIST [INTEGER_32] -- For a virtual position starting at an_x with a width of a_width, -- return all of the column indexes which intersect this width. require a_width_non_negative: a_width >= 0 ensure result_not_void: Result /= Void items_spanning_vertical_span (a_y, a_height: INTEGER_32): ARRAYED_LIST [INTEGER_32] -- For a virtual position starting at a_y with a height of a_height, -- return all of the row indexes which intersect this height. require a_height_non_negative: a_height >= 0 ensure result_not_void: Result /= Void locked_column_at_position (an_x: INTEGER_32): detachable EV_GRID_COLUMN_I -- Result is locked column at position an_x relative to the left -- of the grid.drawable in which the grid is displayed. locked_item_at_position (an_x, a_y: INTEGER_32): detachable EV_GRID_ITEM_I -- Result is locked item at position an_x, a_y relative to the top left corner -- of the grid.drawable in which the grid is displayed. locked_row_at_position (a_y: INTEGER_32): detachable EV_GRID_ROW_I -- Result is locked row at position a_y relative to the top -- of the grid.drawable in which the grid is displayed. redraw_area_in_drawable_coordinates (an_x, a_y, a_width, a_height: INTEGER_32; drawable: EV_DRAWABLE; viewport: EV_VIEWPORT; locked: detachable EV_GRID_LOCKED_I) -- Redraw grid contents at coordinates an_x, a_y, a_width, a_height -- relative to the upper left corner of the drawable widget of `grid`. -- require -- an_x_positive: an_x >= 0 -- a_y_positive: a_y >= 0 -- a_width_positive: a_width >= 0 -- a_height_positive: a_height >= 0 redraw_area_in_drawable_coordinates_wrapper (an_x, a_y, a_width, a_height: INTEGER_32) redraw_area_in_virtual_coordinates (an_x, a_y, a_width, a_height: INTEGER_32) -- Redraw grid contents at coordinates an_x, a_y, a_width, a_height -- relative to the upper left corner of the virtual area. row_at_position (a_y: INTEGER_32; ignore_locked_rows: BOOLEAN): detachable EV_GRID_ROW_I -- Result is row at position a_y relative to the top -- of the grid.drawable in which the grid is displayed. row_at_virtual_position (a_y: INTEGER_32; ignore_locked_rows: BOOLEAN): detachable EV_GRID_ROW_I -- Result is row at virtual y position, a_y relative to the top --  of the virtual size. feature -- Markers fixme (comment: READABLE_STRING_8) -- Mark code that has to be "fixed" with comment. -- (from REFACTORING_HELPER) require -- from REFACTORING_HELPER comment_not_void: comment /= Void ensure -- from REFACTORING_HELPER instance_free: class to_implement (comment: READABLE_STRING_8) -- Mark code that has to be "implemented" with comment. -- (from REFACTORING_HELPER) require -- from REFACTORING_HELPER comment_not_void: comment /= Void ensure -- from REFACTORING_HELPER instance_free: class to_implement_assertion (comment: READABLE_STRING_8): BOOLEAN -- Mark assertion that has to be "implemented" with comment. -- (from REFACTORING_HELPER) require -- from REFACTORING_HELPER comment_not_void: comment /= Void ensure -- from REFACTORING_HELPER instance_free: class feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void invariant grid_not_void: grid /= Void temp_rectangle_not_void: temp_rectangle /= Void -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2021, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., 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_GRID_DRAWER_I
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org