void
tui_adjust_window_height (struct tui_win_info *win, int new_height)
{
- applied_layout->adjust_size (win->name (), new_height);
+ applied_layout->set_height (win->name (), new_height);
}
/* Set the current layout to LAYOUT. */
/* See tui-layout.h. */
tui_adjust_result
-tui_layout_split::adjust_size (const char *name, int new_height)
+tui_layout_split::set_height (const char *name, int new_height)
{
/* Look through the children. If one is a layout holding the named
window, we're done; or if one actually is the named window,
for (int i = 0; i < m_splits.size (); ++i)
{
tui_adjust_result adjusted
- = m_splits[i].layout->adjust_size (name, new_height);
+ = m_splits[i].layout->set_height (name, new_height);
if (adjusted == HANDLED)
return HANDLED;
if (adjusted == FOUND)
return nullptr;
}
- /* Adjust the size of the window named NAME to NEW_HEIGHT, updating
+ /* Set the height of the window named NAME to NEW_HEIGHT, updating
the sizes of the other windows around it. */
- virtual tui_adjust_result adjust_size (const char *name, int new_height) = 0;
+ virtual tui_adjust_result set_height (const char *name, int new_height) = 0;
/* Remove some windows from the layout, leaving the command window
and the window being passed in here. */
return m_contents.c_str ();
}
- tui_adjust_result adjust_size (const char *name, int new_height) override
+ tui_adjust_result set_height (const char *name, int new_height) override
{
return m_contents == name ? FOUND : NOT_FOUND;
}
void apply (int x, int y, int width, int height) override;
- tui_adjust_result adjust_size (const char *name, int new_height) override;
+ tui_adjust_result set_height (const char *name, int new_height) override;
bool top_boxed_p () const override;