MCPcopy Create free account
hub / github.com/davisking/dlib / compute_total_rect

Method compute_total_rect

dlib/gui_widgets/widgets.cpp:4246–4266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4244// ----------------------------------------------------------------------------------------
4245
4246 void text_grid::
4247 compute_total_rect (
4248 )
4249 {
4250 if (grid.size() == 0)
4251 {
4252 set_total_rect_size(0,0);
4253 }
4254 else
4255 {
4256 unsigned long width = col_width.size()-1;
4257 unsigned long height = row_height.size()-1;
4258
4259 for (unsigned long i = 0; i < col_width.size(); ++i)
4260 width += col_width[i];
4261 for (unsigned long i = 0; i < row_height.size(); ++i)
4262 height += row_height[i];
4263
4264 set_total_rect_size(width,height);
4265 }
4266 }
4267
4268// ----------------------------------------------------------------------------------------
4269

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected