20 #include "../S_STRING"
53 static const desc_fields s_v(parent::node_desc_fields(),17,
61 font_lato_regular_ttf().c_str(),
62 font_roboto_bold_ttf().c_str(),
63 font_arial_ttf().c_str(),
64 font_arialbd_ttf().c_str(),
65 font_timesbd_ttf().c_str(),
66 font_symbol_ttf().c_str(),
67 font_stixgeneral_otf().c_str(),
68 font_helvetica_ttf().c_str(),
69 font_times_roman_ttf().c_str()
157 parent::search(a_action);
158 if(a_action.
done())
return;
162 if(a_action.
done())
return;
165 if(a_action.
done())
return;
182 ,
color(colorf_black())
241 parent::operator=(a_from);
242 if(&a_from==
this)
return *
this;
295 const std::string&
line = *it;
296 if(
line.size())
return false;
358 float mn_x,mn_y,mn_z;
359 float mx_x,mx_y,mx_z;
362 float bxw = mx_x-mn_x;
367 xtrans = -fw*0.5f+bxw*0.5f;
369 xtrans = fw*0.5f-bxw*0.5f;
372 float bxh = mx_y-mn_y;
377 ytrans = -fh*0.5f+bxh*0.5f;
379 ytrans = fh*0.5f-bxh*0.5f;
382 float xx = -(mn_x+mx_x)*0.5F+xtrans;
383 float yy = -(mn_y+mx_y)*0.5F+ytrans;
392 float mn_x,mn_y,mn_z;
393 float mx_x,mx_y,mx_z;
395 float bxw = mx_x-mn_x;
409 xtrans = -fw*0.5f+bxw*0.5f;
411 xtrans = fw*0.5f-bxw*0.5f;
414 float bxh = mx_y-mn_y;
419 ytrans = -fh*0.5f+bxh*0.5f;
421 ytrans = fh*0.5f-bxw*0.5f;
424 float xx = -(mn_x+mx_x)*0.5F+xtrans;
425 float yy = -(mn_y+mx_y)*0.5F+ytrans;
441 {
float mn_x,mn_y,mn_z;
442 float mx_x,mx_y,mx_z;
446 float bxh = mx_y-mn_y;
455 float bxw = mx_x-mn_x;
459 float basp = bxw/bxh;
479 xtrans = -fw*0.5f+bxw*0.5f;
481 xtrans = fw*0.5f-bxw*0.5f;
489 ytrans = -fh*0.5f+bxh*0.5f;
491 ytrans = fh*0.5f-bxw*0.5f;
494 float xx = -(mn_x+mx_x)*0.5F+xtrans;
495 float yy = -(mn_y+mx_y)*0.5F+ytrans;
517 if(mxh) th = fh*fh/mxh;
530 {
float mn_x,mn_y,mn_z;
531 float mx_x,mx_y,mx_z;
534 float bxw = mx_x-mn_x;
539 xtrans = -fw*0.5f+bxw*0.5f;
541 xtrans = fw*0.5f-bxw*0.5f;
554 float xx = -(mn_x+mx_x)*0.5F+xtrans;
558 {std::vector<std::string> labcut;
562 labcut.push_back(scut);