DisplayUtil, mostly placeholder now, but I'll write the rest of this method

tomorrow.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4185 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-06-09 01:59:32 +00:00
parent d948eb4f37
commit 17abf35d05
+25
View File
@@ -0,0 +1,25 @@
package com.threerings.util {
import flash.geom.Point;
import flash.geom.Rectangle;
public class DisplayUtil
{
/**
* Position the specified rectangle within the bounds, avoiding
* any of the Rectangles in the avoid array, which may be destructively
* modified.
*
* @return true if the rectangle was successfully placed, given the
* constraints, or false if the positioning failed (the rectangle will
* be left at its original location.
*/
public static function positionRect (
r :Rectangle, bounds :Rectangle, avoid :Array) :Boolean
{
var origPos :Point = r.topLeft;
return true;
}
}
}