cwidget::widgets::transient Class Reference

This class is a visually transparent wrapper around another widget. More...

#include <transient.h>

Inheritance diagram for cwidget::widgets::transient:

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

Public Member Functions

int width_request ()
int height_request (int width)
 Calculate the desired height of the subwidget.
bool focus_me ()
bool handle_char (chtype ch)
 Destroy the transient.

Static Public Member Functions

static util::ref_ptr< transientcreate (const widget_ref &w=NULL)
 Create a new transient.

Protected Member Functions

 transient (const widget_ref &w)

Detailed Description

This class is a visually transparent wrapper around another widget.

It captures all keystrokes (preventing the subwidget from recieving them), and destroys itself upon receiving one.


Member Function Documentation

static util::ref_ptr<transient> cwidget::widgets::transient::create const widget_ref &  w = NULL  )  [inline, static]
 

Create a new transient.

Parameters:
w the widget to place inside the transient wrapper.

bool cwidget::widgets::transient::focus_me  )  [virtual]
 

Returns:
true: transients can always be focussed.

Reimplemented from cwidget::widgets::widget.

bool cwidget::widgets::transient::handle_char chtype  ch  ) 
 

Destroy the transient.

Returns:
true.

int cwidget::widgets::transient::height_request int  width  )  [virtual]
 

Calculate the desired height of the subwidget.

Parameters:
width the width of this widget
Returns:
the desired height

Implements cwidget::widgets::widget.

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

Returns:
the desired width of the subwidget.

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