Back to index

texmacs  1.0.7.15
Functions
construct.hpp File Reference
#include "boxes.hpp"
#include "array.hpp"
#include "font.hpp"
#include "command.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

box empty_box (path ip, int x1=0, int y1=0, int x2=0, int y2=0)
box marker_box (path ip, int x1, int y1, int x2, int y2, box ref)
box test_box (path ip)
box line_box (path ip, SI x1, SI y1, SI x2, SI y2, SI w, color c)
box arc_box (path ip, SI x1, SI y1, SI x2, SI y2, int a1, int a2, SI w, color c)
box polygon_box (path ip, array< SI > x, array< SI > y, color c)
box polygon_box (path ip, array< SI > x, array< SI > y, SI w, color cf, color cl)
box image_box (path ip, url u, SI w, SI h, int alpha)
box text_box (path ip, int pos, string s, font fn, color col)
box delimiter_box (path ip, string s, font fn, color col, SI y1, SI y2)
box big_operator_box (path ip, string s, font fn, color col, int n)
box wide_box (path ip, string s, font fn, color col, SI width)
box bracket_box (path ip, int br_type, SI penw, color col, SI y1, SI y2)
box wide_hat_box (path ip, SI x1, SI x2, SI penw, color col)
box wide_tilda_box (path ip, SI x1, SI x2, SI penw, color col)
box wide_bar_box (path ip, SI x1, SI x2, SI penw, color col)
box wide_vect_box (path ip, SI x1, SI x2, SI penw, color col)
box wide_check_box (path ip, SI x1, SI x2, SI penw, color col)
box wide_breve_box (path ip, SI x1, SI x2, SI penw, color col)
box wide_squbr_box (path ip, SI x1, SI x2, SI penw, color col)
box wide_sqobr_box (path ip, SI x1, SI x2, SI penw, color col)
box control_box (path ip, tree t, font fn)
box control_box (path ip, lazy lz, font fn)
box concat_box (path ip, array< box > bs, array< SI > spc)
box phrase_box (path ip, array< box > bs, array< SI > spc)
box stack_box (path ip, array< box > bs, array< SI > spc)
box composite_box (path ip, array< box > bs, bool bfl=true)
box composite_box (path ip, array< box > bs, array< SI > x, array< SI > y, bool bfl=true)
box superpose_box (path ip, array< box > bs, bool bfl=true)
box scatter_box (path ip, array< box > bs, array< SI > x, array< SI > y)
box cell_box (path ip, box b, SI x0, SI y0, SI x1, SI y1, SI x2, SI y2, SI bl, SI br, SI bb, SI bt, color fg, tree bg, int alpha)
box remember_box (path ip, box b)
box highlight_box (path ip, box b, SI w, SI xpad, SI ypad, tree bg, int alpha, color sunny, color shadow)
box frac_box (path ip, box b1, box b2, font fn, font sfn, color c)
box sqrt_box (path ip, box b1, box b2, box sqrtb, font fn, color c)
box neg_box (path ip, box b, font fn, color c)
box tree_box (path ip, array< box > bs, font fn, color line_c)
box wide_box (path ip, box ref, box hi, font fn, SI sep, bool above)
box repeat_box (path ip, box ref, box repeat, SI xoff=0)
box limit_box (path ip, box ref, box lo, box hi, font fn, bool glued)
box script_box (path ip, box b1, box b2, font fn)
box left_script_box (path ip, box ref, box b1, box b2, font fn, int level)
box right_script_box (path ip, box ref, box b1, box b2, font fn, int level)
box side_box (path ip, box ref, box l1, box l2, box r1, box r2, font f, int l)
box specific_box (path ip, box b, bool printer_flag, font fn)
box flag_box (path ip, box b, SI h, SI lw, color dark, color light)
box info_box (path ip, SI h, SI lw, color dark, color light)
box scrollbar_box (path ip, box b, bool vertical, SI span, tree t)
box symbol_box (path ip, box b, int n)
box shorter_box (path ip, box b, int n)
box frozen_box (path ip, box b)
box move_box (path ip, box b, SI x, SI y, bool chf=false, bool bigf=false)
box shift_box (path ip, box b, SI x, SI y, bool chf=false, bool bigf=false)
box resize_box (path ip, box b, SI x1, SI y1, SI x2, SI y2, bool chf=false, bool adjust=false)
box clip_box (path ip, box b, SI x1, SI y1, SI x2, SI y2)
box clip_box (path ip, box b, SI x1, SI y1, SI x2, SI y2, tree xt, tree yt, SI scx, SI scy)
box vcorrect_box (path ip, box b, SI top_cor, SI bot_cor)
box page_box (path ip, tree page, SI w, SI h, array< box > bs, array< SI > bs_x, array< SI > bs_y, array< box > decs, array< SI > decs_x, array< SI > decs_y)
box action_box (path ip, box b, tree filter, command cmd, bool child_flag)
box action_box (path ip, box b, tree f, command c, bool ch, path vip)
box locus_box (path ip, box b, list< string > ids, SI pixel)
box locus_box (path ip, box b, list< string > ids, SI pixel, string ref, string anchor)
box macro_box (path ip, box b, font big_fn=font())
box tag_box (path ip, box b, tree keys)
box anim_compose_box (path ip, array< box > b)
box anim_repeat_box (path ip, box b)
box anim_constant_box (path ip, box b, int l)
box anim_translate_box (path ip, box b, int len, SI sx, SI sy, SI ex, SI ey)
box anim_progressive_box (path ip, box b, int len, rectangle r1, rectangle r2)
box sound_box (path ip, url u, SI h)
box video_box (path ip, url u, SI w, SI h, int a, int msecs, bool repeated)

