|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API LegendLayout MayaFlux::Portal::Forma::Plot::layout_legend | ( | const LegendSpec & | spec | ) |
Expand a legend spec into swatch rectangle specs and text label specs.
Definition at line 346 of file PlotSpec.cpp.
References MayaFlux::Portal::Forma::Plot::RectSpec::bounds, MayaFlux::Portal::Forma::Plot::LegendSpec::entries, MayaFlux::Portal::Forma::Plot::LegendSpec::gap, MayaFlux::Portal::Forma::Plot::LegendSpec::interactive, MayaFlux::Portal::Forma::Plot::LegendLayout::labels, MayaFlux::Kinesis::AABB2D::min, MayaFlux::Portal::Forma::Plot::LegendSpec::name_prefix, MayaFlux::Portal::Forma::Plot::LegendSpec::origin, MayaFlux::Portal::Forma::Plot::LegendSpec::row_h, MayaFlux::Portal::Forma::Plot::LegendSpec::swatch_w, MayaFlux::Portal::Forma::Plot::LegendLayout::swatches, MayaFlux::Portal::Forma::Plot::LabelSpec::text, MayaFlux::Portal::Forma::Plot::LegendSpec::text_color, and MayaFlux::Portal::Forma::Plot::LegendSpec::text_w.