INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Rectangle Functions"
project: "Visual Eiffel Win32 Library"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: winlib
class WAPI_RECTANGLE_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Access

InflateRect (lprc: POINTER; dx, dy: INTEGER)
-- The 'InflateRect' procedure increases or decreases the width
-- and height of the specified rectangle. The 'InflateRect' procedure adds
-- dx units to the left and right ends of the rectangle and dy units
-- to the top and bottom. The dx and dy parameters are signed values;
-- positive values increase the width and height, and negative values
-- decrease them.
require
correct_lprc: lprc /= default_pointer

OffsetRect (lprc: POINTER; dx, dy: INTEGER)
-- The `OffsetRect' function moves the specified rectangle by the
-- specified offsets.
require
correct_lprc: lprc /= default_pointer

PtInRect (lprc: POINTER; ptx, pty: INTEGER): INTEGER
-- The 'PtInRect' function determines whether the specified point lies
-- within the specified rectangle. A point is within a rectangle if it
-- lies on the left or top side or is within all four sides. A point
-- on the right or bottom side is considered outside the rectangle.
require
correct_lprc: lprc /= default_pointer

SetRect (lprc: POINTER; nleft, ntop, nright, nbottom: INTEGER)
-- The 'SetRect' procedure sets the coordinates of the specified rectangle.
-- This is equivalent to assigning the left, top, right, and bottom
-- arguments to the appropriate members of the WAPI_RECT structure.
require
correct_lprc: lprc /= default_pointer

SetRectEmpty (lprc: POINTER)
-- The 'SetRectEmpty' procedure creates an empty rectangle in which
-- all coordinates are set to zero.
require
correct_lprc: lprc /= default_pointer
feature -- Implementation

wInflateRect (lprc: POINTER; dx, dy: INTEGER): INTEGER

frozen wOffsetRect (lprc: POINTER; dx, dy: INTEGER): INTEGER

wSetRect (lprc: POINTER; nleft, ntop, nright, nbottom: INTEGER): INTEGER

wSetRectEmpty (lprc: POINTER): INTEGER

frozen IntersectRect (lprcdst: POINTER; lprcsrc1: POINTER; lprcsrc2: POINTER): INTEGER
-- BOOL
-- The IntersectRect function calculates the intersection of two source
-- rectangles and places the coordinates of the intersection rectangle
-- into the destination rectangle. If the source rectangles do not
-- intersect, an empty rectangle (in which all coordinates are set to zero)
-- is placed into the destination rectangle.

frozen EqualRect (lprc1: POINTER; lprc2: POINTER): INTEGER
-- BOOL
-- The EqualRect function determines whether the two specified rectangles
-- are equal by comparing the coordinates of their upper-left and
-- lower-right corners.

frozen UnionRect (lprcdst: POINTER; lprcsrc1: POINTER; lprcsrc2: POINTER): INTEGER
-- BOOL
-- The UnionRect function creates the union of two rectangles. The union
-- is the smallest rectangle that contains both source rectangles.
end -- class WAPI_RECTANGLE_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES