#include <bcscrollbar.h>
Inherits BC_SubWindow.
Inherited by BC_ListBoxXScroll, BC_ListBoxYScroll, BC_ScrollTextBoxYScroll, CanvasXScroll, CanvasYScroll, SampleScroll, SynthScroll, and TrackScroll.

Definition at line 39 of file bcscrollbar.h.
| BC_ScrollBar::BC_ScrollBar | ( | int | x, | |
| int | y, | |||
| int | orientation, | |||
| int | pixels, | |||
| int64_t | length, | |||
| int64_t | position, | |||
| int64_t | handlelength, | |||
| VFrame ** | data = 0 | |||
| ) |
Definition at line 10 of file bcscrollbar.C.
References bound_to, BC_WindowBase::get_resources(), handle_pixel, handle_pixels, highlight_status, BC_Resources::hscroll_data, images, repeat_count, SCROLL_HORIZ, SCROLL_IMAGES, selection_status, and BC_Resources::vscroll_data.

| BC_ScrollBar::~BC_ScrollBar | ( | ) | [virtual] |
| virtual int BC_ScrollBar::handle_event | ( | ) | [inline, virtual] |
Reimplemented in CanvasXScroll, CanvasYScroll, SampleScroll, TrackScroll, BC_ListBoxYScroll, BC_ListBoxXScroll, BC_ScrollTextBoxYScroll, and SynthScroll.
Definition at line 54 of file bcscrollbar.h.
Referenced by cursor_motion_event(), and repeat_event().
| int BC_ScrollBar::initialize | ( | ) | [virtual] |
Reimplemented from BC_SubWindow.
Definition at line 49 of file bcscrollbar.C.
References data, draw(), BC_SubWindow::initialize(), and set_images().

| int BC_ScrollBar::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 421 of file bcscrollbar.C.
References BC_WindowBase::cursor_x, BC_WindowBase::cursor_y, draw(), BC_WindowBase::event_win, get_arrow_pixels(), get_cursor_zone(), handle_event(), handlelength, highlight_status, length, min_pixel, orientation, pixels, position, SCROLL_HANDLE, SCROLL_HORIZ, selection_status, BC_WindowBase::top_level, and BC_WindowBase::win.

| int BC_ScrollBar::cursor_leave_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 411 of file bcscrollbar.C.
References draw(), and highlight_status.

| int BC_ScrollBar::cursor_enter_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 396 of file bcscrollbar.C.
References BC_WindowBase::cursor_x, BC_WindowBase::cursor_y, draw(), BC_WindowBase::event_win, get_cursor_zone(), highlight_status, BC_WindowBase::top_level, and BC_WindowBase::win.

| int BC_ScrollBar::button_press_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 465 of file bcscrollbar.C.
References activate(), bound_to, BC_WindowBase::cursor_x, BC_WindowBase::cursor_y, BC_WindowBase::deactivate(), draw(), BC_WindowBase::event_win, get_arrow_pixels(), BC_WindowBase::get_buttonpress(), get_cursor_zone(), BC_WindowBase::get_resources(), length, max_pixel, min_pixel, orientation, pixels, position, repeat_count, repeat_event(), SCROLL_BACKARROW, SCROLL_FWDARROW, SCROLL_HANDLE, SCROLL_HORIZ, BC_Resources::scroll_repeat, selection_status, BC_WindowBase::set_repeat(), BC_WindowBase::top_level, and BC_WindowBase::win.

| int BC_ScrollBar::button_release_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 549 of file bcscrollbar.C.
References draw(), BC_WindowBase::get_resources(), SCROLL_HANDLE, BC_Resources::scroll_repeat, selection_status, BC_WindowBase::top_level, and BC_WindowBase::unset_repeat().

