PageRenderTime 58ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/TeXmacs-1.0.7.11-src/src/Typeset/Boxes/construct.hpp

#
C++ Header | 108 lines | 86 code | 10 blank | 12 comment | 0 complexity | 36ecf62aa19311f3286a7485f86fff12 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, MPL-2.0-no-copyleft-exception
  1. /******************************************************************************
  2. * MODULE : construct.hpp
  3. * DESCRIPTION: the exported box construction routines
  4. * COPYRIGHT : (C) 1999 Joris van der Hoeven
  5. *******************************************************************************
  6. * This software falls under the GNU general public license version 3 or later.
  7. * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
  8. * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
  9. ******************************************************************************/
  10. #ifndef CONSTRUCT_H
  11. #define CONSTRUCT_H
  12. #include "boxes.hpp"
  13. #include "array.hpp"
  14. #include "font.hpp"
  15. #include "command.hpp"
  16. /******************************************************************************
  17. * Construction routines for boxes
  18. ******************************************************************************/
  19. box empty_box (path ip, int x1=0, int y1=0, int x2=0, int y2=0);
  20. box marker_box (path ip, int x1, int y1, int x2, int y2, box ref);
  21. box test_box (path ip);
  22. box line_box (path ip, SI x1, SI y1, SI x2, SI y2, SI w, color c);
  23. box arc_box (path ip, SI x1, SI y1, SI x2, SI y2,
  24. int a1, int a2, SI w, color c);
  25. box polygon_box (path ip, array<SI> x, array<SI> y, color c);
  26. box polygon_box (path ip, array<SI> x, array<SI> y, SI w, color cf, color cl);
  27. box image_box (path ip, url u, SI w, SI h, int alpha);
  28. box text_box (path ip, int pos, string s, font fn, color col);
  29. box delimiter_box (path ip, string s, font fn, color col, SI y1, SI y2);
  30. box big_operator_box (path ip, string s, font fn, color col, int n);
  31. box wide_box (path ip, string s, font fn, color col, SI width);
  32. box bracket_box (path ip, int br_type, SI penw, color col, SI y1, SI y2);
  33. box wide_hat_box (path ip, SI x1, SI x2, SI penw, color col);
  34. box wide_tilda_box (path ip, SI x1, SI x2, SI penw, color col);
  35. box wide_bar_box (path ip, SI x1, SI x2, SI penw, color col);
  36. box wide_vect_box (path ip, SI x1, SI x2, SI penw, color col);
  37. box wide_check_box (path ip, SI x1, SI x2, SI penw, color col);
  38. box wide_breve_box (path ip, SI x1, SI x2, SI penw, color col);
  39. box wide_squbr_box (path ip, SI x1, SI x2, SI penw, color col);
  40. box wide_sqobr_box (path ip, SI x1, SI x2, SI penw, color col);
  41. box control_box (path ip, tree t, font fn);
  42. box control_box (path ip, lazy lz, font fn);
  43. box concat_box (path ip, array<box> bs, array<SI> spc);
  44. box phrase_box (path ip, array<box> bs, array<SI> spc);
  45. box stack_box (path ip, array<box> bs, array<SI> spc);
  46. box composite_box (path ip, array<box> bs, bool bfl= true);
  47. box composite_box (path ip, array<box> bs, array<SI> x, array<SI> y,
  48. bool bfl= true);
  49. box superpose_box (path ip, array<box> bs, bool bfl= true);
  50. box scatter_box (path ip, array<box> bs, array<SI> x, array<SI> y);
  51. box cell_box (path ip, box b, SI x0, SI y0, SI x1, SI y1, SI x2, SI y2,
  52. SI bl, SI br, SI bb, SI bt, color fg, tree bg, int alpha);
  53. box remember_box (path ip, box b);
  54. box highlight_box (path ip, box b, SI w, SI xpad, SI ypad,
  55. tree bg, int alpha, color sunny, color shadow);
  56. box frac_box (path ip, box b1, box b2, font fn, font sfn, color c);
  57. box sqrt_box (path ip, box b1, box b2, box sqrtb, font fn, color c);
  58. box neg_box (path ip, box b, font fn, color c);
  59. box tree_box (path ip, array<box> bs, font fn, color line_c);
  60. box wide_box (path ip, box ref, box hi, font fn, SI sep, bool above);
  61. box repeat_box (path ip, box ref, box repeat, SI xoff=0);
  62. box limit_box (path ip, box ref, box lo, box hi, font fn, bool glued);
  63. box script_box (path ip, box b1, box b2, font fn);
  64. box left_script_box (path ip, box ref, box b1, box b2, font fn, int level);
  65. box right_script_box (path ip, box ref, box b1, box b2, font fn, int level);
  66. box side_box (path ip, box ref, box l1, box l2, box r1, box r2, font f, int l);
  67. box specific_box (path ip, box b, bool printer_flag, font fn);
  68. box flag_box (path ip, box b, SI h, SI lw, color dark, color light);
  69. box info_box (path ip, SI h, SI lw, color dark, color light);
  70. box scrollbar_box (path ip, box b, bool vertical, SI span, tree t);
  71. box symbol_box (path ip, box b, int n);
  72. box shorter_box (path ip, box b, int n);
  73. box frozen_box (path ip, box b);
  74. box move_box (path ip, box b, SI x, SI y, bool chf= false, bool bigf= false);
  75. box shift_box (path ip, box b, SI x, SI y, bool chf= false, bool bigf= false);
  76. box resize_box (path ip, box b, SI x1, SI y1, SI x2, SI y2,
  77. bool chf= false, bool adjust= false);
  78. box clip_box (path ip, box b, SI x1, SI y1, SI x2, SI y2);
  79. box clip_box (path ip, box b, SI x1, SI y1, SI x2, SI y2,
  80. tree xt, tree yt, SI scx, SI scy);
  81. box vcorrect_box (path ip, box b, SI top_cor, SI bot_cor);
  82. box page_box (path ip, tree page, SI w, SI h,
  83. array<box> bs , array<SI> bs_x , array<SI> bs_y,
  84. array<box> decs, array<SI> decs_x, array<SI> decs_y);
  85. box action_box (path ip, box b, tree filter, command cmd, bool child_flag);
  86. box action_box (path ip, box b, tree f, command c, bool ch, path vip);
  87. box locus_box (path ip, box b, list<string> ids, SI pixel);
  88. box locus_box (path ip, box b, list<string> ids, SI pixel, string ref, string anchor);
  89. box macro_box (path ip, box b, font big_fn= font ());
  90. box tag_box (path ip, box b, tree keys);
  91. box anim_compose_box (path ip, array<box> b);
  92. box anim_repeat_box (path ip, box b);
  93. box anim_constant_box (path ip, box b, int l);
  94. box anim_translate_box (path ip, box b, int len, SI sx, SI sy, SI ex, SI ey);
  95. box anim_progressive_box (path ip, box b, int len, rectangle r1, rectangle r2);
  96. box sound_box (path ip, url u, SI h);
  97. box video_box (path ip, url u, SI w, SI h, int a, int msecs, bool repeated);
  98. #endif // defined CONSTRUCT_H