Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "[ Grapics functions in Gdi+. For more information, please see: MSDN Graphics Functions: http://msdn.microsoft.com/en-us/library/ms534038(VS.85).aspx ]" eis: "protocol=uri", "src=http://msdn.microsoft.com/en-us/library/ms534038(VS.85).aspx" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2019-02-28 00:48:07 -0900 (Thu, 28 Feb 2019) $" revision: "$Revision: 102862 $" class interface WEL_GDIP_GRAPHICS create make_from_image (a_image: WEL_GDIP_IMAGE) -- Initlialize Current from a_image require not_void: a_image /= Void a_image: a_image.exists make_from_dc (a_dc: WEL_DC) -- Initlialize Current from a_dc require not_void: a_dc /= Void exists: a_dc.exists feature -- Access gdi_plus_handle: POINTER -- Handle to gdiplus.dll if present. -- (from WEL_GDIP_ANY) generating_type: TYPE [detachable WEL_GDIP_GRAPHICS] -- 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 item: POINTER -- Generic Windows handle or structure pointer. -- Can be a HWND, HICON, RECT *, WNDCLASS *, etc... -- (from WEL_ANY) 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: WEL_GDIP_GRAPHICS): 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: WEL_GDIP_GRAPHICS): 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: WEL_GDIP_GRAPHICS): 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 exists: BOOLEAN -- Does the `item` exist? -- (from WEL_ANY) ensure -- from WEL_ANY Result = (item /= default_pointer) 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)) shared: BOOLEAN -- Is `item` shared by another object? -- If False (by default), `item` will -- be destroyed by `destroy_item`. -- If True, `item` will not be destroyed. -- (from WEL_ANY) feature -- Status setting set_shared -- Set `shared` to True. -- (from WEL_ANY) ensure -- from WEL_ANY shared: shared set_unshared -- Set `shared` to False. -- (from WEL_ANY) ensure -- from WEL_ANY unshared: not shared feature -- Element change set_item (an_item: POINTER) -- Set `item` with an_item -- (from WEL_ANY) ensure -- from WEL_ANY item_set: item = an_item feature -- Removal dispose -- Destroy the inner structure of Current. -- -- This function should be called by the GC when the -- object is collected or by the user if Current is -- no more usefull. -- (from WEL_ANY) feature -- Duplication copy (other: WEL_GDIP_GRAPHICS) -- 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: WEL_GDIP_GRAPHICS) -- 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: WEL_GDIP_GRAPHICS -- 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: WEL_GDIP_GRAPHICS) -- 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: WEL_GDIP_GRAPHICS -- 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: WEL_GDIP_GRAPHICS -- 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 WEL_GDIP_GRAPHICS -- 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 -- Command clear (a_color: WEL_GDIP_COLOR) -- Clears the entire drawing surface and fills it with a_color require not_void: a_color /= Void exists: exists draw_ellipse (a_pen: WEL_GDIP_PEN; a_x, a_y, a_width, a_height: INTEGER_32) -- Draw a ellipse with the specified a_x/a_y and a_width/a_height require not_void: a_pen /= Void a_pen_exists: a_pen.exists exists: exists draw_image (a_image: WEL_GDIP_IMAGE; a_dest_x, a_dest_y: INTEGER_32) -- Draw a_image at a_dest_x a_dest_y require not_void: a_image /= Void a_image_exists: a_image.exists exists: exists draw_image_with_dest_rect_src_rect (a_image: WEL_GDIP_IMAGE; a_dest_rect, a_src_rect: WEL_RECT) -- Draw a_image at a_dest_rect from a_src_dest require not_void: a_image /= Void a_image_exists: a_image.exists not_void: a_dest_rect /= Void a_dest_rect_exists: a_dest_rect.exists not_void: a_src_rect /= Void a_src_rect_exists: a_src_rect.exists exists: exists draw_image_with_src_rect_dest_rect_unit_attributes (a_image: WEL_GDIP_IMAGE; a_dest_rect, a_src_rect: WEL_RECT; a_unit: INTEGER_32; a_image_attributes: detachable WEL_GDIP_IMAGE_ATTRIBUTES) -- Draw a_image with arguments. require not_void: a_image /= Void a_image_exists: a_image.exists not_void: a_dest_rect /= Void a_dest_rect_exists: a_dest_rect.exists not_void: a_src_rect /= Void a_src_rect_exists: a_src_rect.exists valid: (create {WEL_GDIP_UNIT} end).is_valid (a_unit) exists: exists draw_line (a_pen: WEL_GDIP_PEN; a_x_1, a_y_1, a_x_2, a_y_2: INTEGER_32) -- Draw a line require not_void: a_pen /= Void a_pen_exists: a_pen.exists exists: exists draw_lines (pen: WEL_GDIP_PEN; coorinates: ARRAY [INTEGER_32]) -- Draw a series of line segments that connect an array of specified coordinates coorinates with a pen pen. require pen_attached: attached pen pen_exists: pen.exists exists: exists coordinates_attached: attached coorinates coordinates_in_pairs: coorinates.count & 1 = 0 draw_polygon (pen: WEL_GDIP_PEN; coorinates: ARRAY [INTEGER_32]) -- Draw a polygon with a pen pen at specified coordinates coorinates. require pen_attached: attached pen pen_exists: pen.exists exists: exists coordinates_attached: attached coorinates coordinates_in_pairs: coorinates.count & 1 = 0 draw_rectangle (a_pen: WEL_GDIP_PEN; a_x, a_y, a_width, a_height: INTEGER_32) -- Draw a rectangle with the specified a_x/a_y and a_width/a_height require not_void: a_pen /= Void a_pen_exists: a_pen.exists exists: exists draw_string (a_string: READABLE_STRING_GENERAL; a_font: WEL_GDIP_FONT; a_x, a_y: REAL_32) -- Draw a_length characters of a_string with a_font at a_x,a_y position. require not_void: a_string /= Void not_void: a_font /= Void a_font_exists: a_font.exists valid: a_x >= 0.to_real and a_y >= 0.to_real exists: exists draw_string_with_length_font_rect_format_brush (a_string: READABLE_STRING_GENERAL; a_length: INTEGER_32; a_font: WEL_GDIP_FONT; a_rect_f: WEL_GDIP_RECT_F; a_format: WEL_GDIP_STRING_FORMAT; a_brush: WEL_GDIP_BRUSH) -- Draw string with arguments. require not_void: a_string /= Void valid: a_length >= 0 not_void: a_font /= Void a_font_exists: a_font.exists not_void: a_rect_f /= Void a_format_not_void: a_format /= Void a_format_exists: a_format.exists a_brush_not_void: a_brush /= Void a_brush_exists: a_brush.exists exists: exists fill_ellipse (a_brush: WEL_GDIP_BRUSH; a_x, a_y, a_width, a_height: INTEGER_32) -- Fill a ellipse with the specified a_x/a_y and a_width/a_height require not_void: a_brush /= Void a_pen_exists: a_brush.exists exists: exists fill_polygon (brush: WEL_GDIP_BRUSH; coorinates: ARRAY [INTEGER_32]; mode: INTEGER_32) -- Fill the interior of a polygon defined by an array of coordinates coorinates using a brush brush and fill mode mode. require brush_attached: attached brush brush_exists: brush.exists exists: exists coordinates_attached: attached coorinates coordinates_in_pairs: coorinates.count & 1 = 0 is_mode_valid: {WEL_GDIP_FILL_MODE}.is_valid (mode) fill_rectangle (a_brush: WEL_GDIP_BRUSH; a_rect: WEL_GDIP_RECT) -- Uses a_brush to fill the interior of a rectangle. require a_brush_not_void: a_brush /= Void a_brush_exists: a_brush.exists a_rect_not_void: a_rect /= Void exists: exists flush (a_intention: INTEGER_32) -- Flushes all pending graphics operations require valid: (create {WEL_GDIP_FLUSH_INTENTION} end).is_valid (a_intention) exists: exists reset_clip -- Resets the clip region of Current to an infinite region. require exists: exists rotate_transform (a_angle: REAL_32) -- Applies the specified rotation to the transformation matrix of this Graphics. -- a_angle: Angle of rotation in degrees. require exists: exists scale_transform (a_sx, a_sy: REAL_32) -- Updates Current's world transformation matrix with the product of itself and a scaling matrix (a_sx, a_sy). require valid: a_sx > 0.to_real and a_sy > 0.to_real exists: exists set_clip_graphics (a_src_graphics: WEL_GDIP_GRAPHICS) -- Updates the clipping region of Current to a region that is the combination of itself and the clipping region of a_graphics. require not_void: a_src_graphics /= Void and then a_src_graphics.exists exists: exists set_clip_path (a_path: WEL_GDIP_GRAPHICS_PATH) -- Updates the clipping region of this Graphics object to a region that is the combination of itself and the region specified by -- a graphics path. If a figure in the path is not closed, this method treats the nonclosed figure as if it were closed by a -- straight line that connects the figure's starting and ending points. require a_path_not_void: a_path /= Void a_path_exists: a_path.exists exists: exists set_clip_rect (a_rect: WEL_GDIP_RECT) -- Sets the clipping region of Current to a_rect require not_void: a_rect /= Void exists: exists set_smoothing_mode (mode: INTEGER_32) require is_mode_valid: {WEL_GDIP_SMOOTHING_MODE}.is_valid (mode) exists translate_transform (a_dx, a_dy: REAL_32) -- Updates Current's world transformation matrix with the product of itself and a translation matrix (a_dx, a_dy). require exists: exists feature -- Destroy destroy_item -- Free Current Gdi+ object memory. require -- from WEL_ANY exists: exists 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 dc: WEL_MEMORY_DC -- Get a gdi DC. require exists: exists ensure dc_not_void: Result /= Void dc_exists: Result.exists is_gdi_plus_installed: BOOLEAN -- If gdiplus.dll can be found on user's machine? -- (from WEL_GDIP_ANY) release_dc (a_dc: WEL_DC) -- Release a_dc which was created by previous calling of `dc`. require a_dc_not_void: a_dc /= Void a_dc_exists: a_dc.exists exists: exists invariant -- from WEL_GDIP_ANY support: is_gdi_plus_installed -- 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 WEL_GDIP_GRAPHICS
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

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