Back to index

texmacs  1.0.7.15
Classes | Functions
stack_boxes.cpp File Reference
#include "Boxes/composite.hpp"

Go to the source code of this file.

Classes

struct  stack_box_rep

Functions

static rectangles descend (rectangles l, SI y)
static rectangles ascend (rectangles l, SI y)
static rectangles extend_left (rectangles l, SI x)
static rectangles extend_right (rectangles l, SI x)
static rectangles truncate_top (rectangles l, SI y)
static rectangles truncate_bottom (rectangles l, SI y)
box stack_box (path ip, array< box > bs, array< SI > spc)

Function Documentation

static rectangles ascend ( rectangles  l,
SI  y 
) [static]

Definition at line 254 of file stack_boxes.cpp.

                            {
  if (is_nil (l)) return l;
  rectangle& r= l->item;
  return rectangles (rectangle (r->x1, r->y1, r->x2, max (r->y2, y)),
                   ascend (l->next, y));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static rectangles descend ( rectangles  l,
SI  y 
) [static]

Definition at line 246 of file stack_boxes.cpp.

                             {
  if (is_nil (l)) return l;
  rectangle& r= l->item;
  return rectangles (rectangle (r->x1, min (r->y1, y), r->x2, r->y2),
                   descend (l->next, y));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static rectangles extend_left ( rectangles  l,
SI  x 
) [static]

Definition at line 262 of file stack_boxes.cpp.

                                 {
  if (is_nil (l)) return l;
  rectangle& r= l->item;
  return rectangles (rectangle (min (r->x1, x), r->y1, r->x2, r->y2),
                   extend_left (l->next, x));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static rectangles extend_right ( rectangles  l,
SI  x 
) [static]

Definition at line 270 of file stack_boxes.cpp.

                                  {
  if (is_nil (l)) return l;
  rectangle& r= l->item;
  return rectangles (rectangle (r->x1, r->y1, max (r->x2, x), r->y2),
                   extend_right (l->next, x));
}

Here is the call graph for this function:

Here is the caller graph for this function:

box stack_box ( path  ip,
array< box bs,
array< SI spc 
)

Definition at line 363 of file stack_boxes.cpp.

                                                  {
  return tm_new<stack_box_rep> (ip, bs, spc);
}

Here is the caller graph for this function:

static rectangles truncate_bottom ( rectangles  l,
SI  y 
) [static]

Definition at line 286 of file stack_boxes.cpp.

                                     {
  if (is_nil (l)) return l;
  rectangle& r= l->item;
  return rectangles (rectangle (r->x1, max (r->y1, y), r->x2, r->y2),
                   truncate_bottom (l->next, y));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static rectangles truncate_top ( rectangles  l,
SI  y 
) [static]

Definition at line 278 of file stack_boxes.cpp.

                                  {
  if (is_nil (l)) return l;
  rectangle& r= l->item;
  return rectangles (rectangle (r->x1, r->y1, r->x2, min (r->y2, y)),
                   truncate_top (l->next, y));
}

Here is the call graph for this function:

Here is the caller graph for this function: