Vaca::StatusBar Class Reference

#include <StatusBar.h>

Inheritance diagram for Vaca::StatusBar:

Vaca::Widget Vaca::Component Vaca::Referenceable Vaca::NonCopyable

List of all members.

Public Member Functions

 StatusBar (Widget *parent, Style style=StatusBarStyle)
virtual ~StatusBar ()
virtual bool isLayoutFree ()
 A status bar is arranged by a Frame, but doesn't depend of the current Layout manager in that Frame.

Protected Member Functions

virtual void onPreferredSize (Size &sz)
 It should calculates the preferred size for this widget.


Constructor & Destructor Documentation

StatusBar::StatusBar ( Widget parent,
Style  style = StatusBarStyle 
)

StatusBar::~StatusBar (  )  [virtual]


Member Function Documentation

bool StatusBar::isLayoutFree (  )  [virtual]

A status bar is arranged by a Frame, but doesn't depend of the current Layout manager in that Frame.

Reimplemented from Vaca::Widget.

void StatusBar::onPreferredSize ( Size sz  )  [protected, virtual]

It should calculates the preferred size for this widget.

Parameters:
sz It's for input and output. You should put the preferred size in this value, but also you should read the input value to know if you must to fit the widget in some size. The possible values for sz are:
  • sz = Size(0, 0) to calculate the preferred size without restrictions.
  • sz = Size(width, 0) to calculate the preferred size with restricted <= width.
  • sz = Size(0, height) to calculate the preferred size with restricted <= height.

Reimplemented from Vaca::Widget.