Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "Windows implementation for EV_PIXEL_BUFFER_I." legal: "See notice at end of class." status: "See notice at end of class." keywords: "drawable, primitives, figures, buffer, bitmap, picture" date: "$Date: 2019-05-09 04:58:18 -0800 (Thu, 09 May 2019) $" revision: "$Revision: 103145 $" class interface EV_PIXEL_BUFFER_IMP create make -- Initialize ensure -- from EV_ANY_I is_initialized: get_state_flag (Is_initialized_flag) feature -- Initialization destroy -- Destory ensure -- from EV_ANY_I is_in_destroy_set: is_in_destroy is_destroyed_set: is_destroyed initial_height: INTEGER_32 -- Initial size of Current. initial_width: INTEGER_32 -- Initial size of Current. make -- Initialize ensure -- from EV_ANY_I is_initialized: get_state_flag (Is_initialized_flag) make_with_pixmap (a_pixmap: EV_PIXMAP) -- Creation method. require -- from EV_PIXEL_BUFFER_I not_void: a_pixmap /= Void make_with_size (a_width, a_height: INTEGER_32) -- Create with size. require -- from EV_PIXEL_BUFFER_I width_valid: a_width > 0 height_valid: a_height > 0 ensure then set: Is_gdi_plus_installed implies initial_width = a_width set: Is_gdi_plus_installed implies initial_height = a_height old_make (an_interface: EV_PIXEL_BUFFER) -- Creation method. require -- from EV_ANY_I an_interface_not_void: an_interface /= Void ensure -- from EV_ANY_I interface_assigned: interface = an_interface base_make_called: base_make_called feature -- Access generating_type: TYPE [detachable EV_PIXEL_BUFFER_IMP] -- 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: EV_PIXEL_BUFFER_IMP): 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_PIXEL_BUFFER_IMP): 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_PIXEL_BUFFER_IMP): 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 is_destroyed: BOOLEAN -- Is Current no longer usable? -- (from EV_ANY_I) 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_PIXEL_BUFFER_IMP) -- 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_PIXEL_BUFFER_IMP) -- 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_PIXEL_BUFFER_IMP -- 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_PIXEL_BUFFER_IMP) -- 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_PIXEL_BUFFER_IMP -- 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_PIXEL_BUFFER_IMP -- 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 EV_PIXEL_BUFFER_IMP -- 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 -- Obsolete draw_pixel_buffer (a_pixel_buffer: EV_PIXEL_BUFFER; a_dest_rect: EV_RECTANGLE) -- Draw a_pixel_buffer at a_rect. feature -- Command draw_pixel_buffer_with_x_y (a_x, a_y: INTEGER_32; a_pixel_buffer: EV_PIXEL_BUFFER) -- Draw a_pixel_buffer at a_rect. draw_text (a_text: READABLE_STRING_GENERAL; a_font: EV_FONT; a_point: EV_COORDINATE) -- Draw a_text with a_font at a_rect. draw_to_drawable (a_drawable: EV_DRAWABLE) -- Draw Current to a_drawable draw_to_drawable_with_dest_rect_src_rect (a_drawable: EV_DRAWABLE; a_dest_rect, a_src_rect: WEL_RECT) -- Draw Current to a_drawable get_pixel (a_x, a_y: NATURAL_32): NATURAL_32 -- Get the RGBA pixel value at a_x, a_y. require -- from EV_PIXEL_BUFFER_I a_x_valid: a_x < width.as_natural_32 a_y_valid: a_y <= height.as_natural_32 lock -- Lock buffer for pixel iteration. -- (from EV_PIXEL_BUFFER_I) save_to_named_path (a_file_name: PATH) -- Save pixel data to a_file_name require -- from EV_PIXEL_BUFFER_I a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty save_to_pointer: detachable MANAGED_POINTER -- Save pixel data to Result managed pointer set_from_icon (a_wel_icon: WEL_ICON) -- Load pixel data from a_wel_icon. set_gdip_image (a_gdip_image: WEL_GDIP_BITMAP) -- Set gdip_image with a_gdip_image require valid: Is_gdi_plus_installed not_void: a_gdip_image /= Void ensure set: gdip_bitmap = a_gdip_image set_pixel (a_x, a_y, rgba: NATURAL_32) -- Set the RGBA pixel value at a_x, a_y to rgba. require -- from EV_PIXEL_BUFFER_I a_x_valid: a_x < width.as_natural_32 a_y_valid: a_y <= height.as_natural_32 ensure -- from EV_PIXEL_BUFFER_I pixel_set: get_pixel (a_x, a_y) = rgba set_with_named_path (a_file_name: PATH) -- Load pixel data from a file. require -- from EV_PIXEL_BUFFER_I a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty set_with_pointer (a_pointer: POINTER; a_size: INTEGER_32) -- Load pixel data from a_pointer -- a_size: size in bytes stretched (a_width, a_height: INTEGER_32): EV_PIXEL_BUFFER -- Stretched copy of Current of dimension a_width x a_height. require -- from EV_PIXEL_BUFFER_I a_width_positive: a_width > 0 a_height_positive: a_height > 0 not_locked: not is_locked ensure -- from EV_PIXEL_BUFFER_I result_not_void: Result /= Void result_width_set: Result.width = a_width result_height_set: Result.height = a_height sub_pixel_buffer (a_rect: EV_RECTANGLE): EV_PIXEL_BUFFER -- Create a new sub pixel buffer object. sub_pixmap (a_rect: EV_RECTANGLE): EV_PIXMAP -- Create asub pixmap from Current. unlock -- Redefine require -- from EV_PIXEL_BUFFER_I True ensure then cleared: data = Void 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_I) ensure -- from EV_PIXEL_BUFFER_I definition: Result.x = 0 and Result.y = 0 and Result.width = width and Result.height = height data_ptr: POINTER -- Pointer address of image raw data. -- Don't forget call `unlock` after operations on result pointer. -- This feature is NOT platform independent. Because pixel orders are different. gdip_bitmap: detachable WEL_GDIP_BITMAP -- If `is_gdi_plus_installed` then we use this to function. height: INTEGER_32 -- Height Is_gdi_plus_installed: BOOLEAN -- If GDI+ installed? is_locked: BOOLEAN -- Is buffer locked for pixel iteration? -- (from EV_PIXEL_BUFFER_I) mask_bitmap (a_rect: EV_RECTANGLE): EV_BITMAP -- Maks bitmap of a_rect require not_void: a_rect /= Void not_too_big: a_rect.width <= width and a_rect.height <= height support: Is_gdi_plus_installed ensure not_void: Result /= Void pixel_iterator: EV_PIXEL_BUFFER_ITERATOR -- Return a pixel buffer iterator. -- (from EV_PIXEL_BUFFER_I) pixmap: detachable EV_PIXMAP -- If not `is_gdi_plus_installed` then we use this to emulate the functions. width: INTEGER_32 -- Width invariant -- from EV_ANY_I interface_coupled: is_usable implies interface /= Void and then attached_interface.implementation = Current base_make_called: is_usable implies base_make_called -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2019, 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_PIXEL_BUFFER_IMP
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

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