Automatic generation produced by ISE Eiffel
note description: "Pixel buffer that replaces orignal image file.The orignal version of this class has been generated by Image Eiffel Code." status: "See notice at end of class." legal: "See notice at end of class." class interface SD_DOWN_ICON create make -- Initialization feature -- Access data: detachable ANY -- Arbitrary user data may be stored here. -- (from EV_ANY) generating_type: TYPE [detachable SD_DOWN_ICON] -- 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 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: SD_DOWN_ICON): 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: SD_DOWN_ICON): 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: SD_DOWN_ICON): 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 -- Element change set_data (some_data: like data) -- Assign some_data to `data`. -- (from EV_ANY) require -- from EV_ANY not_destroyed: not is_destroyed ensure -- from EV_ANY data_assigned: data = some_data feature -- Duplication frozen deep_copy (other: SD_DOWN_ICON) -- 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: SD_DOWN_ICON -- 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: SD_DOWN_ICON) -- 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: SD_DOWN_ICON -- 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: SD_DOWN_ICON -- 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 frozen default: detachable SD_DOWN_ICON -- 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 feature -- Implementation implementation: EV_PIXEL_BUFFER_I -- Implementation interface -- (from EV_PIXEL_BUFFER) feature -- Command destroy -- Destroy underlying native toolkit object. -- Render Current unusable. -- (from EV_ANY) ensure -- from EV_ANY is_destroyed: is_destroyed draw_pixel_buffer_with_x_y (a_x, a_y: INTEGER_32; a_pixel_buffer: EV_PIXEL_BUFFER) -- Draw a_pixel_buffer at a_x, a_y. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER not_void: a_pixel_buffer /= Void vaild: a_x >= 0 and a_y >= 0 and a_x < width and a_y < height draw_text (a_text: READABLE_STRING_GENERAL; a_font: EV_FONT; a_point: EV_COORDINATE) -- Draw a_text with a_font at a_rect. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER not_void: a_text /= Void not_void: a_font /= Void not_void: a_point /= Void lock -- Lock pixel buffer for data access. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER not_locked: not is_locked ensure -- from EV_PIXEL_BUFFER is_locked: is_locked pixel_iterator: EV_PIXEL_BUFFER_ITERATOR -- Return a pixel buffer iterator covering. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER is_locked: is_locked ensure -- from EV_PIXEL_BUFFER result_not_void: Result /= Void save_to_named_file (a_file_name: READABLE_STRING_GENERAL) -- Save pixel data to file a_file_name. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty not_locked: not is_locked save_to_named_path (a_file_name: PATH) -- Save pixel data to file a_file_name. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty not_locked: not is_locked save_to_pointer: detachable MANAGED_POINTER -- Save pixel data to Result pointer -- (from EV_PIXEL_BUFFER) set_with_named_file (a_file_name: READABLE_STRING_GENERAL) -- Load pixel data from file a_file_name -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty not_locked: not is_locked set_with_named_path (a_file_name: PATH) -- Load pixel data from file a_file_name -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty not_locked: not is_locked set_with_pointer (a_pointer: POINTER; a_size: INTEGER_32) -- Load pixel data from a_pointer -- a_size: size in bytes -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER not_void: a_pointer /= default_pointer valid: a_size > 0 stretched (a_width, a_height: INTEGER_32): EV_PIXEL_BUFFER -- Stretched copy of Current of dimension a_width x a_height. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER a_width_positive: a_width > 0 a_height_positive: a_height > 0 not_locked: not is_locked ensure -- from EV_PIXEL_BUFFER result_not_void: Result /= Void result_not_current: Result /= Current result_width_set: Result.width = a_width result_height_set: Result.height = a_height sub_pixel_buffer (a_rect: EV_RECTANGLE): EV_PIXEL_BUFFER -- Return a sub pixel buffer of Current represented by area a_rect. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER not_void: a_rect /= Void not_locked: not is_locked ensure -- from EV_PIXEL_BUFFER result_not_void: Result /= Void result_not_current: Result /= Current sub_pixmap (a_rect: EV_RECTANGLE): EV_PIXMAP -- Return a pixmap region of Current represented by area a_rect. -- (from EV_PIXEL_BUFFER) require -- from EV_PIXEL_BUFFER not_void: a_rect /= Void not_locked: not is_locked ensure -- from EV_PIXEL_BUFFER result_not_void: Result /= Void to_pixmap: EV_PIXMAP -- Convert to EV_PIXMAP. -- (from EV_PIXEL_BUFFER) unlock -- Unlock from data access with `pixel_iterator`. -- (from EV_PIXEL_BUFFER) ensure -- from EV_PIXEL_BUFFER not_locked: not is_locked 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 feature -- Query area: EV_RECTANGLE -- Dimension of Current as an instance of EV_RECTANGLE. -- (from EV_PIXEL_BUFFER) ensure -- from EV_PIXEL_BUFFER definition: Result.x = 0 and Result.y = 0 and Result.width = width and Result.height = height height: INTEGER_32 -- Height of Current in pixels. -- (from EV_PIXEL_BUFFER) ensure -- from EV_PIXEL_BUFFER valid_height: Result >= 0 is_locked: BOOLEAN -- Is buffer locked for data access. -- (from EV_PIXEL_BUFFER) width: INTEGER_32 -- Width of Current in pixels. -- (from EV_PIXEL_BUFFER) ensure -- from EV_PIXEL_BUFFER valid_width: Result >= 0 feature -- Status Report is_destroyed: BOOLEAN -- Is Current no longer usable? -- (from EV_ANY) ensure -- from EV_ANY bridge_ok: Result = implementation.is_destroyed invariant -- from EV_ANY is_initialized: is_initialized default_create_called: default_create_called is_coupled: default_create_called implies (implementation.interface = Current or (attached {EV_ENVIRONMENT} Current and then attached implementation.interface)) -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note library: "SmartDocking: Library of reusable components for Eiffel." copyright: "Copyright (c) 1984-2012, 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 SD_DOWN_ICON -- Generated by Eiffel Studio --
For more details: eiffel.org