# Non-Control Widgets Tasks

Task Summary

Owner

BBox

Marc Flerackers

BStringView

BStatusBar

Marc Flerackers

Task Details

BBox Class

BBox(BRect bounds, const char* name = NULL, uint32 resizeFlags = B_FOLLOW_LEFT | B_FOLLOW_TOP, uint32 flags = B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE_JUMP, border_style border = B_FANCY_BORDER);

BBox(BMessage* data);

virtual ~BBox(void);

static BArchivable* Instantiate(BMessage* data);

virtual status_t Archive(BMessage* data, bool deep = true) const;

virtual void SetBorder(border_style style);

border_style Border() const;

void SetLabel(const char* label);

status_t SetLabel(BView* view_label);

const char* Label() const;

BView* LabelView() const;

virtual void Draw(BRect bounds);

virtual void AttachedToWindow();

virtual void DetachedFromWindow();

virtual void AllAttached();

virtual void AllDetached();

virtual void FrameResized(float new_width, float new_height);

virtual void MessageReceived(BMessage* msg);

virtual void MouseDown(BPoint pt);

virtual void MouseUp(BPoint pt);

virtual void WindowActivated(bool state);

virtual void MouseMoved(BPoint pt, uint32 code, const BMessage* msg);

virtual void FrameMoved(BPoint new_position);

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

BStringView Class

BStringView(BRect bounds, const char* name, const char* text, uint32 resizeFlags = B_FOLLOW_LEFT | B_FOLLOW_TOP, uint32 flags = B_WILL_DRAW);

BStringView(BMessage* data);

virtual ~BStringView();

static BArchivable* Instantiate(BMessage* data);

virtual status_t Archive(BMessage* data, bool deep = true) const;

void SetText(const char* text);

const char* Text() const;

void SetAlignment(alignment flag);

alignment Alignment() const;

virtual void AttachedToWindow();

virtual void Draw(BRect bounds);

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

BStatusBar Class

BStatusBar(BRect frame, const char* name, const char* label = NULL, const char* trailing_label = NULL);

BStatusBar(BMessage* data);

virtual ~BStatusBar();

static BArchivable* Instantiate(BMessage* data);

virtual status_t Archive(BMessage* data, bool deep = true) const;

virtual void AttachedToWindow();

virtual void MessageReceived(BMessage* msg);

virtual void Draw(BRect updateRect);

virtual void SetBarColor(rgb_color color);

virtual void SetBarHeight(float height);

virtual void SetText(const char* str);

virtual void SetTrailingText(const char* str);

virtual void SetMaxValue(float max);

virtual void Update(float delta, const char* main_text = NULL, const char* trailing_text = NULL);

virtual void Reset(const char* label = NULL, const char* trailing_label = NULL);

float CurrentValue() const;

float MaxValue() const;

rgb_color BarColor() const;

float BarHeight() const;

const char* Text() const;

const char* TrailingText() const;

const char* Label() const;

const char* TrailingLabel() const;

virtual void MouseDown(BPoint pt);

virtual void MouseUp(BPoint pt);

virtual void WindowActivated(bool state);

virtual void MouseMoved(BPoint pt, uint32 code, const BMessage* msg);

virtual void DetachedFromWindow();

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

Legend

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

The OpenBeOS project is hosted by:

Copyright © 2001-2002 OpenBeOS Project