NEURON
ocbox.h
Go to the documentation of this file.
1 #ifndef ocbox_h
2 #define ocbox_h
3 
4 #include "ocglyph.h"
5 #include <ivstream.h>
6 
7 class OcBoxImpl;
8 class BoxAdjust;
9 struct Object;
10 
11 class OcBox: public OcGlyphContainer {
12  public:
13  enum { H, V };
15  OcBox(int type, int frame = INSET, bool scroll = false);
16  virtual ~OcBox();
17 
18  virtual void box_append(OcGlyph*);
19  virtual void save(ostream&);
20  virtual void save_action(const char*, Object*);
21  virtual void adjuster(Coord natural);
22  virtual void adjust(Coord natural, int);
23  virtual void adjust(Coord natural, BoxAdjust*);
24  bool full_request();
25  void full_request(bool);
26 
27  virtual void premap();
28  virtual void dismiss_action(const char*, Object* pyact = NULL);
29  virtual void no_parents();
30  void keep_ref(Object*);
32 
33  bool dismissing();
34  void dismissing(bool);
35 
36  private:
37  OcBoxImpl* bi_;
38 };
39 
40 #endif
#define Coord
Definition: _defines.h:19
short type
Definition: cabvars.h:9
Definition: ocbox.h:11
OcBoxImpl * bi_
Definition: ocbox.h:37
OcBox(int type, int frame=INSET, bool scroll=false)
virtual void premap()
void dismissing(bool)
@ V
Definition: ocbox.h:13
@ H
Definition: ocbox.h:13
virtual void box_append(OcGlyph *)
virtual void no_parents()
virtual void dismiss_action(const char *, Object *pyact=NULL)
virtual void adjuster(Coord natural)
void keep_ref(Object *)
bool dismissing()
virtual void adjust(Coord natural, int)
virtual ~OcBox()
void full_request(bool)
bool full_request()
Object * keep_ref()
virtual void save(ostream &)
virtual void save_action(const char *, Object *)
@ BRIGHT_INSET
Definition: ocbox.h:14
@ FLAT
Definition: ocbox.h:14
@ OUTSET
Definition: ocbox.h:14
@ INSET
Definition: ocbox.h:14
virtual void adjust(Coord natural, BoxAdjust *)
static Frame * frame
Definition: code.cpp:161
#define NULL
Definition: sptree.h:16
Definition: hocdec.h:227