cwidget
0.5.17
src
cwidget
widgets
transient.h
1
// transient.h -*-c++-*-
2
//
3
// Copyright 2005 Daniel Burrows
4
5
#ifndef TRANSIENT_H
6
#define TRANSIENT_H
7
8
#include "bin.h"
9
10
namespace
cwidget
11
{
12
namespace
widgets
13
{
18
class
transient
:
public
bin
19
{
20
private
:
24
void
layout_me();
25
26
protected
:
27
transient
(
const
widget_ref
&w);
28
public
:
33
static
util::ref_ptr<transient>
34
create
(
const
widget_ref
&w = NULL)
35
{
36
util::ref_ptr<transient>
rval(
new
transient
(w));
37
rval->decref();
38
return
rval;
39
}
40
42
int
width_request
();
43
49
int
height_request
(
int
width);
50
52
bool
focus_me
();
53
58
bool
handle_char
(chtype ch);
59
};
60
61
typedef
util::ref_ptr<transient>
transient_ref
;
62
}
63
}
64
65
#endif // TRANSIENT_H
cwidget::widgets::transient
This class is a visually transparent wrapper around another widget.
Definition:
transient.h:18
cwidget::widgets::transient::width_request
int width_request()
Definition:
transient.cc:33
cwidget::util::ref_ptr< widget >
cwidget::widgets::transient::focus_me
bool focus_me()
Definition:
transient.cc:53
cwidget
The namespace containing everything defined by cwidget.
Definition:
columnify.cc:26
cwidget::widgets::transient::handle_char
bool handle_char(chtype ch)
Destroy the transient.
Definition:
transient.cc:58
cwidget::widgets::transient::create
static util::ref_ptr< transient > create(const widget_ref &w=NULL)
Create a new transient.
Definition:
transient.h:34
cwidget::widgets::bin
Definition:
bin.h:16
cwidget::widgets::transient::height_request
int height_request(int width)
Calculate the desired height of the subwidget.
Definition:
transient.cc:43
Generated by
1.8.13