cwidget::widgets::size_box Class Reference

A size_box ensures that the requested size of its child is a given size or larger. More...

#include <size_box.h>

Inheritance diagram for cwidget::widgets::size_box:

cwidget::widgets::widget List of all members.

Public Member Functions

int width_request ()
int height_request (int w)

Static Public Member Functions

static util::ref_ptr< size_boxcreate (size s, const widget_ref &w=NULL)
 Create a size_box.

Protected Member Functions

 size_box (size s, const widget_ref &w)

Detailed Description

A size_box ensures that the requested size of its child is a given size or larger.


Member Function Documentation

static util::ref_ptr<size_box> cwidget::widgets::size_box::create size  s,
const widget_ref &  w = NULL
[inline, static]
 

Create a size_box.

Parameters:
s the minimum size of this box
w the widget initially contained in this box (NULL to create an initially empty box)

int cwidget::widgets::size_box::height_request int  w  )  [virtual]
 

Parameters:
w the width for which a height should be calculated.
Returns:
the least upper bound of the minimum size passed to the constructor and the true size request of the child.

Implements cwidget::widgets::widget.

int cwidget::widgets::size_box::width_request  )  [virtual]
 

Returns:
the least upper bound of the minimum size passed to the constructor and the true size request of the child.

Implements cwidget::widgets::widget.


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 01:16:31 2009 for cwidget by  doxygen 1.4.6