Audacity 3.2.0
|
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>
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 | |
ViewInfo * | mpViewInfo |
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:
Definition at line 24 of file AttachableScrollBar.h.
AttachableScrollBar::AttachableScrollBar | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxSB_HORIZONTAL |
||
) |
Definition at line 41 of file AttachableScrollBar.cpp.
AttachableScrollBar::~AttachableScrollBar | ( | void | ) |
Definition at line 52 of file AttachableScrollBar.cpp.
void AttachableScrollBar::OnScroll | ( | wxScrollEvent & | event | ) |
Definition at line 95 of file AttachableScrollBar.cpp.
References mpViewInfo, and SetViewInfoFromScrollBar().
void AttachableScrollBar::SetScrollBarFromViewInfo | ( | ) |
Definition at line 57 of file AttachableScrollBar.cpp.
References ViewInfo::GetBeforeScreenWidth(), and mpViewInfo.
Referenced by SetViewInfo().
void AttachableScrollBar::SetViewInfo | ( | ViewInfo * | view | ) |
Definition at line 89 of file AttachableScrollBar.cpp.
References mpViewInfo, and SetScrollBarFromViewInfo().
void AttachableScrollBar::SetViewInfoFromScrollBar | ( | ) |
Definition at line 73 of file AttachableScrollBar.cpp.
References mpViewInfo.
Referenced by OnScroll().
ViewInfo* AttachableScrollBar::mpViewInfo |
Definition at line 42 of file AttachableScrollBar.h.
Referenced by OnScroll(), SetScrollBarFromViewInfo(), SetViewInfo(), and SetViewInfoFromScrollBar().