Minsky: 3.17.0
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 75 of file godleyIcon.cc.

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

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

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