| 4089 | // ---------------------------------------------------------------------------------------- |
| 4090 | |
| 4091 | void text_grid:: |
| 4092 | set_editable ( |
| 4093 | unsigned long row, |
| 4094 | unsigned long col, |
| 4095 | bool editable |
| 4096 | ) |
| 4097 | { |
| 4098 | auto_mutex M(m); |
| 4099 | DLIB_ASSERT ( row < number_of_rows() && col < number_of_columns(), |
| 4100 | "\tvoid text_grid::set_editable(row,col,editable)" |
| 4101 | << "\n\trow: " << row |
| 4102 | << "\n\tcol: " << col |
| 4103 | << "\n\tnumber_of_rows(): " << number_of_rows() |
| 4104 | << "\n\tnumber_of_columns(): " << number_of_columns() |
| 4105 | << "\n\teditable: " << editable |
| 4106 | << "\n\tthis: " << this |
| 4107 | ); |
| 4108 | grid[row][col].is_editable = editable; |
| 4109 | if (has_focus && active_row == static_cast<long>(row) && active_col == static_cast<long>(col)) |
| 4110 | { |
| 4111 | drop_input_focus(); |
| 4112 | } |
| 4113 | } |
| 4114 | |
| 4115 | // ---------------------------------------------------------------------------------------- |
| 4116 |
nothing calls this directly
no outgoing calls
no test coverage detected