cwidget
0.5.16
|
This class is a visually transparent wrapper around another widget. More...
#include <transient.h>
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< transient > | create (const widget_ref &w=NULL) |
Create a new transient. | |
Protected Member Functions | |
transient (const widget_ref &w) |
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.
static util::ref_ptr<transient> cwidget::widgets::transient::create | ( | const widget_ref & | w = NULL | ) | [inline, static] |
Create a new transient.
w | the widget to place inside the transient wrapper. |
bool cwidget::widgets::transient::focus_me | ( | ) | [virtual] |
Reimplemented from cwidget::widgets::passthrough.
bool cwidget::widgets::transient::handle_char | ( | chtype | ch | ) |
int cwidget::widgets::transient::height_request | ( | int | width | ) | [virtual] |
Calculate the desired height of the subwidget.
width | the width of this widget |
Implements cwidget::widgets::widget.
References cwidget::widgets::widget::height_request().
int cwidget::widgets::transient::width_request | ( | ) | [virtual] |
Implements cwidget::widgets::widget.
References cwidget::widgets::widget::width_request().