~unity-team/unity/trusty-1066971

« back to all changes in this revision

Viewing changes to unity-shared/VScrollBarOverlayWindow.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2014-08-06 14:09:30 UTC
  • mto: This revision was merged to the branch mainline in revision 3802.
  • Revision ID: mail@3v1n0.net-20140806140930-knkc0x43ree376r1
PlacesOverlayVScrollBar and VScrollBarOverlayWindow: add support for scaling

Add a new ScrollView class to create ScrollViews with an OverlayScrollbar and with scaling support.
Using them in dash Scopes and Previews.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
public:
34
34
  VScrollBarOverlayWindow(nux::Geometry const& geo);
35
 
  virtual ~VScrollBarOverlayWindow() {}
 
35
 
 
36
  nux::Property<double> scale;
36
37
 
37
38
  void UpdateGeometry(nux::Geometry const& geo);
38
39
  void SetThumbOffsetY(int y);
85
86
 
86
87
  void MouseDragging();
87
88
  void UpdateMouseOffsetX();
 
89
  void UpdateContentGeometry();
88
90
  int GetValidOffsetYValue(int y) const;
89
91
 
90
92
  void ShouldShow();