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

Method set_column_width

dlib/gui_widgets/widgets.cpp:4117–4134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4115// ----------------------------------------------------------------------------------------
4116
4117 void text_grid::
4118 set_column_width (
4119 unsigned long col,
4120 unsigned long width
4121 )
4122 {
4123 auto_mutex M(m);
4124 DLIB_ASSERT ( col < number_of_columns(),
4125 "\tvoid text_grid::set_column_width(col,width)"
4126 << "\n\tcol: " << col
4127 << "\n\tnumber_of_columns(): " << number_of_columns()
4128 << "\n\twidth: " << width
4129 << "\n\tthis: " << this
4130 );
4131 col_width[col] = width;
4132 compute_total_rect();
4133 compute_bg_rects();
4134 }
4135
4136// ----------------------------------------------------------------------------------------
4137

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected