Go to the documentation of this file.
4 #ifndef tools_sg_legend
5 #define tools_sg_legend
48 static const desc_fields s_v(parent::node_desc_fields(),12,
103 if(a_action.
done())
return;
112 if(a_action.
done())
return;
115 if(a_action.
done())
return;
118 if(a_action.
done())
return;
133 ,
color(colorf_black())
184 parent::operator=(a_from);
223 std::vector<std::string>::const_iterator it;
225 if((*it).size()) {empty =
false;
break;}
304 mat->color = colorf_black();
376 {
float mn_x,mn_y,mn_z;
377 float mx_x,mx_y,mx_z;
378 rtext->
get_bounds(th,mn_x,mn_y,mn_z,mx_x,mx_y,mx_z);
379 float bxw = mx_x-mn_x;
388 if(bxw>max_width) th = max_width*
height/bxw;
396 {
float mn_x,mn_y,mn_z;
397 float mx_x,mx_y,mx_z;
398 rtext->
get_bounds(th,mn_x,mn_y,mn_z,mx_x,mx_y,mx_z);
400 float yy = -(mn_y+mx_y)*0.5F;
#define TOOLS_ARG_FIELD_DESC_ENUMS_BEG(a__field, a__num)
sf_enum< sg::hjust > hjust
#define TOOLS_NODE(a__class, a__sclass, a__parent)
virtual void get_bounds(float, float &, float &, float &, float &, float &, float &) const =0
sf_enum< sg::font_modeling > font_modeling
#define TOOLS_FIELD_DESC_NODE_CLASS(a__class)
#define TOOLS_ARG_ENUM(a__value)
#define TOOLS_ARG_FIELD_DESC(a__field)
#define TOOLS_ARG_FIELD_DESC_ENUMS_END