Function Documentation

box action_box ( path  ip,
box  b,
tree  filter,
command  cmd,
bool  child_flag 
)

Definition at line 725 of file change_boxes.cpp.

                                                               {
  return tm_new<action_box_rep> (ip, b, filter, cmd, ch, decorate ());
}

Here is the call graph for this function:

box action_box ( path  ip,
box  b,
tree  f,
command  c,
bool  ch,
path  vip 
)

Definition at line 720 of file change_boxes.cpp.

                                                                         {
  return tm_new<action_box_rep> (ip, b, filter, cmd, ch, vip);
}

Here is the call graph for this function:

box anim_compose_box ( path  ip,
array< box b 
)

Definition at line 567 of file animate_boxes.cpp.

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

Here is the caller graph for this function:

box anim_constant_box ( path  ip,
box  b,
int  l 
)

Definition at line 562 of file animate_boxes.cpp.

                                            {
  return tm_new<anim_constant_box_rep> (ip, b, len);
}

Here is the caller graph for this function:

box anim_progressive_box ( path  ip,
box  b,
int  len,
rectangle  r1,
rectangle  r2 
)

Definition at line 582 of file animate_boxes.cpp.

                                                                           {
  return tm_new<anim_progressive_box_rep> (ip, b, len, r1, r2);
}

Here is the caller graph for this function:

box anim_repeat_box ( path  ip,
box  b 
)

Definition at line 572 of file animate_boxes.cpp.

                                 {
  return tm_new<anim_repeat_box_rep> (ip, b);
}

Here is the caller graph for this function:

box anim_translate_box ( path  ip,
box  b,
int  len,
SI  sx,
SI  sy,
SI  ex,
SI  ey 
)

Definition at line 577 of file animate_boxes.cpp.

                                                                         {
  return tm_new<anim_translate_box_rep> (ip, b, len, sx, sy, ex, ey);
}

Here is the caller graph for this function:

box arc_box ( path  ip,
SI  x1,
SI  y1,
SI  x2,
SI  y2,
int  a1,
int  a2,
SI  w,
color  c 
)

Definition at line 239 of file basic_boxes.cpp.

                                                                             {
  return tm_new<arc_box_rep> (ip, x1, y1, x2, y2, a1, a2, w, c);
}

Here is the caller graph for this function:

box big_operator_box ( path  ip,
string  s,
font  fn,
color  col,
int  n 
)

