MMSHBoxWidget Class Reference

With this class you can get a horizontal box. More...

#include <mmshboxwidget.h>

Inheritance diagram for MMSHBoxWidget:

List of all members.


Public Member Functions

 MMSHBoxWidget (MMSWindow *root)
MMSWidgetcopyWidget ()
void add (MMSWidget *widget)

Private Member Functions

bool create (MMSWindow *root)
void calcSize (int *num_spacers, int *last_spacer, int *required_pix, int *remain_pix, int *avail_pix, int *fixed_pix, int *dyn_pix, int *min_dyn_pix, float dyn_reduce_factor)
void recalculateChildren ()
void setContentSizeFromChildren ()
 Internal method: Can be overridden by a specific widget which calculate it's own size from children.

Detailed Description

With this class you can get a horizontal box.

The hbox widget is a container for other widgets. You can add more than one child widget to a hbox. Widgets different from MMSHBoxWidget/MMSVBoxWidget can only have one child widget. The child widgets will be horizontal arranged. The hbox widget cannot be focused and displays nothing.

Author:
Jens Schneider

Definition at line 46 of file mmshboxwidget.h.


Constructor & Destructor Documentation

MMSHBoxWidget::MMSHBoxWidget ( MMSWindow root  ) 

Definition at line 35 of file mmshboxwidget.cpp.


Member Function Documentation

bool MMSHBoxWidget::create ( MMSWindow root  )  [private]

Definition at line 39 of file mmshboxwidget.cpp.

void MMSHBoxWidget::calcSize ( int *  num_spacers,
int *  last_spacer,
int *  required_pix,
int *  remain_pix,
int *  avail_pix,
int *  fixed_pix,
int *  dyn_pix,
int *  min_dyn_pix,
float  dyn_reduce_factor 
) [private]

Definition at line 63 of file mmshboxwidget.cpp.

void MMSHBoxWidget::recalculateChildren (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 126 of file mmshboxwidget.cpp.

void MMSHBoxWidget::setContentSizeFromChildren (  )  [private, virtual]

Internal method: Can be overridden by a specific widget which calculate it's own size from children.

Reimplemented from MMSWidget.

Definition at line 215 of file mmshboxwidget.cpp.

MMSWidget * MMSHBoxWidget::copyWidget (  )  [virtual]

Implements MMSWidget.

Definition at line 44 of file mmshboxwidget.cpp.

void MMSHBoxWidget::add ( MMSWidget widget  )  [virtual]

Reimplemented from MMSWidget.

Definition at line 54 of file mmshboxwidget.cpp.


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