Minsky
minsky::anonymous_namespace{godleyIcon.cc} Namespace Reference

Classes

struct  DrawVars
 
struct  OrderByName
 

Functions

void accumulateWidthHeight (const GodleyIcon::Variables &vars, float &height, float &width)
 

Function Documentation

◆ accumulateWidthHeight()

void minsky::anonymous_namespace{godleyIcon.cc}::accumulateWidthHeight ( const GodleyIcon::Variables vars,
float &  height,
float &  width 
)

Definition at line 74 of file godleyIcon.cc.

References minsky::RenderVariable::height(), and minsky::RenderVariable::width().

Referenced by minsky::GodleyIcon::update().

76  {
77  float h=0;
78  for (const auto& v: vars)
79  {
80  const RenderVariable rv(*v);
81  h+=2*rv.height();
82  if (h>height) height=h;
83  const float w=2*rv.width();
84  if (w>width) width=w;
85  }
86  }
Here is the call graph for this function:
Here is the caller graph for this function: