Lines Matching defs:height
112 type summary add -s "w=${var.width}, h=${var.height}" curses::Size
146 int height;
147 Size(int w = 0, int h = 0) : width(w), height(h) {}
151 height = 0;
154 void Dump() { printf("(w=%i, h=%i)\n", width, height); }
158 return lhs.width == rhs.width && lhs.height == rhs.height;
162 return lhs.width != rhs.width || lhs.height != rhs.height;
180 size.height);
188 if (size.height > h * 2)
189 size.height -= h * 2;
197 if (size.height > 1) {
199 status_bar.origin.y = size.height;
201 status_bar.size.height = 1;
202 --size.height;
211 if (size.height > 1) {
215 menubar.size.height = 1;
217 --size.height;
224 float top_height = top_percentage * size.height;
230 if (top_height < size.height) {
231 top.size.height = top_height;
233 bottom.origin.y = origin.y + top.size.height;
235 bottom.size.height = size.height - top.size.height;
254 right.size.height = size.height;
349 // have a width, a height, a cursor position, and a multitude of drawing
366 ::subpad(m_window, bounds.size.height, bounds.size.width,
370 ::derwin(m_window, bounds.size.height, bounds.size.width,
380 target_origin.y + size.height - 1,
457 VerticalLine(bounds.size.height);
462 VerticalLine(bounds.size.height);
465 MoveCursor(bounds.origin.x, bounds.origin.y + bounds.size.height - 1);
470 bounds.origin.y + bounds.size.height - 1);
565 m_window = ::newpad(size.height, size.width);
596 Reset(::newwin(bounds.size.height, bounds.size.width, bounds.origin.y,
628 Rect GetCenteredRect(int width, int height) {
631 height = std::min(size.height, height);
633 int y = (size.height - height) / 2;
634 return Rect(Point(x, y), Size(width, height));
644 ::wresize(m_window, size.height, size.width);
651 Reset(::subwin(m_parent->m_window, size.height, size.width, origin.y,
663 Reset(::subwin(m_parent->m_window, bounds.size.height, bounds.size.width,
683 ? ::subwin(m_window, bounds.size.height, bounds.size.width,
685 : ::newwin(bounds.size.height, bounds.size.width,
821 if (num_lines + 2 < static_cast<size_t>(bounds.size.height)) {
822 bounds.origin.y += (bounds.size.height - num_lines + 2) / 2;
823 bounds.size.height = num_lines + 2;
825 if (bounds.size.height > 100) {
826 const int inset_h = bounds.size.height / 4;
828 bounds.size.height -= 2 * inset_h;
1023 // Draw the field in the given subpad surface. The surface have a height that
1024 // is equal to the height returned by FieldDelegateGetHeight(). If the field
1094 // The text field has a height of 3 lines. 2 lines for borders and 1 line for
1098 // The text field has a full height of 3 or 4 lines. 3 lines for the actual
1101 int height = GetFieldHeight();
1103 height++;
1104 return height;
1732 // button, and the total height of the available fields.
1735 int height = 2;
1736 // Total height of the fields.
1738 height += m_fields[i].FieldDelegateGetHeight();
1741 height++;
1742 return height;
1746 int height = FieldDelegateGetHeight();
1748 return ScrollContext(height - 2, height - 1);
1767 if (context.end == height - 3)
1786 int height = m_fields[i].FieldDelegateGetHeight();
1787 Rect bounds = Rect(Point(0, line), Size(width, height));
1803 line += height;
1826 content_bounds.HorizontalSplit(content_bounds.size.height - 1,
2063 // The mapping field has a height that is equal to the maximum height between
2386 ChoicesFieldDelegate *AddChoicesField(const char *label, int height,
2389 new ChoicesFieldDelegate(label, height, choices);
2513 int height = 0;
2514 height += GetErrorHeight();
2518 height += m_delegate_sp->GetField(i)->FieldDelegateGetHeight();
2520 height += GetActionsHeight();
2521 return height;
2556 // a field has shrunk in height.
2594 int height = field->FieldDelegateGetHeight();
2595 Rect bounds = Rect(Point(0, line), Size(width, height));
2598 line += height;
2636 int height = GetContentHeight();
2637 Pad pad = Pad(Size(width, height));
3694 int GetLastVisibleMatch(int height) {
3695 int index = m_first_visible_match + height;
3699 int GetNumberOfVisibleMatches(int height) {
3700 return GetLastVisibleMatch(height) - m_first_visible_match + 1;
3709 int height = surface.GetHeight();
3710 int last_visible_match = GetLastVisibleMatch(height);
3712 m_first_visible_match = m_selected_match - height + 1;
4193 menu_bounds.size.height = run_menu_sp->GetSubmenus().size() + 2;
6596 source_bounds.size.height +
6597 variables_bounds.size.height);
6641 variables_bounds.size.height);
6646 source_bounds.size.height +
6691 threads_bounds.size.height +