[ros-kernel] RECT macros question
Royce Mitchell III
royce3 at ev1.net
Sun Mar 14 21:42:00 CET 2004
Hi guys,
Do we already have macros that do this, and where are they? ( Or if we
don't have them, what should I name them and where should I put them? )
I want to use these in win32k, but I imagine they'd be useful in gdi32, too.
#define IN_RECT(r,x,y) \
( \
(x) >= (r).left && \
(y) >= (r).top && \
(x) < (r).right && \
(y) < (r).bottom \
)
#define RECT_OVERLAP(a,b) \
( \
(a).left < (b).right && \
(b).left < (a).right && \
(a).top < (b).bottom && \
(b).top < (a).bottom \
)
More information about the Ros-kernel
mailing list