aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llscrollcontainer.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:59 -0500
committerJacek Antonelli2008-08-15 23:44:59 -0500
commita408bac29378072fbf36864164149458c978cfcc (patch)
tree67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/llui/llscrollcontainer.h
parentSecond Life viewer sources 1.17.0.12 (diff)
downloadmeta-impy-a408bac29378072fbf36864164149458c978cfcc.zip
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz
Second Life viewer sources 1.17.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llscrollcontainer.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/linden/indra/llui/llscrollcontainer.h b/linden/indra/llui/llscrollcontainer.h
index 3b3bbef..34fff9c 100644
--- a/linden/indra/llui/llscrollcontainer.h
+++ b/linden/indra/llui/llscrollcontainer.h
@@ -35,6 +35,7 @@
35#endif 35#endif
36#include "stdenums.h" 36#include "stdenums.h"
37#include "llcoord.h" 37#include "llcoord.h"
38#include "llscrollbar.h"
38 39
39//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40// Class LLScrollableContainerView 41// Class LLScrollableContainerView
@@ -47,7 +48,6 @@
47// This class is a decorator class. 48// This class is a decorator class.
48//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 49//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49 50
50class LLScrollbar;
51class LLViewBorder; 51class LLViewBorder;
52class LLUICtrlFactory; 52class LLUICtrlFactory;
53 53
@@ -55,6 +55,10 @@ class LLUICtrlFactory;
55class LLScrollableContainerView : public LLUICtrl 55class LLScrollableContainerView : public LLUICtrl
56{ 56{
57public: 57public:
58 // Note: vertical comes before horizontal because vertical
59 // scrollbars have priority for mouse and keyboard events.
60 enum SCROLL_ORIENTATION { VERTICAL, HORIZONTAL, SCROLLBAR_COUNT };
61
58 LLScrollableContainerView( const LLString& name, const LLRect& rect, 62 LLScrollableContainerView( const LLString& name, const LLRect& rect,
59 LLView* scrolled_view, BOOL is_opaque = FALSE, 63 LLView* scrolled_view, BOOL is_opaque = FALSE,
60 const LLColor4& bg_color = LLColor4(0,0,0,0) ); 64 const LLColor4& bg_color = LLColor4(0,0,0,0) );
@@ -88,6 +92,8 @@ public:
88 void goToBottom(); 92 void goToBottom();
89 S32 getBorderWidth(); 93 S32 getBorderWidth();
90 94
95 BOOL needsToScroll(S32 x, S32 y, SCROLL_ORIENTATION axis);
96
91 // LLView functionality 97 // LLView functionality
92 virtual void reshape(S32 width, S32 height, BOOL called_from_parent); 98 virtual void reshape(S32 width, S32 height, BOOL called_from_parent);
93 virtual BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent); 99 virtual BOOL handleKey(KEY key, MASK mask, BOOL called_from_parent);
@@ -110,10 +116,6 @@ protected:
110 virtual void scrollVertical( S32 new_pos ); 116 virtual void scrollVertical( S32 new_pos );
111 void updateScroll(); 117 void updateScroll();
112 118
113 // Note: vertical comes before horizontal because vertical
114 // scrollbars have priority for mouse and keyboard events.
115 enum { VERTICAL, HORIZONTAL, SCROLLBAR_COUNT };
116
117 LLScrollbar* mScrollbar[SCROLLBAR_COUNT]; 119 LLScrollbar* mScrollbar[SCROLLBAR_COUNT];
118 LLView* mScrolledView; 120 LLView* mScrolledView;
119 S32 mSize; 121 S32 mSize;