# Scrolling Support Tasks

|  |  |  |  | Task Summary | Owner
|  |  |  |  | BScrollBar |
|  |  |  |  | BScrollView |
|  |  |  |  | Scrollbar Config |

|  |  |  |  | Task Details
BScrollBar Class
|  |  |  |  | BScrollBar(BRect frame, const char* name, BView* target, float min, float max, orientation direction);
|  |  |  |  | BScrollBar(BMessage* data);
|  |  |  |  | virtual ~BScrollBar();
|  |  |  |  | static BArchivable* Instantiate(BMessage* data);
|  |  |  |  | virtual status_t Archive(BMessage* data, bool deep = true) const;
|  |  |  |  | virtual void AttachedToWindow();
|  |  |  |  | void SetValue(float value);
|  |  |  |  | float Value() const;
|  |  |  |  | void SetProportion(float);
|  |  |  |  | float Proportion() const;
|  |  |  |  | virtual void ValueChanged(float newValue);
|  |  |  |  | void SetRange(float min, float max);
|  |  |  |  | void GetRange(float* min, float* max) const;
|  |  |  |  | void SetSteps(float smallStep, float largeStep);
|  |  |  |  | void GetSteps(float* smallStep, float* largeStep) const;
|  |  |  |  | void SetTarget(BView* target);
|  |  |  |  | void SetTarget(const char* targetName);
|  |  |  |  | BView* Target() const;
|  |  |  |  | orientation Orientation() const;
|  |  |  |  | virtual void MessageReceived(BMessage* msg);
|  |  |  |  | virtual void MouseDown(BPoint pt);
|  |  |  |  | virtual void MouseUp(BPoint pt);
|  |  |  |  | virtual void MouseMoved(BPoint pt, uint32 code, const BMessage* msg);
|  |  |  |  | virtual void DetachedFromWindow();
|  |  |  |  | virtual void Draw(BRect updateRect);
|  |  |  |  | virtual void FrameMoved(BPoint new_position);
|  |  |  |  | virtual void FrameResized(float new_width, float new_height);
|  |  |  |  | virtual BHandler* ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier, int32 form, const char* property);
|  |  |  |  | virtual void ResizeToPreferred();
|  |  |  |  | virtual void GetPreferredSize(float* width, float* height);
|  |  |  |  | virtual void MakeFocus(bool state = true);
|  |  |  |  | virtual void AllAttached();
|  |  |  |  | virtual void AllDetached();
|  |  |  |  | virtual status_t GetSupportedSuites(BMessage* data);
BScrollView Class
|  |  |  |  | BScrollView(const char* name, BView* target, uint32 resizeMask = B_FOLLOW_LEFT | B_FOLLOW_TOP, uint32 flags = 0, bool horizontal = false, bool vertical = false, border_style border = B_FANCY_BORDER);
|  |  |  |  | BScrollView(BMessage* data);
|  |  |  |  | virtual ~BScrollView();
|  |  |  |  | static BArchivable* Instantiate(BMessage* data);
|  |  |  |  | virtual status_t Archive(BMessage* data, bool deep = true) const;
|  |  |  |  | virtual void Draw(BRect updateRect);
|  |  |  |  | virtual void AttachedToWindow();
|  |  |  |  | BScrollBar* ScrollBar(orientation flag) const;
|  |  |  |  | virtual void SetBorder(border_style border);
|  |  |  |  | border_style Border() const;
|  |  |  |  | virtual status_t SetBorderHighlighted(bool state);
|  |  |  |  | bool IsBorderHighlighted() const;
|  |  |  |  | void SetTarget(BView* new_target);
|  |  |  |  | BView* Target() const;
|  |  |  |  | virtual void MessageReceived(BMessage* msg);
|  |  |  |  | virtual void MouseDown(BPoint pt);
|  |  |  |  | virtual void WindowActivated(bool state);
|  |  |  |  | virtual void MouseUp(BPoint pt);
|  |  |  |  | virtual void MouseMoved(BPoint pt, uint32 code, const BMessage* msg);
|  |  |  |  | virtual void DetachedFromWindow();
|  |  |  |  | virtual void AllAttached();
|  |  |  |  | virtual void AllDetached();
|  |  |  |  | virtual void FrameMoved(BPoint new_position);
|  |  |  |  | virtual void FrameResized(float new_width, float new_height);
|  |  |  |  | virtual BHandler* ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier, int32 form, const char* property);
|  |  |  |  | virtual void ResizeToPreferred();
|  |  |  |  | virtual void GetPreferredSize(float* width, float* height);
|  |  |  |  | virtual void MakeFocus(bool state = true);
|  |  |  |  | virtual status_t GetSupportedSuites(BMessage* data);
Scrollbar Config Functions
|  |  |  |  | status_t get_scroll_bar_info(scroll_bar_info* info);
|  |  |  |  | status_t set_scroll_bar_info(scroll_bar_info* info);

Legend
| Functional Spec
| Use Cases
| Unit Tests
| Technical Spec
| Implementation
| Completed

The OpenBeOS project is hosted by:

Copyright © 2001-2002 OpenBeOS Project