diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llview.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/llui/llview.h b/linden/indra/llui/llview.h index 3885789..cb9a35c 100644 --- a/linden/indra/llui/llview.h +++ b/linden/indra/llui/llview.h | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -313,6 +314,7 @@ public: | |||
313 | const LLRect getScreenRect() const; | 314 | const LLRect getScreenRect() const; |
314 | const LLRect getLocalRect() const; | 315 | const LLRect getLocalRect() const; |
315 | virtual const LLRect getSnapRect() const { return mRect; } | 316 | virtual const LLRect getSnapRect() const { return mRect; } |
317 | virtual const LLRect getLocalSnapRect() const; | ||
316 | 318 | ||
317 | virtual LLRect getRequiredRect(); // Get required size for this object. 0 for width/height means don't care. | 319 | virtual LLRect getRequiredRect(); // Get required size for this object. 0 for width/height means don't care. |
318 | virtual void updateRect(); // apply procedural updates to own rectangle | 320 | virtual void updateRect(); // apply procedural updates to own rectangle |
@@ -334,12 +336,13 @@ public: | |||
334 | 336 | ||
335 | // Default behavior is to use reshape flags to resize child views | 337 | // Default behavior is to use reshape flags to resize child views |
336 | virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); | 338 | virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); |
337 | |||
338 | virtual void translate( S32 x, S32 y ); | 339 | virtual void translate( S32 x, S32 y ); |
339 | virtual void setOrigin( S32 x, S32 y ) { mRect.translate( x - mRect.mLeft, y - mRect.mBottom ); } | 340 | virtual void setOrigin( S32 x, S32 y ) { mRect.translate( x - mRect.mLeft, y - mRect.mBottom ); } |
340 | BOOL translateIntoRect( const LLRect& constraint, BOOL allow_partial_outside ); | 341 | BOOL translateIntoRect( const LLRect& constraint, BOOL allow_partial_outside ); |
341 | LLView* findSnapRect(LLRect& new_rect, const LLCoordGL& mouse_dir, LLView::ESnapType snap_type, S32 threshold, S32 padding = 0); | 342 | |
342 | LLView* findSnapEdge(S32& new_edge_val, const LLCoordGL& mouse_dir, ESnapEdge snap_edge, ESnapType snap_type, S32 threshold, S32 padding = 0); | 343 | virtual void userSetShape(const LLRect& new_rect); |
344 | virtual LLView* findSnapRect(LLRect& new_rect, const LLCoordGL& mouse_dir, LLView::ESnapType snap_type, S32 threshold, S32 padding = 0); | ||
345 | virtual LLView* findSnapEdge(S32& new_edge_val, const LLCoordGL& mouse_dir, ESnapEdge snap_edge, ESnapType snap_type, S32 threshold, S32 padding = 0); | ||
343 | 346 | ||
344 | // Defaults to other_view->getVisible() | 347 | // Defaults to other_view->getVisible() |
345 | virtual BOOL canSnapTo(LLView* other_view); | 348 | virtual BOOL canSnapTo(LLView* other_view); |
@@ -364,6 +367,8 @@ public: | |||
364 | /*virtual*/ BOOL handleScrollWheel(S32 x, S32 y, S32 clicks); | 367 | /*virtual*/ BOOL handleScrollWheel(S32 x, S32 y, S32 clicks); |
365 | /*virtual*/ BOOL handleRightMouseDown(S32 x, S32 y, MASK mask); | 368 | /*virtual*/ BOOL handleRightMouseDown(S32 x, S32 y, MASK mask); |
366 | /*virtual*/ BOOL handleRightMouseUp(S32 x, S32 y, MASK mask); | 369 | /*virtual*/ BOOL handleRightMouseUp(S32 x, S32 y, MASK mask); |
370 | /*virtual*/ void onMouseCaptureLost(); | ||
371 | /*virtual*/ BOOL hasMouseCapture(); | ||
367 | 372 | ||
368 | // Default behavior is to pass the tooltip event to children, | 373 | // Default behavior is to pass the tooltip event to children, |
369 | // then display mToolTipMsg if no child handled it. | 374 | // then display mToolTipMsg if no child handled it. |