/usr/share/nickle/nichrome-box.5c is in cairo-5c 1.10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 | /*
* Copyright © 2012 Keith Packard <keithp@keithp.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
autoload Nichrome;
autoload Mutex;
extend namespace Nichrome {
public namespace Box {
protected typedef enum { horizontal, vertical } dir_t;
int box_id = 0;
public typedef box_t;
protected typedef contained_t glue_t;
protected exception unknown_contained (&box_t box,
&contained_t contained);
/*
* Each item in the layout has a natural size and stretch factor
*/
protected typedef struct {
real natural_width;
real natural_height;
real stretch_width;
real stretch_height;
rational aspect;
} layout_t;
protected typedef struct {
real natural;
real stretch;
real actual;
real pos;
} size_t;
typedef void (&contained_t item, &layout_t layout) query_t;
typedef void (&contained_t item,
layout_t layout,
rect_t geometry) configure_t;
protected typedef struct {
*contained_t contained;
layout_t layout;
query_t query;
configure_t configure;
int span_width;
int span_height;
} item_contents_t;
protected typedef *item_contents_t item_t;
public typedef container_t + contained_t + struct {
*nichrome_t nichrome;
item_t[...,...] items;
size_t[...] widths;
size_t[...] heights;
bool realized;
int suspend;
rect_t geometry;
Mutex::mutex query_lock;
int id;
int aspect_x, aspect_y;
rational aspect;
} box_t;
container_t no_container;
protected bool present(&(item_t[*,*]) items, int x, int y) {
int[2] d = dims(items);
if (x >= d[0] || y >= d[1])
return false;
if (is_uninit(&items[x,y]))
return false;
if (is_uninit(&items[x,y]->contained))
return false;
return true;
}
protected bool active(*(item_t[*,*]) items, int x, int y) {
if (!present(items, x, y))
return false;
if (!(*items)[x,y]->contained->active)
return false;
return true;
}
void not_present(&item_t[*,*] items, int x, int y) {
make_uninit(&(items[x,y]));
}
/*
* contained layout has changed, get the new layout
* and notify our container that our layout has also
* changed
*/
void box_resize_container(*box_t box) {
if (&box->container == &no_container) {
if (box->realized)
box->nichrome->resize = true;
} else
box->container.resize (&box->container, box);
}
void box_resize (*box_t box, *contained_t contained) {
if (Mutex::owner(box->query_lock) == (mutex_owner.owner) Thread::current())
return;
twixt(Mutex::acquire(box->query_lock); Mutex::release(box->query_lock)) {
int[2] d = dims(box->items);
for (int y = 0; y < d[1]; y++) {
for (int x = 0; x < d[0]; x++) {
if (!active(&box->items, x, y))
continue;
item_t item = box->items[x,y];
if (item->contained == contained) {
if (!is_uninit (&item->query))
item->query (item->contained, &item->layout);
break;
}
}
}
}
if (box->suspend == 0)
box_resize_container(box);
}
protected void suspend(&box_t box) {
++box.suspend;
}
protected void release(&box_t box) {
assert(box.suspend > 0, "Underflow box suspend\n");
if (--box.suspend == 0)
box_resize_container(&box);
}
protected remove(*box_t box, int x, int y) {
if (present(&box->items, x, y)) {
&item_t item = &box->items[x,y];
item->contained->remove(item->contained);
if (x == box->aspect_x && y == box->aspect_y)
make_uninit(&box->aspect);
not_present(&box->items, x, y);
}
}
protected add(*box_t box, int x, int y, item_t item) {
remove(box, x, y);
&(item->contained->container) = box;
box->items[x,y] = item;
if (!is_uninit(&item->layout.aspect) && item->layout.aspect != 0) {
box->aspect_x = x;
box->aspect_y = y;
box->aspect = item->layout.aspect;
}
box_resize (box, item->contained);
}
public void box_remove(&box_t box) {
int[2] d = dims(box.items);
for (int y = 0; y < d[1]; y++)
for (int x = 0; x < d[0]; x++)
remove(&box, x, y);
}
public void box_print (&box_t box, int indent) {
do_indent(indent);
printf ("box %d %v [%d,%d]\n", box.id, box.geometry, dims(box.items)...);
int[2] d = dims(box.items);
for (int y = 0; y < d[1]; y++) {
do_indent(indent+4);
printf("{\n");
for (int x = 0; x < d[0]; x++) {
if (present(&box.items, x, y)) {
&item_t item = &box.items[x,y];
item->contained->print (item->contained, indent + 8);
do_indent(indent + 12);
printf ("active %v layout %v\n", item->contained->active, item->layout);
}
}
do_indent(indent+4);
printf("},\n");
}
do_indent(indent);
printf ("}\n");
}
/*
* Construct a new box, computing the layout of the inserted items
*/
protected *box_t new_empty () {
&box_t box = &(box_t) {
container = &no_container,
resize = box_resize,
items = (item_t[...,...]) {},
widths = (size_t[...]) {},
heights = (size_t[...]) {},
realized = false,
print = box_print,
remove = box_remove,
active = true,
suspend = 0,
query_lock = Mutex::new(),
id = ++box_id,
aspect_x = 0,
aspect_y = 0,
aspect = 0
};
return &box;
}
protected clear(&box_t box, int x, int y, int width, int height) {
int[2] d = dims(box.items);
if (width == 0)
width = d[0] - x;
if (height == 0)
height = d[1] - y;
for (int j = 0; j < height; j++)
for (int i = 0; i < width; i++)
remove(&box, x + i, y + j);
}
void copy_item(&item_t[*,*] items, int ox, int oy, int nx, int ny) {
if (!present(&items, ox, oy))
not_present(&items, nx, ny);
else
items[nx,ny] = items[ox,oy];
}
protected insert_column(&box_t box, int col) {
int[2] d = dims(box.items);
setdims(box.items, (int[2]) { d[0] + 1, d[1] });
for (int x = d[0] - 1; x >= col; x--)
for (int y = 0; y < d[1]; y++)
copy_item(&box.items, x, y, x+1, y);
for (int y = 0; y < d[1]; y++)
make_uninit(&box.items[col, y]);
box_resize_container(&box);
}
protected delete_column(&box_t box, int col) {
int[2] d = dims(box.items);
for (int y = 0; y < d[1]; y++)
remove(&box, col, y);
for (int x = col; x < d[0] - 1; x++)
for (int y = 0; y < d[1]; y++)
copy_item(&box.items, x+1, y, x, y);
setdims(box.items, (int[2]) { d[0] - 1, d[1] });
box_resize_container(&box);
}
protected insert_row(&box_t box, int row) {
int[2] d = dims(box.items);
setdims(box.items, (int[2]) { d[0], d[1] + 1 });
for (int y = d[1] - 1; y >= row; y--)
for (int x = 0; x < d[0]; x++)
copy_item(&box.items, x, y, x, y+1);
for (int x = 0; x < d[0]; x++)
make_uninit(&box.items[x,row]);
box_resize_container(&box);
}
protected delete_row(&box_t box, int row) {
int[2] d = dims(box.items);
for (int x = 0; x < d[0]; x++)
remove(&box, x, row);
for (int y = row; y < d[1] - 1; y++)
for (int x = 0; x < d[0]; x++)
copy_item(&box.items, x, y+1, x, y);
setdims(box.items, (int[2]) { d[0], d[1] - 1 });
box_resize_container(&box);
}
protected *box_t new_horizontal(item_t items...) {
*box_t box = new_empty();
int x = 0;
for (int i = 0; i < dim(items); i++) {
add(box, x, 0, items[i]);
x += max(1, items[i]->span_width);
}
return box;
}
protected *box_t new_vertical(item_t items...) {
*box_t box = new_empty();
int y = 0;
for (int i = 0; i < dim(items); i++) {
add(box, 0, y, items[i]);
y += max(1, items[i]->span_height);
}
return box;
}
protected *box_t new(dir_t dir, item_t items...) {
*box_t box;
enum switch (dir) {
case horizontal:
box = new_horizontal(items...);
break;
case vertical:
box = new_vertical(items...);
break;
}
return box;
}
/*
* Allow stretch to be specified as one or two numbers
*/
void get_stretches (&real[*] stretch,
&real stretch_width,
&real stretch_height,
&real aspect) {
aspect = 0;
switch (dim (stretch)) {
case 0:
stretch_width = stretch_height = 1;
break;
case 1:
stretch_width = stretch_height = stretch[0];
break;
case 2:
stretch_width = stretch[0];
stretch_height= stretch[1];
break;
default:
stretch_width = stretch[0];
stretch_height= stretch[1];
aspect = stretch[2];
break;
}
}
/*
* Handle widgets inside of boxes
*/
/* find the natural bounding box of a widget */
rect_t widget_rect (&widget_t widget) {
cairo_t cr = cairo (&widget.nichrome);
widget.natural (cr, &widget);
rect_t r = fill_extents (cr);
Cairo::destroy (cr);
return r;
}
/*
* Widget layout follows natural size
*/
void widget_query (&widget_t widget, &layout_t layout) {
rect_t natural = widget_rect (&widget);
layout.natural_width = natural.width;
layout.natural_height = natural.height;
}
/*
* Set the geometry of the contained
*/
void widget_configure (&widget_t widget,
layout_t layout,
rect_t geometry)
{
widget.configure (&widget, geometry);
}
/*
* Remove a widget from nichrome when it is removed from the box
*/
void widget_remove (&widget_t widget)
{
widget.print(&widget, 8);
try {
Nichrome::remove(&widget.nichrome, &widget);
} catch Nichrome::unknown_widget(&nichrome_t nichrome, &widget_t widget) {
}
}
/*
* Construct a new widget item for a box
*/
protected item_t widget_span_item(&widget_t widget, int span_width, int span_height, real stretch...)
{
get_stretches (&stretch,
&(real stretch_width), &(real stretch_height), &(real aspect));
return &(item_contents_t) {
layout = {
stretch_width = stretch_width,
stretch_height = stretch_height,
aspect = aspect
},
span_width = span_width,
span_height = span_height,
query = widget_query,
configure = widget_configure,
contained = &widget
};
}
protected item_t widget_item (&widget_t widget, real stretch...)
{
return widget_span_item(&widget, 1, 1, stretch...);
}
/*
* Compute the layout for this box by
* walking through the items in the box
*/
protected void box_query (&box_t box, &layout_t layout) {
if (!box.active)
return;
int[2] d = dims(box.items);
size_t[...] widths = (size_t[...]) {};
size_t[...] heights = (size_t[...]) {};
int max_x = 0, max_y = 0;
for (int y = 0; y < d[1]; y++) {
for (int x = 0; x < d[0]; x++) {
if (present (&box.items, x, y)) {
max_x = max(x+1, max_x);
max_y = max(y+1, max_y);
}
if (!active(&box.items, x, y))
continue;
&layout_t child = &box.items[x,y]->layout;
if (dim(widths) <= x || is_uninit(&widths[x].natural)) {
widths[x] = (size_t) {
.natural = child.natural_width,
.stretch = child.stretch_width };
} else {
if (child.stretch_width < widths[x].stretch) {
widths[x].natural = child.natural_width;
widths[x].stretch = child.stretch_width;
} else if (child.stretch_width == widths[x].stretch) {
widths[x].natural = max (widths[x].natural, child.natural_width);
}
}
if (dim(heights) <= y || is_uninit(&heights[y].natural)) {
heights[y] = (size_t) {
.natural = child.natural_height,
.stretch = child.stretch_height };
} else {
if (child.stretch_height < heights[y].stretch) {
heights[y].natural = child.natural_height;
heights[y].stretch = child.stretch_height;
} else if (child.stretch_height == heights[y].stretch) {
heights[y].natural = max (heights[y].natural, child.natural_height);
}
}
}
}
setdims(box.items, (int[2]) { max_x, max_y });
layout.natural_width = 0;
layout.natural_height = 0;
layout.stretch_width = 0;
layout.stretch_height = 0;
layout.aspect = 0;
for (int x = 0; x < dim(widths); x++) {
if (!is_uninit(&widths[x].natural)) {
layout.natural_width += widths[x].natural;
layout.stretch_width += widths[x].stretch;
}
}
for (int y = 0; y < dim(heights); y++) {
if (!is_uninit(&heights[y].natural)) {
layout.natural_height += heights[y].natural;
layout.stretch_height += heights[y].stretch;
}
}
twixt(Mutex::acquire(box.query_lock); Mutex::release(box.query_lock)) {
box.widths = widths;
box.heights = heights;
}
}
/*
* Configure a box
*/
protected void box_configure (*box_t box, layout_t layout, rect_t geometry) {
void layout_size (&size_t[*] sizes, real actual, real pref, real stretch, int fix_id, real fix) {
if (stretch == 0) stretch = 1;
real delta = (real delta_remain) = actual - pref;
real pos = 0;
for (int i = 0; i < dim(sizes); i++) {
&size_t size = &sizes[i];
if (is_uninit(&size.natural))
continue;
real delta_this;
if (i == fix_id)
delta_this = fix - sizes[i].natural;
else if (i == dim(sizes) - 1)
delta_this = delta_remain;
else
delta_this = delta * sizes[i].stretch / stretch;
if (delta_remain < 0) {
if (delta_this < delta_remain)
delta_this = delta_remain;
} else {
if (delta_this > delta_remain)
delta_this = delta_remain;
}
delta_remain -= delta_this;
sizes[i].pos = pos;
sizes[i].actual = sizes[i].natural + delta_this;
pos += sizes[i].actual;
}
}
void adjust_aspect() {
if (is_uninit(&box->aspect) || box->aspect == 0)
return;
int x = box->aspect_x;
int y = box->aspect_y;
item_t item = box->items[x,y];
real x_actual = box->widths[x].actual;
real y_actual = box->heights[y].actual;
real x_desired = y_actual / box->aspect;
real y_desired = x_actual * box->aspect;
if (x_desired < x_actual) {
layout_size(&box->widths, geometry.width,
layout.natural_width,
layout.stretch_width - item->layout.stretch_width,
x, x_desired);
} else if (y_desired < y_actual) {
layout_size(&box->heights, geometry.height,
layout.natural_height,
layout.stretch_height - item->layout.stretch_height,
y, y_desired);
}
}
twixt(Mutex::acquire(box->query_lock); Mutex::release(box->query_lock)) {
layout_size(&box->widths, geometry.width,
layout.natural_width, layout.stretch_width, -1, 0);
layout_size(&box->heights, geometry.height,
layout.natural_height, layout.stretch_height, -1, 0);
adjust_aspect();
box->realized = true;
box->geometry = geometry;
for (int y = 0; y < dim(box->heights); y++) {
if (is_uninit(&box->heights[y].natural))
continue;
for (int x = 0; x < dim(box->widths); x++) {
if (is_uninit(&box->widths[x].natural))
continue;
if (!active (&box->items, x, y))
continue;
item_t item = box->items[x,y];
/* Span this item */
real width = 0;
for (int span = 0; x + span < dim(box->widths) && span < item->span_width; span++) {
if (!is_uninit(&box->widths[x + span].actual))
width += box->widths[x + span].actual;
}
real height = 0;
for (int span = 0; y + span < dim(box->heights) && span < item->span_height; span++) {
if (!is_uninit(&box->heights[y + span].actual))
height += box->heights[y + span].actual;
}
rect_t child_geometry = (rect_t) {
.x = geometry.x + box->widths[x].pos,
.y = geometry.y + box->heights[y].pos,
.width = width,
.height = height };
if (!is_uninit (&item->configure))
item->configure (item->contained,
item->layout, child_geometry);
}
}
}
}
protected item_t box_span_item(&box_t box, int span_width, int span_height)
{
return &(item_contents_t) {
contained = &box,
query = box_query,
configure = box_configure,
span_width = span_width,
span_height = span_height,
};
}
protected item_t box_item (&box_t box)
{
return box_span_item(&box, 1, 1);
}
/*
* Glue in boxes
*/
void glue_query (&glue_t glue, &layout_t layout) {
}
/*
* Allow applications to specify size and stretch, just stretch
* or neither
*/
layout_t get_glue (&real[*] param) {
layout_t layout;
switch (dim (param)) {
case 0:
layout.natural_width = 0;
layout.natural_height = 0;
layout.stretch_width = 1;
layout.stretch_height = 1;
break;
case 1:
layout.natural_width = 0;
layout.natural_height = 0;
layout.stretch_width = param[0];
layout.stretch_height = param[0];
break;
case 2:
layout.natural_width = param[0];
layout.natural_height = param[0];
layout.stretch_width = param[1];
layout.stretch_height = param[1];
break;
case 3:
layout.natural_width = param[0];
layout.natural_height = 0;
layout.stretch_width = param[1];
layout.stretch_height = param[2];
break;
default:
layout.natural_width = param[0];
layout.natural_height = param[2];
layout.stretch_width = param[1];
layout.stretch_height = param[3];
break;
}
return layout;
}
void glue_remove(&glue_t glue) {
}
void glue_print(&glue_t glue, int indent) {
do_indent(indent);
printf ("glue\n");
}
protected item_t glue_span_item (int span_width, int span_height, real param...) {
return &(item_contents_t) {
contained = &(glue_t) {
.print = glue_print,
.active = true,
.remove = glue_remove
},
.layout = get_glue(¶m),
.query = glue_query,
.span_width = span_width,
.span_height = span_height
};
}
protected item_t glue_item (real param...)
{
return glue_span_item(1, 1, param...);
}
protected void add_span_widget (&box_t box,
int x, int y,
int span_width, int span_height,
&widget_t widget,
real stretch ...)
{
add (&box, x, y, widget_span_item (&widget, span_width, span_height, stretch ...));
}
protected void add_widget (&box_t box,
int x, int y,
&widget_t widget,
real stretch ...)
{
add_span_widget(&box, x, y, 1, 1, &widget, stretch...);
}
protected void add_span_box (&box_t box, int x, int y, int span_width, int span_height, &box_t t)
{
add (&box, x, y, box_span_item (&t, span_width, span_height));
}
protected void add_box (&box_t box, int x, int y, &box_t t)
{
add_span_box (&box, x, y, 1, 1, &t);
}
protected void add_span_glue (&box_t box, int x, int y, int span_width, int span_height, real param ...)
{
add (&box, x, y, glue_span_item (span_width, span_height, param ...));
}
protected void add_glue (&box_t box, int x, int y, real param ...)
{
add_span_glue(&box, x, y, 1, 1, param...);
}
protected void add_row (&box_t box, int x, int y, item_t items...) {
suspend(&box);
for (int i = 0; i < dim(items); i++) {
add (&box, x, y, items[i]);
x += max(1, items[i]->span_width);
}
release(&box);
}
protected void add_column (&box_t box, int x, int y, item_t items...) {
suspend(&box);
for (int i = 0; i < dim(items); i++) {
add (&box, x, y, items[i]);
y += max(1, items[i]->span_height);
}
release(&box);
}
protected void set_active (*contained_t contained, bool active) {
*contained_t top = contained;
while (&top->container != &no_container) {
*box_t container = &top->container;
top = container;
}
*box_t top_box = top;
void set_all_active (&contained_t contained) {
contained.active = active;
if (is_type (contained, box_t)) {
*box_t box = &contained;
int[2] d = dims(box->items);
for (int y = 0; y < d[1]; y++)
for (int x = 0; x < d[0]; x++)
if (present(&box->items, x, y))
set_all_active(box->items[x,y]->contained);
} else
box_resize(&contained.container, &contained);
}
suspend(top_box);
set_all_active(contained);
release(top_box);
}
}
/*
* When the top level geometry manager is a box,
* set the nichrome configure function to relayout
* the box
*/
void configure (&nichrome_t nichrome, &Box::box_t box)
{
cairo_t cr = cairo (&nichrome);
rect_t geometry = {
x = 0,
y = 0,
width = width (cr),
height = height (cr)
};
Cairo::destroy (cr);
/*
* Get box preferred size
*/
Box::layout_t layout;
Box::box_query (&box, &layout);
/*
* Layout box
*/
Box::box_configure (&box, layout, geometry);
}
public void set_box (&nichrome_t nichrome, *Box::box_t box)
{
box->nichrome = &nichrome;
Box::layout_t layout;
Box::box_query (box, &layout);
Nichrome::resize (&nichrome, layout.natural_width, layout.natural_height);
Nichrome::configure (&nichrome, box);
nichrome.configure = void func (&nichrome_t nichrome) {
Nichrome::configure (&nichrome, box);
};
# box.print(&box, 0);
}
}
|