| int BC_ScrollBar::repeat_event | ( | int64_t | repeat_id | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 512 of file bcscrollbar.C.
References draw(), BC_WindowBase::get_resources(), handle_event(), handlelength, length, position, repeat_count, SCROLL_BACKARROW, SCROLL_BACKPAGE, SCROLL_FWDARROW, SCROLL_FWDPAGE, BC_Resources::scroll_repeat, selection_status, and BC_WindowBase::top_level.
Referenced by button_press_event().

| int64_t BC_ScrollBar::get_value | ( | ) |
Definition at line 604 of file bcscrollbar.C.
References position.
Referenced by TrackScroll::get_distance(), BC_ListBoxXScroll::handle_event(), BC_ListBoxYScroll::handle_event(), TrackScroll::handle_event(), SampleScroll::handle_event(), CanvasYScroll::handle_event(), CanvasXScroll::handle_event(), and BC_ListBox::update_scrollbars().
| int64_t BC_ScrollBar::get_position | ( | ) |
Definition at line 609 of file bcscrollbar.C.
References position.
Referenced by BC_ScrollTextBoxYScroll::handle_event(), SynthWindow::update_oscillators(), and SynthWindow::update_scrollbar().
| int64_t BC_ScrollBar::get_length | ( | ) |
Definition at line 614 of file bcscrollbar.C.
References length.
Referenced by Canvas::get_scrollbars(), and BC_ListBox::update_scrollbars().
| int64_t BC_ScrollBar::get_handlelength | ( | ) |
Definition at line 629 of file bcscrollbar.C.
References handlelength.
Referenced by Canvas::get_scrollbars(), BC_ScrollTextBoxText::handle_event(), BC_ScrollTextBoxText::motion_event(), BC_ScrollTextBox::update(), and BC_ListBox::update_scrollbars().
| int BC_ScrollBar::get_pixels | ( | ) |
| void BC_ScrollBar::set_images | ( | VFrame ** | data | ) |
Definition at line 61 of file bcscrollbar.C.
References BC_WindowBase::BC_Pixmap, calculate_dimensions(), BC_WindowBase::h, images, BC_WindowBase::parent_window, SCROLL_IMAGES, and BC_WindowBase::w.
Referenced by initialize().

| int BC_ScrollBar::in_use | ( | ) |
Reimplemented in SampleScroll.
Definition at line 624 of file bcscrollbar.C.
References selection_status.
| int BC_ScrollBar::update_value | ( | int64_t | value | ) |
Definition at line 634 of file bcscrollbar.C.
References draw(), and position.
Referenced by BC_ListBox::update_scrollbars().

| int BC_ScrollBar::update_length | ( | int64_t | length, | |
| int64_t | position, | |||
| int64_t | handlelength | |||
| ) |
Definition at line 641 of file bcscrollbar.C.
References draw().
Referenced by BC_ListBox::get_scrollbars(), MWindowGUI::get_scrollbars(), Canvas::get_scrollbars(), BC_ScrollTextBoxText::handle_event(), BC_ScrollTextBoxText::motion_event(), BC_ScrollTextBox::reposition_window(), SampleScroll::set_position(), BC_ScrollTextBox::update(), SynthWindow::update_scrollbar(), BC_ListBox::update_scrollbars(), and Canvas::update_scrollbars().

| int BC_ScrollBar::reposition_window | ( | int | x, | |
| int | y, | |||
| int | pixels | |||
| ) |
Definition at line 650 of file bcscrollbar.C.
References calculate_dimensions(), draw(), BC_WindowBase::get_x(), BC_WindowBase::get_y(), and BC_WindowBase::reposition_window().
Referenced by BC_ListBox::get_scrollbars(), Canvas::get_scrollbars(), BC_ScrollTextBox::reposition_window(), BC_ListBox::reposition_window(), SynthWindow::resize_event(), TrackScroll::resize_event(), and SampleScroll::resize_event().

| int BC_ScrollBar::get_span | ( | ) |
Definition at line 105 of file bcscrollbar.C.
References data, VFrame::get_h(), VFrame::get_w(), orientation, SCROLL_HANDLE_UP, SCROLL_HORIZ, and SCROLL_VERT.
Referenced by SUV::get_mwindow_sizes(), BlondTheme::get_mwindow_sizes(), BlueDotTheme::get_mwindow_sizes(), Canvas::get_scrollbars(), BC_ScrollTextBox::reposition_window(), and SampleScroll::set_position().

| int BC_ScrollBar::get_span | ( | int | orientation | ) | [static] |
Definition at line 90 of file bcscrollbar.C.
References VFrame::get_h(), BC_WindowBase::get_resources(), VFrame::get_w(), BC_Resources::hscroll_data, SCROLL_HANDLE_UP, SCROLL_HORIZ, SCROLL_VERT, and BC_Resources::vscroll_data.

| int BC_ScrollBar::get_arrow_pixels | ( | ) |
Definition at line 120 of file bcscrollbar.C.
References data, VFrame::get_h(), VFrame::get_w(), orientation, SCROLL_BACKARROW_UP, SCROLL_HORIZ, and SCROLL_VERT.
Referenced by button_press_event(), cursor_motion_event(), draw(), get_cursor_zone(), and get_handle_dimensions().

| void BC_ScrollBar::calculate_dimensions | ( | int & | w, | |
| int & | h | |||
| ) | [private] |
Definition at line 74 of file bcscrollbar.C.
References data, VFrame::get_h(), VFrame::get_w(), orientation, pixels, SCROLL_HANDLE_UP, SCROLL_HORIZ, and SCROLL_VERT.
Referenced by reposition_window(), and set_images().

| int BC_ScrollBar::activate | ( | ) | [private, virtual] |
Reimplemented from BC_WindowBase.
Definition at line 597 of file bcscrollbar.C.
References BC_WindowBase::active_subwindow, and BC_WindowBase::top_level.
Referenced by button_press_event().
| void BC_ScrollBar::draw | ( | ) | [private] |
Definition at line 136 of file bcscrollbar.C.
References BC_WindowBase::draw_3segmenth(), BC_WindowBase::draw_3segmentv(), BC_WindowBase::draw_pixmap(), BC_WindowBase::draw_top_background(), BC_WindowBase::flash(), get_arrow_pixels(), BC_WindowBase::get_h(), get_handle_dimensions(), BC_WindowBase::get_w(), BC_WindowBase::h, handle_pixel, handle_pixels, highlight_status, images, orientation, BC_WindowBase::parent_window, SCROLL_BACKARROW, SCROLL_BACKARROW_DN, SCROLL_BACKARROW_HI, SCROLL_BACKARROW_UP, SCROLL_FWDARROW, SCROLL_FWDARROW_DN, SCROLL_FWDARROW_HI, SCROLL_FWDARROW_UP, SCROLL_HANDLE, SCROLL_HANDLE_BG, SCROLL_HANDLE_DN, SCROLL_HANDLE_HI, SCROLL_HANDLE_UP, SCROLL_HORIZ, SCROLL_VERT, selection_status, and BC_WindowBase::w.
Referenced by button_press_event(), button_release_event(), cursor_enter_event(), cursor_leave_event(), cursor_motion_event(), initialize(), repeat_event(), reposition_window(), update_length(), and update_value().

| void BC_ScrollBar::get_handle_dimensions | ( | ) | [private] |
Definition at line 342 of file bcscrollbar.C.
References CLAMP, get_arrow_pixels(), BC_WindowBase::get_resources(), handle_pixel, handle_pixels, handlelength, length, pixels, position, and BC_Resources::scroll_minhandle.
Referenced by draw().

| int BC_ScrollBar::get_cursor_zone | ( | int | cursor_x, | |
| int | cursor_y | |||
| ) | [private] |
Definition at line 564 of file bcscrollbar.C.
References get_arrow_pixels(), handle_pixel, handle_pixels, orientation, pixels, SCROLL_BACKARROW, SCROLL_BACKPAGE, SCROLL_FWDARROW, SCROLL_FWDPAGE, SCROLL_HANDLE, and SCROLL_VERT.
Referenced by button_press_event(), cursor_enter_event(), and cursor_motion_event().

friend class BC_ListBox [friend] |
int64_t BC_ScrollBar::length [private] |
Definition at line 83 of file bcscrollbar.h.
Referenced by button_press_event(), cursor_motion_event(), get_handle_dimensions(), get_length(), Tracks::move_effect(), Tracks::paste_automation(), repeat_event(), and SampleScroll::set_position().
int64_t BC_ScrollBar::position [private] |
Definition at line 83 of file bcscrollbar.h.
Referenced by button_press_event(), cursor_motion_event(), get_handle_dimensions(), get_position(), get_value(), Tracks::paste_audio_transition(), Tracks::paste_video_transition(), repeat_event(), SampleScroll::set_position(), and update_value().
int64_t BC_ScrollBar::handlelength [private] |
Definition at line 83 of file bcscrollbar.h.
Referenced by cursor_motion_event(), get_handle_dimensions(), get_handlelength(), and repeat_event().
int BC_ScrollBar::selection_status [private] |
Definition at line 84 of file bcscrollbar.h.
Referenced by BC_ScrollBar(), button_press_event(), button_release_event(), cursor_motion_event(), draw(), in_use(), and repeat_event().
int BC_ScrollBar::highlight_status [private] |
Definition at line 84 of file bcscrollbar.h.
Referenced by BC_ScrollBar(), cursor_enter_event(), cursor_leave_event(), cursor_motion_event(), and draw().
int BC_ScrollBar::orientation [private] |
Definition at line 85 of file bcscrollbar.h.
Referenced by button_press_event(), calculate_dimensions(), cursor_motion_event(), draw(), get_arrow_pixels(), get_cursor_zone(), and get_span().
int BC_ScrollBar::pixels [private] |
Definition at line 85 of file bcscrollbar.h.
Referenced by button_press_event(), calculate_dimensions(), cursor_motion_event(), get_cursor_zone(), get_handle_dimensions(), and get_pixels().
int BC_ScrollBar::handle_pixel [private] |
Definition at line 86 of file bcscrollbar.h.
Referenced by BC_ScrollBar(), draw(), get_cursor_zone(), and get_handle_dimensions().
int BC_ScrollBar::handle_pixels [private] |
Definition at line 86 of file bcscrollbar.h.
Referenced by BC_ScrollBar(), draw(), get_cursor_zone(), and get_handle_dimensions().
int BC_ScrollBar::min_pixel [private] |
Definition at line 87 of file bcscrollbar.h.
Referenced by button_press_event(), and cursor_motion_event().
int BC_ScrollBar::max_pixel [private] |
int64_t BC_ScrollBar::repeat_count [private] |
Definition at line 88 of file bcscrollbar.h.
Referenced by BC_ScrollBar(), button_press_event(), and repeat_event().
BC_WindowBase* BC_ScrollBar::bound_to [private] |
Definition at line 90 of file bcscrollbar.h.
Referenced by BC_ScrollBar(), and button_press_event().
VFrame** BC_ScrollBar::data [private] |
Definition at line 91 of file bcscrollbar.h.
Referenced by calculate_dimensions(), get_arrow_pixels(), get_span(), and initialize().
BC_Pixmap* BC_ScrollBar::images[SCROLL_IMAGES] [private] |
Definition at line 92 of file bcscrollbar.h.
Referenced by BC_ScrollBar(), draw(), set_images(), and ~BC_ScrollBar().
1.5.5