Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
lazy_ornament_rep Struct Reference
Inheritance diagram for lazy_ornament_rep:
Inheritance graph
[legend]
Collaboration diagram for lazy_ornament_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 lazy_ornament_rep (edit_env env2, lazy par2, path ip, SI w2, SI xpad2, SI ypad2, tree bg2, int alpha2, color sunny2, color shadow2)
 operator tree ()
lazy produce (lazy_type request, format fm)
format query (lazy_type request, format fm)
virtual void append (lazy lz)

Public Attributes

edit_env env
lazy par
SI w
SI xpad
SI ypad
tree bg
int alpha
color sunny
color shadow
lazy_type type
path ip
int ref_count

Detailed Description

Definition at line 144 of file lazy_gui.cpp.


Constructor & Destructor Documentation

lazy_ornament_rep::lazy_ornament_rep ( edit_env  env2,
lazy  par2,
path  ip,
SI  w2,
SI  xpad2,
SI  ypad2,
tree  bg2,
int  alpha2,
color  sunny2,
color  shadow2 
) [inline]

Definition at line 151 of file lazy_gui.cpp.

                                                                     :
    lazy_rep (LAZY_ORNAMENT, ip), env (env2), par (par2),
    w (w2), xpad (xpad2), ypad (ypad2),
    bg (bg2), alpha (alpha2), sunny (sunny2), shadow (shadow2) {}

Member Function Documentation

void lazy_rep::append ( lazy  lz) [virtual, inherited]

Definition at line 92 of file formatter.cpp.

                         {
  (void) lz;
  cout << "\nThe lazy structure was " << ((tree) (*this)) << "\n";
  FAILED ("lazy structure is not a stream");
}
lazy_ornament_rep::operator tree ( ) [inline, virtual]

Implements lazy_rep.

Definition at line 158 of file lazy_gui.cpp.

{ return "Ornament"; }
lazy lazy_ornament_rep::produce ( lazy_type  request,
format  fm 
) [virtual]

Reimplemented from lazy_rep.

Definition at line 185 of file lazy_gui.cpp.

                                                        {
  if (request == type) return this;
  if (request == LAZY_VSTREAM || request == LAZY_BOX) {
    format bfm= fm;
    if (request == LAZY_VSTREAM) {
      format_vstream fvs= (format_vstream) fm;
      bfm= make_format_width (fvs->width - 2 * (w + xpad));
    }
    box b = (box) par->produce (LAZY_BOX, bfm);
    box hb= highlight_box (ip, b, w, xpad, ypad, bg, alpha, sunny, shadow);
    // FIXME: this dirty hack ensures that shoving is correct
    hb= move_box (decorate (ip), hb, 1, 0);
    hb= move_box (decorate (ip), hb, -1, 0);
    // End dirty hack
    if (request == LAZY_BOX) return make_lazy_box (hb);
    else {
      array<page_item> l;
      l << page_item (hb);
      return lazy_vstream (ip, "", l, stack_border ());
    }
  }
  return lazy_rep::produce (request, fm);
}

Here is the call graph for this function:

format lazy_ornament_rep::query ( lazy_type  request,
format  fm 
) [virtual]

Reimplemented from lazy_rep.

Definition at line 175 of file lazy_gui.cpp.

                                                      {
  if ((request == LAZY_BOX) && (fm->type == QUERY_VSTREAM_WIDTH)) {
    format body_fm= par->query (request, fm);
    format_width fmw= (format_width) body_fm;
    return make_format_width (fmw->width + 2 * (w + xpad));
  }
  return lazy_rep::query (request, fm);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 149 of file lazy_gui.cpp.

Definition at line 148 of file lazy_gui.cpp.

Definition at line 145 of file lazy_gui.cpp.

path lazy_rep::ip [inherited]

Definition at line 69 of file formatter.hpp.

Definition at line 146 of file lazy_gui.cpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

Definition at line 150 of file lazy_gui.cpp.

Definition at line 150 of file lazy_gui.cpp.

Definition at line 68 of file formatter.hpp.

Definition at line 147 of file lazy_gui.cpp.

Definition at line 147 of file lazy_gui.cpp.

Definition at line 147 of file lazy_gui.cpp.


The documentation for this struct was generated from the following file: