Lines Matching refs:height

146   int height;  member
147 Size(int w = 0, int h = 0) : width(w), height(h) {} in Size()
151 height = 0; in Clear()
154 void Dump() { printf("(w=%i, h=%i)\n", width, height); } in Dump()
158 return lhs.width == rhs.width && lhs.height == rhs.height; in operator ==()
162 return lhs.width != rhs.width || lhs.height != rhs.height; in operator !=()
180 size.height); in Dump()
188 if (size.height > h * 2) in Inset()
189 size.height -= h * 2; in Inset()
197 if (size.height > 1) { in MakeStatusBar()
199 status_bar.origin.y = size.height; in MakeStatusBar()
201 status_bar.size.height = 1; in MakeStatusBar()
202 --size.height; in MakeStatusBar()
211 if (size.height > 1) { in MakeMenuBar()
215 menubar.size.height = 1; in MakeMenuBar()
217 --size.height; in MakeMenuBar()
224 float top_height = top_percentage * size.height; in HorizontalSplitPercentage()
230 if (top_height < size.height) { in HorizontalSplit()
231 top.size.height = top_height; in HorizontalSplit()
233 bottom.origin.y = origin.y + top.size.height; in HorizontalSplit()
235 bottom.size.height = size.height - top.size.height; in HorizontalSplit()
254 right.size.height = size.height; in VerticalSplit()
366 ::subpad(m_window, bounds.size.height, bounds.size.width, in SubSurface()
370 ::derwin(m_window, bounds.size.height, bounds.size.width, in SubSurface()
380 target_origin.y + size.height - 1, in CopyToSurface()
457 VerticalLine(bounds.size.height); in Box()
462 VerticalLine(bounds.size.height); in Box()
465 MoveCursor(bounds.origin.x, bounds.origin.y + bounds.size.height - 1); in Box()
470 bounds.origin.y + bounds.size.height - 1); in Box()
565 m_window = ::newpad(size.height, size.width); in Pad()
595 Reset(::newwin(bounds.size.height, bounds.size.width, bounds.origin.y, in Window()
627 Rect GetCenteredRect(int width, int height) { in GetCenteredRect() argument
630 height = std::min(size.height, height); in GetCenteredRect()
632 int y = (size.height - height) / 2; in GetCenteredRect()
633 return Rect(Point(x, y), Size(width, height)); in GetCenteredRect()
643 ::wresize(m_window, size.height, size.width); in Resize()
650 Reset(::subwin(m_parent->m_window, size.height, size.width, origin.y, in MoveWindow()
662 Reset(::subwin(m_parent->m_window, bounds.size.height, bounds.size.width, in SetBounds()
682 ? ::subwin(m_window, bounds.size.height, bounds.size.width, in CreateSubWindow()
684 : ::newwin(bounds.size.height, bounds.size.width, in CreateSubWindow()
820 if (num_lines + 2 < static_cast<size_t>(bounds.size.height)) { in CreateHelpSubwindow()
821 bounds.origin.y += (bounds.size.height - num_lines + 2) / 2; in CreateHelpSubwindow()
822 bounds.size.height = num_lines + 2; in CreateHelpSubwindow()
824 if (bounds.size.height > 100) { in CreateHelpSubwindow()
825 const int inset_h = bounds.size.height / 4; in CreateHelpSubwindow()
827 bounds.size.height -= 2 * inset_h; in CreateHelpSubwindow()
1100 int height = GetFieldHeight(); in FieldDelegateGetHeight() local
1102 height++; in FieldDelegateGetHeight()
1103 return height; in FieldDelegateGetHeight()
1734 int height = 2; in FieldDelegateGetHeight() local
1737 height += m_fields[i].FieldDelegateGetHeight(); in FieldDelegateGetHeight()
1740 height++; in FieldDelegateGetHeight()
1741 return height; in FieldDelegateGetHeight()
1745 int height = FieldDelegateGetHeight(); in FieldDelegateGetScrollContext() local
1747 return ScrollContext(height - 2, height - 1); in FieldDelegateGetScrollContext()
1766 if (context.end == height - 3) in FieldDelegateGetScrollContext()
1785 int height = m_fields[i].FieldDelegateGetHeight(); in DrawFields() local
1786 Rect bounds = Rect(Point(0, line), Size(width, height)); in DrawFields()
1802 line += height; in DrawFields()
1825 content_bounds.HorizontalSplit(content_bounds.size.height - 1, in FieldDelegateDraw()
2385 ChoicesFieldDelegate *AddChoicesField(const char *label, int height, in AddChoicesField() argument
2388 new ChoicesFieldDelegate(label, height, choices); in AddChoicesField()
2512 int height = 0; in GetContentHeight() local
2513 height += GetErrorHeight(); in GetContentHeight()
2517 height += m_delegate_sp->GetField(i)->FieldDelegateGetHeight(); in GetContentHeight()
2519 height += GetActionsHeight(); in GetContentHeight()
2520 return height; in GetContentHeight()
2593 int height = field->FieldDelegateGetHeight(); in DrawFields() local
2594 Rect bounds = Rect(Point(0, line), Size(width, height)); in DrawFields()
2597 line += height; in DrawFields()
2635 int height = GetContentHeight(); in DrawContent() local
2636 Pad pad = Pad(Size(width, height)); in DrawContent()
3693 int GetLastVisibleMatch(int height) { in GetLastVisibleMatch() argument
3694 int index = m_first_visible_match + height; in GetLastVisibleMatch()
3698 int GetNumberOfVisibleMatches(int height) { in GetNumberOfVisibleMatches() argument
3699 return GetLastVisibleMatch(height) - m_first_visible_match + 1; in GetNumberOfVisibleMatches()
3708 int height = surface.GetHeight(); in UpdateScrolling() local
3709 int last_visible_match = GetLastVisibleMatch(height); in UpdateScrolling()
3711 m_first_visible_match = m_selected_match - height + 1; in UpdateScrolling()
4192 menu_bounds.size.height = run_menu_sp->GetSubmenus().size() + 2; in WindowDelegateHandleChar()
6573 source_bounds.size.height + in MenuDelegateAction()
6574 variables_bounds.size.height); in MenuDelegateAction()
6618 variables_bounds.size.height); in MenuDelegateAction()
6623 source_bounds.size.height + in MenuDelegateAction()
6668 threads_bounds.size.height + in MenuDelegateAction()