From eb154aa999b49eee67b741f86d6ee35eadbfa893 Mon Sep 17 00:00:00 2001 From: troy Date: Tue, 12 May 1998 23:02:14 +0000 Subject: [PATCH] Changed API git-svn-id: svn://10.0.0.236/trunk@1479 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/public/nsISpaceManager.h | 33 +++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/base/public/nsISpaceManager.h b/mozilla/layout/base/public/nsISpaceManager.h index 7909c4d257e..4bf4e92629d 100644 --- a/mozilla/layout/base/public/nsISpaceManager.h +++ b/mozilla/layout/base/public/nsISpaceManager.h @@ -132,8 +132,39 @@ public: /** * Add a rectangular region of unavailable space. The space is relative to * the local coordinate system. + * + * The region is tagged with a frame, which is used to identify the region. + * The frame must not be NULL + * + * Returns PR_TRUE if successful and PR_FALSE otherwise, e.g. there is already + * a region tagged with aFrame */ - virtual void AddRectRegion(const nsRect& aUnavailableSpace, nsIFrame* aFrame) = 0; + virtual PRBool AddRectRegion(nsIFrame* aFrame, const nsRect& aUnavailableSpace) = 0; + + /** + * Reshape the rectangular region associated with aFrame. The new space is + * relative to the local coordinate system. + * + * Returns PR_TRUE if successful and PR_FALSE otherwise, e.g. there is no region + * tagged with aFrame + */ + virtual PRBool ReshapeRectRegion(nsIFrame* aFrame, const nsRect& aUnavailableSpace) = 0; + + /** + * Offset the region associated with aFrame by the specified amount. + * + * Returns PR_TRUE if successful and PR_FALSE otherwise, e.g. there is no region + * tagged with aFrame + */ + virtual PRBool OffsetRegion(nsIFrame* aFrame, nscoord dx, nscoord dy) = 0; + + /** + * Remove the region associated with aFrane. + * + * Returns PR_TRUE if successful and PR_FALSE otherwise, e.g. there is no region + * tagged with aFrame + */ + virtual PRBool RemoveRegion(nsIFrame* aFrame) = 0; /** * Clears the list of regions representing the unavailable space.