cwidget  0.5.16
Public Member Functions | Static Public Member Functions | Protected Member Functions
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::bin cwidget::widgets::passthrough cwidget::widgets::container cwidget::widgets::widget trackable

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:
sthe minimum size of this box
wthe widget initially contained in this box (NULL to create an initially empty box)
Parameters:
wthe 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.

References cwidget::widgets::widget::height_request().

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.

References cwidget::widgets::widget::width_request().


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