Audacity
3.2.0
src
widgets
AttachableScrollBar.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
AttachableScrollBar.h
6
7
James Crook
8
9
A scroll bar that can be attached to multiple items and so control
10
their scrolling.
11
12
Audacity is free software.
13
This file is licensed under the wxWidgets license, see License.txt
14
15
**********************************************************************/
16
17
#ifndef __AUDACITY_ATTACHABLE_SCROLL_BAR__
18
#define __AUDACITY_ATTACHABLE_SCROLL_BAR__
19
20
#include <wx/scrolbar.h>
// to inherit
21
22
class
ViewInfo
;
23
24
class
AUDACITY_DLL_API
AttachableScrollBar
final :
25
public
wxScrollBar
26
{
27
public
:
28
AttachableScrollBar
(
29
wxWindow* parent,
30
wxWindowID
id
,
31
const
wxPoint& pos = wxDefaultPosition,
32
const
wxSize&
size
= wxDefaultSize,
33
long
style
= wxSB_HORIZONTAL);
34
public
:
35
~AttachableScrollBar
(
void
);
36
void
OnScroll(wxScrollEvent & event);
37
void
SetViewInfo(
ViewInfo
* view );
38
39
void
SetScrollBarFromViewInfo();
40
void
SetViewInfoFromScrollBar();
41
42
ViewInfo
*
mpViewInfo
;
43
DECLARE_EVENT_TABLE()
44
};
45
46
#endif
// __AUDACITY_ATTACHABLE_SCROLL_BAR__
AttachableScrollBar
An AttachableScrollBar is a scroll bar that can be attached to multiple items and so control their sc...
Definition:
AttachableScrollBar.h:26
AttachableScrollBar::mpViewInfo
ViewInfo * mpViewInfo
Definition:
AttachableScrollBar.h:42
ViewInfo
Definition:
ViewInfo.h:193
size
size_t size
Definition:
ffmpeg-2.3.6-single-header.h:412
anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style
constexpr auto style
Definition:
AudacityDontAskAgainMessageDialog.cpp:19
Generated by
1.9.3