Audacity  2.2.0
AttachableScrollBar Class Referencefinal

An AttachableScrollBar is a scroll bar that can be attached to multiple items and so control their scrolling. Uses floats internally, not ints, allowing for (external) control of zooming. More...

#include <AttachableScrollBar.h>

Inheritance diagram for AttachableScrollBar:

Public Member Functions

 AttachableScrollBar (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSB_HORIZONTAL)
 
 ~AttachableScrollBar (void)
 
void OnScroll (wxScrollEvent &event)
 
void SetViewInfo (ViewInfo *view)
 
void SetScrollBarFromViewInfo ()
 
void SetViewInfoFromScrollBar ()
 

Public Attributes

ViewInfompViewInfo
 

Detailed Description

An AttachableScrollBar is a scroll bar that can be attached to multiple items and so control their scrolling. Uses floats internally, not ints, allowing for (external) control of zooming.

Limitations:

  • Currently horizontal only.
  • Attached item repainting not yet supported. Instead for now place the attached windows in an InvisiblePanel, and rely on refreshing of the invisible panel to refresh each of the objects.
  • Currently closely tied to the mViewInfo class. This will change to make the class much more generic.

Constructor & Destructor Documentation

AttachableScrollBar::AttachableScrollBar ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxSB_HORIZONTAL 
)
AttachableScrollBar::~AttachableScrollBar ( void  )

Member Function Documentation

void AttachableScrollBar::OnScroll ( wxScrollEvent &  event)
void AttachableScrollBar::SetScrollBarFromViewInfo ( )
void AttachableScrollBar::SetViewInfo ( ViewInfo view)
void AttachableScrollBar::SetViewInfoFromScrollBar ( )

Member Data Documentation

ViewInfo* AttachableScrollBar::mpViewInfo

The documentation for this class was generated from the following files: