Added LLView::translateIntoRectWithExclusion utility function.

This commit is contained in:
Shyotl
2012-02-19 13:11:52 -06:00
parent b0240320ee
commit cf4b8cf263
2 changed files with 79 additions and 24 deletions

View File

@@ -391,6 +391,7 @@ public:
virtual void translate( S32 x, S32 y );
void setOrigin( S32 x, S32 y ) { mRect.translate( x - mRect.mLeft, y - mRect.mBottom ); }
BOOL translateIntoRect( const LLRect& constraint, BOOL allow_partial_outside );
BOOL translateIntoRectWithExclusion( const LLRect& inside, const LLRect& exclude, BOOL allow_partial_outside );
void centerWithin(const LLRect& bounds);
void setShape(const LLRect& new_rect, bool by_user = false);