BC_ScrollBar Class Reference

#include <bcscrollbar.h>

Inherits BC_SubWindow.

Inherited by BC_ListBoxXScroll, BC_ListBoxYScroll, BC_ScrollTextBoxYScroll, CanvasXScroll, CanvasYScroll, SampleScroll, SynthScroll, and TrackScroll.

Collaboration diagram for BC_ScrollBar:

Collaboration graph
[legend]

Public Member Functions

 BC_ScrollBar (int x, int y, int orientation, int pixels, int64_t length, int64_t position, int64_t handlelength, VFrame **data=0)
virtual ~BC_ScrollBar ()
virtual int handle_event ()
int initialize ()
int cursor_motion_event ()
int cursor_leave_event ()
int cursor_enter_event ()
int button_press_event ()
int button_release_event ()
int repeat_event (int64_t repeat_id)
int64_t get_value ()
int64_t get_position ()
int64_t get_length ()
int64_t get_handlelength ()
int get_pixels ()
void set_images (VFrame **data)
int in_use ()
int update_value (int64_t value)
int update_length (int64_t length, int64_t position, int64_t handlelength)
int reposition_window (int x, int y, int pixels)
int get_span ()
int get_arrow_pixels ()

Static Public Member Functions

static int get_span (int orientation)

Private Member Functions

void calculate_dimensions (int &w, int &h)
int activate ()
void draw ()
void get_handle_dimensions ()
int get_cursor_zone (int cursor_x, int cursor_y)

Private Attributes

int64_t length
int64_t position
int64_t handlelength
int selection_status
int highlight_status
int orientation
int pixels
int handle_pixel
int handle_pixels
int min_pixel
int max_pixel
int64_t repeat_count
BC_WindowBasebound_to
VFrame ** data
BC_Pixmapimages [SCROLL_IMAGES]

Friends

class BC_ListBox

Detailed Description

Definition at line 39 of file bcscrollbar.h.


Constructor & Destructor Documentation

BC_ScrollBar::BC_ScrollBar ( int  x,
int  y,
int  orientation,
int  pixels,
int64_t  length,
int64_t  position,
int64_t  handlelength,
VFrame **  data = 0 
)

BC_ScrollBar::~BC_ScrollBar (  )  [virtual]

Definition at line 43 of file bcscrollbar.C.

References images, and SCROLL_IMAGES.


Member Function Documentation

virtual int BC_ScrollBar::handle_event (  )  [inline, virtual]

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().

Here is the call graph for this function:

int BC_ScrollBar::cursor_motion_event (  )  [virtual]

int BC_ScrollBar::cursor_leave_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 411 of file bcscrollbar.C.

References draw(), and highlight_status.

Here is the call graph for this function:

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.

Here is the call graph for this function:

int BC_ScrollBar::button_press_event (  )  [virtual]

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().

Here is the call graph for this function:

int BC_ScrollBar::repeat_event ( int64_t  repeat_id  )  [virtual]

int64_t BC_ScrollBar::get_value (  ) 

int64_t BC_ScrollBar::get_position (  ) 

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 (  ) 

int BC_ScrollBar::get_pixels (  ) 

Definition at line 619 of file bcscrollbar.C.

References 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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

int BC_ScrollBar::update_length ( int64_t  length,
int64_t  position,
int64_t  handlelength 
)

int BC_ScrollBar::reposition_window ( int  x,
int  y,
int  pixels 
)

int BC_ScrollBar::get_span (  ) 

int BC_ScrollBar::get_span ( int  orientation  )  [static]

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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]

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().

Here is the call graph for this function:

int BC_ScrollBar::get_cursor_zone ( int  cursor_x,
int  cursor_y 
) [private]


Friends And Related Function Documentation

friend class BC_ListBox [friend]

Reimplemented from BC_WindowBase.

Definition at line 52 of file bcscrollbar.h.


Field Documentation

int64_t BC_ScrollBar::length [private]

int64_t BC_ScrollBar::position [private]

int64_t BC_ScrollBar::handlelength [private]

int BC_ScrollBar::pixels [private]

Definition at line 86 of file bcscrollbar.h.

Referenced by BC_ScrollBar(), draw(), get_cursor_zone(), and get_handle_dimensions().

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]

Definition at line 87 of file bcscrollbar.h.

Referenced by button_press_event().

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().

Definition at line 90 of file bcscrollbar.h.

Referenced by BC_ScrollBar(), and button_press_event().

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().


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

Generated on Mon Apr 28 14:15:23 2008 for Cinelerra by  doxygen 1.5.5