Closed Bug 234984 Opened 21 years ago Closed 21 years ago

Add convenience methods to nsRect

Categories

(Core Graveyard :: GFX, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file)

I'd like to add a few things to nsRect:
-- operator+ and operator- to translate by an nsPoint
-- methods to return the corners of the rect as nsPoints

Also, nsRect and nsSize have some bogus operator+ and operator- methods. It
doesn't make sense to add two rectangles or two sizes. (Adding two sizes is
marginal; subtracting one size from another is really dumb.)
Attachment #141793 - Flags: superreview?(dbaron)
Attachment #141793 - Flags: review?(dbaron)
Attachment #141793 - Flags: superreview?(dbaron)
Attachment #141793 - Flags: superreview+
Attachment #141793 - Flags: review?(dbaron)
Attachment #141793 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: