reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1135 bounds.Inset(1, 1); 1136 if (max_length + 4 < static_cast<size_t>(bounds.size.width)) { 1137 bounds.origin.x += (bounds.size.width - max_length + 4) / 2; 1137 bounds.origin.x += (bounds.size.width - max_length + 4) / 2; 1138 bounds.size.width = max_length + 4; 1140 if (bounds.size.width > 100) { 1141 const int inset_w = bounds.size.width / 4; 1142 bounds.origin.x += inset_w; 1143 bounds.size.width -= 2 * inset_w; 1147 if (num_lines + 2 < static_cast<size_t>(bounds.size.height)) { 1148 bounds.origin.y += (bounds.size.height - num_lines + 2) / 2; 1148 bounds.origin.y += (bounds.size.height - num_lines + 2) / 2; 1149 bounds.size.height = num_lines + 2; 1151 if (bounds.size.height > 100) { 1152 const int inset_h = bounds.size.height / 4; 1153 bounds.origin.y += inset_h; 1154 bounds.size.height -= 2 * inset_h; 1160 help_window_sp = parent_window->CreateSubWindow("Help", bounds, true); 1162 help_window_sp = CreateSubWindow("Help", bounds, true);