Definition at line 355 of file text_boxes.cpp.

                                                                {
  ASSERT (N(s) >= 2 && s[0] == '<' && s[N(s)-1] == '>',
         "invalid rubber character");
  string r= s (0, N(s)-1) * "-" * as_string (n) * ">";
  metric ex;
  fn->get_extents (r, ex);
  SI y= fn->yfrac - ((ex->y1 + ex->y2) >> 1);
  box mvb= move_box (ip, text_box (ip, 0, r, fn, col), 0, y, false, true);
  return macro_box (ip, mvb, fn);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box bracket_box ( path  ip,
int  br_type,
SI  penw,
color  col,
SI  y1,
SI  y2 
)

Definition at line 228 of file rubber_boxes.cpp.

                                                                     {
  return tm_new<bracket_box_rep> (ip, br_type, penw, col, y1, y2);
}
box cell_box ( path  ip,
box  b,
SI  x0,
SI  y0,
SI  x1,
SI  y1,
SI  x2,
SI  y2,
SI  bl,
SI  br,
SI  bb,
SI  bt,
color  fg,
tree  bg,
int  alpha 
)

Definition at line 700 of file change_boxes.cpp.

{
  box cb= tm_new<cell_box_rep> (ip, b, x0, y0, x1, y1, x2, y2,
                                bl, br, bb, bt, fg, bg, a);
  return cb;
}

Here is the caller graph for this function:

box clip_box ( path  ip,
box  b,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 679 of file change_boxes.cpp.

                                                      {
  return tm_new<clip_box_rep> (ip, b, x1, y1, x2, y2, UNINIT, UNINIT, 0, 0);
}

Here is the caller graph for this function:

box clip_box ( path  ip,
box  b,
SI  x1,
SI  y1,
SI  x2,
SI  y2,
tree  xt,
tree  yt,
SI  scx,
SI  scy 
)

Definition at line 684 of file change_boxes.cpp.

                                           {
  return tm_new<clip_box_rep> (ip, b, x1, y1, x2, y2, xt, yt, scx, scy);
}
box composite_box ( path  ip,
array< box bs,
bool  bfl = true 
)

Definition at line 388 of file composite_boxes.cpp.

                                                 {
  return tm_new<concrete_composite_box_rep> (ip, bs, bfl);
}

Here is the caller graph for this function:

box composite_box ( path  ip,
array< box bs,
array< SI x,
array< SI y,
bool  bfl = true 
)

Definition at line 393 of file composite_boxes.cpp.

                                                                           {
  return tm_new<concrete_composite_box_rep> (ip, bs, x, y, bfl);
}
box concat_box ( path  ip,
array< box bs,
array< SI spc 
)

Definition at line 566 of file concat_boxes.cpp.

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

Here is the caller graph for this function:

box control_box ( path  ip,
tree  t,
font  fn 
)

Definition at line 259 of file basic_boxes.cpp.

                                       {
  return tm_new<control_tree_box_rep> (ip, t, fn);
}

Here is the caller graph for this function:

box control_box ( path  ip,
lazy  lz,
font  fn 
)

Definition at line 264 of file basic_boxes.cpp.

                                        {
  return tm_new<control_lazy_box_rep> (ip, lz, fn);
}
box delimiter_box ( path  ip,
string  s,
font  fn,
color  col,
SI  y1,
SI  y2 
)

Definition at line 343 of file text_boxes.cpp.

                                                                      {
  SI h= top - bot;
  string r= get_delimiter (s, fn, h);
  metric ex;
  fn->get_extents (r, ex);
  SI x= -ex->x1;
  SI y= (top+ bot- ex->y1- ex->y2) >> 1;
  box mvb= move_box (ip, text_box (ip, 0, r, fn, col), x, y, false, true);
  return macro_box (ip, mvb, fn);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box empty_box ( path  ip,
int  x1 = 0,
int  y1 = 0,
int  x2 = 0,
int  y2 = 0 
)

Definition at line 218 of file rubber_boxes.cpp.

                                                    {
  return tm_new<empty_box_rep> (ip, x1, y1, x2, y2);
}

Here is the caller graph for this function:

box flag_box ( path  ip,
box  b,
SI  h,
SI  lw,
color  dark,
color  light 
)

Definition at line 164 of file decoration_boxes.cpp.

                                                                    {
  return tm_new<flag_box_rep> (ip, b, h, lw, dark, light);
}

Here is the caller graph for this function:

box frac_box ( path  ip,
box  b1,
box  b2,
font  fn,
font  sfn,
color  c 
)

Definition at line 368 of file math_boxes.cpp.

                                                               {
  return tm_new<frac_box_rep> (ip, b1, b2, fn, sfn, c);
}

Here is the caller graph for this function:

box frozen_box ( path  ip,
box  b 
)

Definition at line 389 of file modifier_boxes.cpp.

                            {
  return tm_new<frozen_box_rep> (ip, b);
}

Here is the caller graph for this function:

box highlight_box ( path  ip,
box  b,
SI  w,
SI  xpad,
SI  ypad,
tree  bg,
int  alpha,
color  sunny,
color  shadow 
)

Definition at line 714 of file change_boxes.cpp.

                                                     {
  return tm_new<highlight_box_rep> (ip, b, w, xpad, ypad, bg, a, sun, shad);
}

Here is the caller graph for this function:

box image_box ( path  ip,
url  u,
SI  w,
SI  h,
int  alpha 
)

Definition at line 254 of file basic_boxes.cpp.

                                                  {
  return tm_new<image_box_rep> (ip, u, w, h, alpha);
}

Here is the caller graph for this function:

box info_box ( path  ip,
SI  h,
SI  lw,
color  dark,
color  light 
)

Definition at line 174 of file decoration_boxes.cpp.

                                                             {
  return tm_new<info_box_rep> (ip, h, lw, dark, light);
}

Here is the caller graph for this function:

box left_script_box ( path  ip,
box  ref,
box  b1,
box  b2,
font  fn,
int  level 
)

Definition at line 565 of file script_boxes.cpp.

                                                                       {
  return tm_new<side_box_rep> (ip, ref, b1, b2, box (), box (), fn, level);
}

Here is the caller graph for this function:

box limit_box ( path  ip,
box  ref,
box  lo,
box  hi,
font  fn,
bool  glued 
)

Definition at line 555 of file script_boxes.cpp.

                                                                  {
  return tm_new<lim_box_rep> (ip, ref, lo, hi, fn, glued);
}

Here is the caller graph for this function:

box line_box ( path  ip,
SI  x1,
SI  y1,
SI  x2,
SI  y2,
SI  w,
color  c 
)

Definition at line 234 of file basic_boxes.cpp.

                                                              {
  return tm_new<line_box_rep> (ip, x1, y1, x2, y2, w, c);
}

Here is the caller graph for this function:

box locus_box ( path  ip,
box  b,
list< string ids,
SI  pixel 
)

Definition at line 730 of file change_boxes.cpp.

                                                       {
  return tm_new<locus_box_rep> (ip, b, ids, pixel);
}

Here is the caller graph for this function:

box locus_box ( path  ip,
box  b,
list< string ids,
SI  pixel,
string  ref,
string  anchor 
)

Definition at line 735 of file change_boxes.cpp.

                                                                                  {
  return tm_new<locus_box_rep> (ip, b, ids, pixel, ref, anchor);
}
box macro_box ( path  ip,
box  b,
font  big_fn = font() 
)

Definition at line 394 of file modifier_boxes.cpp.

                                        {
  return tm_new<macro_box_rep> (ip, b, big_fn);
}

Here is the caller graph for this function:

box marker_box ( path  ip,
int  x1,
int  y1,
int  x2,
int  y2,
box  ref 
)

Definition at line 223 of file rubber_boxes.cpp.

                                                              {
  return tm_new<marker_box_rep> (ip, x1, y1, x2, y2, ref);
}

Here is the caller graph for this function:

box move_box ( path  ip,
box  b,
SI  x,
SI  y,
bool  chf = false,
bool  bigf = false 
)

Definition at line 663 of file change_boxes.cpp.

                                                                      {
  return tm_new<move_box_rep> (ip, b, x, y, child_flag, big_flag);
}

Here is the caller graph for this function:

box neg_box ( path  ip,
box  b,
font  fn,
color  c 
)

Definition at line 378 of file math_boxes.cpp.

                                           {
  return tm_new<neg_box_rep> (ip, b, fn, c);
}

Here is the caller graph for this function:

box page_box ( path  ip,
tree  page,
SI  w,
SI  h,
array< box bs,
array< SI bs_x,
array< SI bs_y,
array< box decs,
array< SI decs_x,
array< SI decs_y 
)

Definition at line 203 of file misc_boxes.cpp.

                                                              {
  box dec;
  if (N (decs) > 0) dec= composite_box (ip, decs, decs_x, decs_y, false);
  return tm_new<page_box_rep> (ip, page, w, h, bs, bs_x, bs_y, dec);
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 571 of file concat_boxes.cpp.

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

Here is the caller graph for this function:

box polygon_box ( path  ip,
array< SI x,
array< SI y,
color  c 
)

Definition at line 249 of file basic_boxes.cpp.

                                                         {
  return tm_new<polygon_box_rep> (ip, x, y, 0, c, c);
}
box polygon_box ( path  ip,
array< SI x,
array< SI y,
SI  w,
color  cf,
color  cl 
)

Definition at line 244 of file basic_boxes.cpp.

                                                                          {
  return tm_new<polygon_box_rep> (ip, x, y, w, cf, cl);
}

Here is the caller graph for this function:

box remember_box ( path  ip,
box  b 
)

Definition at line 709 of file change_boxes.cpp.

                              {
  return tm_new<remember_box_rep> (ip, b);
}

Here is the caller graph for this function:

box repeat_box ( path  ip,
box  ref,
box  repeat,
SI  xoff = 0 
)

Definition at line 695 of file change_boxes.cpp.

                                                   {
  return tm_new<repeat_box_rep> (ip, ref, repeat, xoff);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box resize_box ( path  ip,
box  b,
SI  x1,
SI  y1,
SI  x2,
SI  y2,
bool  chf = false,
bool  adjust = false 
)

Definition at line 673 of file change_boxes.cpp.

                                         {
  return tm_new<resize_box_rep> (ip, b, x1, y1, x2, y2, child_flag, adjust);
}

Here is the caller graph for this function:

box right_script_box ( path  ip,
box  ref,
box  b1,
box  b2,
font  fn,
int  level 
)

Definition at line 570 of file script_boxes.cpp.

                                                                        {
  return tm_new<side_box_rep> (ip, ref, box (), box (), b1, b2, fn, level);
}

Here is the caller graph for this function:

box scatter_box ( path  ip,
array< box bs,
array< SI x,
array< SI y 
)

Definition at line 198 of file misc_boxes.cpp.

                                                               {
  return tm_new<scatter_box_rep> (ip, bs, x, y);
}

Here is the caller graph for this function:

box script_box ( path  ip,
box  b1,
box  b2,
font  fn 
)

Definition at line 560 of file script_boxes.cpp.

                                              {
  return tm_new<dummy_script_box_rep> (ip, b1, b2, fn);
}

Here is the caller graph for this function:

box scrollbar_box ( path  ip,
box  b,
bool  vertical,
SI  span,
tree  t 
)

Definition at line 179 of file decoration_boxes.cpp.

                                                               {
  return tm_new<scrollbar_box_rep> (ip, b, vertical, span, t);
}

Here is the caller graph for this function:

box shift_box ( path  ip,
box  b,
SI  x,
SI  y,
bool  chf = false,
bool  bigf = false 
)

Definition at line 668 of file change_boxes.cpp.

                                                                       {
  return tm_new<shift_box_rep> (ip, b, x, y, child_flag, big_flag);
}

Here is the caller graph for this function:

box shorter_box ( path  ip,
box  b,
int  n 
)

Definition at line 384 of file modifier_boxes.cpp.

                                      {
  return tm_new<shorter_box_rep> (ip, b, len);
}

Here is the caller graph for this function:

box side_box ( path  ip,
box  ref,
box  l1,
box  l2,
box  r1,
box  r2,
font  f,
int  l 
)

Definition at line 575 of file script_boxes.cpp.

                                                                            {
  return tm_new<side_box_rep> (ip, ref, l1, l2, r1, r2, fn, l);
}

Here is the caller graph for this function:

box sound_box ( path  ip,
url  u,
SI  h 
)

Definition at line 587 of file animate_boxes.cpp.

                                 {
  return tm_new<sound_box_rep> (ip, u, h);
}

Here is the caller graph for this function:

box specific_box ( path  ip,
box  b,
bool  printer_flag,
font  fn 
)

Definition at line 160 of file decoration_boxes.cpp.

                                                          {
  return tm_new<specific_box_rep> (ip, b, printer_flag, fn);
}

Here is the caller graph for this function:

box sqrt_box ( path  ip,
box  b1,
box  b2,
box  sqrtb,
font  fn,
color  c 
)

Definition at line 373 of file math_boxes.cpp.

                                                                {
  return tm_new<sqrt_box_rep> (ip, b1, b2, sqrtb, fn, c);
}

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:

box superpose_box ( path  ip,
array< box bs,
bool  bfl = true 
)

Definition at line 45 of file superpose_boxes.cpp.

                                                 {
  return tm_new<superpose_box_rep> (ip, bs, bfl);
}

Here is the caller graph for this function:

box symbol_box ( path  ip,
box  b,
int  n 
)

Definition at line 379 of file modifier_boxes.cpp.

                                   {
  return tm_new<symbol_box_rep> (ip, b, n);
}

Here is the caller graph for this function:

box tag_box ( path  ip,
box  b,
tree  keys 
)

Definition at line 740 of file change_boxes.cpp.

                                    {
  return tm_new<tag_box_rep> (ip, b, keys);
}

Here is the caller graph for this function:

box test_box ( path  ip)

Definition at line 229 of file basic_boxes.cpp.

                   {
  return tm_new<test_box_rep> (ip);
}

Here is the caller graph for this function:

box text_box ( path  ip,
int  pos,
string  s,
font  fn,
color  col 
)

Definition at line 376 of file text_boxes.cpp.

                                                          {
  return tm_new<text_box_rep> (ip, pos, s, fn, col);
}

Here is the caller graph for this function:

box tree_box ( path  ip,
array< box bs,
font  fn,
color  line_c 
)

Definition at line 383 of file math_boxes.cpp.

                                                         {
  return tm_new<tree_box_rep> (ip, bs, fn, line_c);
}

Here is the caller graph for this function:

box vcorrect_box ( path  ip,
box  b,
SI  top_cor,
SI  bot_cor 
)

Definition at line 690 of file change_boxes.cpp.

                                                      {
  return tm_new<vcorrect_box_rep> (ip, b, top_cor, bot_cor);
}

Here is the caller graph for this function:

box video_box ( path  ip,
url  u,
SI  w,
SI  h,
int  a,
int  msecs,
bool  repeated 
)

Definition at line 592 of file animate_boxes.cpp.

                                                                            {
  url frames= decompose_gif (u);
  if (is_none (frames)) return empty_box (ip, 0, 0, w, h);
  array<box> bs;
  add_frames (bs, decorate (ip), frames, w, h, alpha, msecs);
  box b= anim_compose_box (repeated? decorate (ip): ip, bs);
  if (repeated) return anim_repeat_box (ip, b);
  else return b;
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_bar_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 65 of file stretch_boxes.cpp.

                                                         {
  return line_box (ip, 0, 0, max (penw, x2- x1), 0, penw, col);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_box ( path  ip,
string  s,
font  fn,
color  col,
SI  width 
)

Definition at line 367 of file text_boxes.cpp.

                                                           {
  string r= get_wide (s, fn, width);
  metric ex;
  fn->get_extents (r, ex);
  box b= text_box (ip, 0, r, fn, col);
  return macro_box (ip, b, fn);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_box ( path  ip,
box  ref,
box  hi,
font  fn,
SI  sep,
bool  above 
)

Definition at line 388 of file math_boxes.cpp.

                                                                 {
  return tm_new<wide_box_rep> (ip, ref, hi, fn, sep, above);
}
box wide_breve_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 100 of file stretch_boxes.cpp.

                                                           {
  SI width, height;
  get_wide_parameters (x1, x2, penw, width, height);
  return arc_box (ip, 0, 0, width, 2*height, 180<<6, 360<<6, penw, col);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_check_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 87 of file stretch_boxes.cpp.

                                                           {
  SI width, height;
  get_wide_parameters (x1, x2, penw, width, height);
  array<box> bs (2);
  array<SI>  xs (2);
  array<SI>  ys (2);
  xs[0]= ys[0]= xs[1]= ys[1]= 0;
  bs[0]= line_box (decorate_middle (ip), 0, height, width/2, 0, penw, col);
  bs[1]= line_box (decorate_middle (ip), width/2, 0, width, height, penw, col);
  return composite_box (ip, bs, xs, ys);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_hat_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 29 of file stretch_boxes.cpp.

                                                         {
  SI width, height;
  get_wide_parameters (x1, x2, penw, width, height);
  array<box> bs (2);
  array<SI>  xs (2);
  array<SI>  ys (2);
  xs[0]= ys[0]= xs[1]= ys[1]= 0;
  bs[0]= line_box (decorate_middle (ip), 0, 0, width/2, height, penw, col);
  bs[1]= line_box (decorate_middle (ip), width/2, height, width, 0, penw, col);
  return composite_box (ip, bs, xs, ys);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_sqobr_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 121 of file stretch_boxes.cpp.

                                                           {
  path dip= decorate_middle (ip);
  SI width= max (x2-x1, 6*penw), height= 6*penw;
  array<box> bs (3);
  array<SI>  xs (3);
  array<SI>  ys (3);
  xs[0]= ys[0]= xs[1]= ys[1]= xs[2]= ys[2]= 0;
  bs[0]= line_box (dip, 0, height, width, height, penw, col);
  bs[1]= line_box (dip, 0, height, 0, 0, penw/2, col);
  bs[2]= line_box (dip, width, height, width, 0, penw/2, col);
  return composite_box (ip, bs, xs, ys);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_squbr_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 107 of file stretch_boxes.cpp.

                                                           {
  path dip= decorate_middle (ip);
  SI width= max (x2-x1, 6*penw), height= 6*penw;
  array<box> bs (3);
  array<SI>  xs (3);
  array<SI>  ys (3);
  xs[0]= ys[0]= xs[1]= ys[1]= xs[2]= ys[2]= 0;
  bs[0]= line_box (dip, 0, 0, width, 0, penw, col);
  bs[1]= line_box (dip, 0, height, 0, 0, penw/2, col);
  bs[2]= line_box (dip, width, height, width, 0, penw/2, col);
  return composite_box (ip, bs, xs, ys);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_tilda_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 42 of file stretch_boxes.cpp.

                                                           {
  SI width, height, w, h, uw, uh, ww, hh;
  get_wide_parameters (x1, x2, penw, width, height);
  h = height/2;
  uh= h;
  hh= (SI) (0.8660254 * ((double) h));
  w = width;
  uw= (SI) (((double) w) / 4.2679492);
  ww= (SI) (1.1339746 * ((double) h));
  array<box> bs (3);
  array<SI>  xs (3);
  array<SI>  ys (3);
  xs[0]= ys[0]= xs[1]= ys[1]= xs[2]= ys[2]= 0;
  bs[0]= arc_box (decorate_middle (ip),
                0, -h, 2*uw, h, 60<<6, 180<<6, penw, col);
  bs[1]= line_box (decorate_middle (ip),
                 3*uw/2, hh, w-(3*uw/2), h-hh, penw, col);
  bs[2]= arc_box (decorate_middle (ip),
                w- (2*uw), 0, w, 2*h, 240<<6, 360<<6, penw, col);
  return composite_box (ip, bs, xs, ys);
}

Here is the call graph for this function:

Here is the caller graph for this function:

box wide_vect_box ( path  ip,
SI  x1,
SI  x2,
SI  penw,
color  col 
)

Definition at line 70 of file stretch_boxes.cpp.

                                                          {
  SI width, height, arrow= 2*penw, delta=penw/2;
  get_wide_parameters (x1, x2, penw, width, height);
  height= 10*penw;
  array<box> bs (3);
  array<SI>  xs (3);
  array<SI>  ys (3);
  xs[0]= ys[0]= xs[1]= ys[1]= xs[2]= ys[2]= 0;
  bs[0]= line_box (decorate_middle (ip), 0, arrow, width, arrow, penw, col);
  bs[1]= line_box (decorate_middle (ip),
                 width- arrow- delta, 0, width, arrow, penw, col);
  bs[2]= line_box (decorate_middle (ip),
                 width+ delta- arrow, 2*arrow, width, arrow, penw, col);
  return composite_box (ip, bs, xs, ys);
}

Here is the call graph for this function:

Here is the caller graph for this function: