cwidget  0.5.17
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:
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 
62  }
63 }
64 
65 #endif // TRANSIENT_H
This class is a visually transparent wrapper around another widget.
Definition: transient.h:18
int width_request()
Definition: transient.cc:33
bool focus_me()
Definition: transient.cc:53
The namespace containing everything defined by cwidget.
Definition: columnify.cc:26
bool handle_char(chtype ch)
Destroy the transient.
Definition: transient.cc:58
static util::ref_ptr< transient > create(const widget_ref &w=NULL)
Create a new transient.
Definition: transient.h:34
Definition: bin.h:16
int height_request(int width)
Calculate the desired height of the subwidget.
Definition: transient.cc:43