Lines Matching refs:surface

1027   virtual void FieldDelegateDraw(SubPad &surface, bool is_selected) = 0;
1114 void DrawContent(SubPad &surface, bool is_selected) { in DrawContent() argument
1115 surface.MoveCursor(0, 0); in DrawContent()
1117 surface.PutCString(text, surface.GetWidth()); in DrawContent()
1118 m_last_drawn_content_width = surface.GetWidth(); in DrawContent()
1121 surface.MoveCursor(GetCursorXPosition(), 0); in DrawContent()
1123 surface.AttributeOn(A_REVERSE); in DrawContent()
1126 surface.PutChar(' '); in DrawContent()
1128 surface.PutChar(m_content[m_cursor_position]); in DrawContent()
1130 surface.AttributeOff(A_REVERSE); in DrawContent()
1133 void DrawField(SubPad &surface, bool is_selected) { in DrawField() argument
1134 surface.TitledBox(m_label.c_str()); in DrawField()
1136 Rect content_bounds = surface.GetFrame(); in DrawField()
1138 SubPad content_surface = SubPad(surface, content_bounds); in DrawField()
1143 void DrawError(SubPad &surface) { in DrawError() argument
1146 surface.MoveCursor(0, 0); in DrawError()
1147 surface.AttributeOn(COLOR_PAIR(RedOnBlack)); in DrawError()
1148 surface.PutChar(ACS_DIAMOND); in DrawError()
1149 surface.PutChar(' '); in DrawError()
1150 surface.PutCStringTruncated(1, GetError().c_str()); in DrawError()
1151 surface.AttributeOff(COLOR_PAIR(RedOnBlack)); in DrawError()
1154 void FieldDelegateDraw(SubPad &surface, bool is_selected) override { in FieldDelegateDraw() argument
1155 Rect frame = surface.GetFrame(); in FieldDelegateDraw()
1158 SubPad field_surface = SubPad(surface, field_bounds); in FieldDelegateDraw()
1159 SubPad error_surface = SubPad(surface, error_bounds); in FieldDelegateDraw()
1408 void FieldDelegateDraw(SubPad &surface, bool is_selected) override { in FieldDelegateDraw() argument
1409 surface.MoveCursor(0, 0); in FieldDelegateDraw()
1410 surface.PutChar('['); in FieldDelegateDraw()
1412 surface.AttributeOn(A_REVERSE); in FieldDelegateDraw()
1413 surface.PutChar(m_content ? ACS_DIAMOND : ' '); in FieldDelegateDraw()
1415 surface.AttributeOff(A_REVERSE); in FieldDelegateDraw()
1416 surface.PutChar(']'); in FieldDelegateDraw()
1417 surface.PutChar(' '); in FieldDelegateDraw()
1418 surface.PutCString(m_label.c_str()); in FieldDelegateDraw()
1488 void DrawContent(SubPad &surface, bool is_selected) { in DrawContent() argument
1491 surface.MoveCursor(0, i); in DrawContent()
1496 surface.AttributeOn(A_REVERSE); in DrawContent()
1497 surface.PutChar(current_choice == m_choice ? ACS_DIAMOND : ' '); in DrawContent()
1498 surface.PutCString(text); in DrawContent()
1500 surface.AttributeOff(A_REVERSE); in DrawContent()
1504 void FieldDelegateDraw(SubPad &surface, bool is_selected) override { in FieldDelegateDraw() argument
1507 surface.TitledBox(m_label.c_str()); in FieldDelegateDraw()
1509 Rect content_bounds = surface.GetFrame(); in FieldDelegateDraw()
1511 SubPad content_surface = SubPad(surface, content_bounds); in FieldDelegateDraw()
1686 void DrawRemoveButton(SubPad &surface, int highlight) { in DrawRemoveButton() argument
1687 surface.MoveCursor(1, surface.GetHeight() / 2); in DrawRemoveButton()
1689 surface.AttributeOn(A_REVERSE); in DrawRemoveButton()
1690 surface.PutCString("[Remove]"); in DrawRemoveButton()
1692 surface.AttributeOff(A_REVERSE); in DrawRemoveButton()
1695 void DrawFields(SubPad &surface, bool is_selected) { in DrawFields() argument
1697 int width = surface.GetWidth(); in DrawFields()
1704 SubPad field_surface = SubPad(surface, field_bounds); in DrawFields()
1705 SubPad remove_button_surface = SubPad(surface, remove_button_bounds); in DrawFields()
1720 void DrawNewButton(SubPad &surface, bool is_selected) { in DrawNewButton() argument
1722 int x = (surface.GetWidth() - sizeof(button_text) - 1) / 2; in DrawNewButton()
1723 surface.MoveCursor(x, 0); in DrawNewButton()
1727 surface.AttributeOn(A_REVERSE); in DrawNewButton()
1728 surface.PutCString(button_text); in DrawNewButton()
1730 surface.AttributeOff(A_REVERSE); in DrawNewButton()
1733 void FieldDelegateDraw(SubPad &surface, bool is_selected) override { in FieldDelegateDraw() argument
1734 surface.TitledBox(m_label.c_str()); in FieldDelegateDraw()
1736 Rect content_bounds = surface.GetFrame(); in FieldDelegateDraw()
1741 SubPad fields_surface = SubPad(surface, fields_bounds); in FieldDelegateDraw()
1742 SubPad new_button_surface = SubPad(surface, new_button_bounds); in FieldDelegateDraw()
1920 void Draw(SubPad &surface, bool is_selected) { in Draw() argument
1921 int x = (surface.GetWidth() - m_label.length()) / 2; in Draw()
1922 surface.MoveCursor(x, 0); in Draw()
1924 surface.AttributeOn(A_REVERSE); in Draw()
1925 surface.PutChar('['); in Draw()
1926 surface.PutCString(m_label.c_str()); in Draw()
1927 surface.PutChar(']'); in Draw()
1929 surface.AttributeOff(A_REVERSE); in Draw()
2159 void UpdateScrolling(DerivedWindow &surface) { in UpdateScrolling() argument
2162 int surface_height = surface.GetHeight(); in UpdateScrolling()
2183 void DrawError(SubPad &surface) { in DrawError() argument
2186 surface.MoveCursor(0, 0); in DrawError()
2187 surface.AttributeOn(COLOR_PAIR(RedOnBlack)); in DrawError()
2188 surface.PutChar(ACS_DIAMOND); in DrawError()
2189 surface.PutChar(' '); in DrawError()
2190 surface.PutCStringTruncated(1, m_delegate_sp->GetError().c_str()); in DrawError()
2191 surface.AttributeOff(COLOR_PAIR(RedOnBlack)); in DrawError()
2193 surface.MoveCursor(0, 1); in DrawError()
2194 surface.HorizontalLine(surface.GetWidth()); in DrawError()
2197 void DrawFields(SubPad &surface) { in DrawFields() argument
2199 int width = surface.GetWidth(); in DrawFields()
2208 SubPad field_surface = SubPad(surface, bounds); in DrawFields()
2214 void DrawActions(SubPad &surface) { in DrawActions() argument
2216 int width = surface.GetWidth() / number_of_actions; in DrawActions()
2223 SubPad action_surface = SubPad(surface, bounds); in DrawActions()
2229 void DrawElements(SubPad &surface) { in DrawElements() argument
2230 Rect frame = surface.GetFrame(); in DrawElements()
2232 frame.HorizontalSplit(surface.GetHeight() - GetActionsHeight(), in DrawElements()
2234 SubPad fields_surface = SubPad(surface, fields_bounds); in DrawElements()
2235 SubPad actions_surface = SubPad(surface, actions_bounds); in DrawElements()
2244 void DrawContent(DerivedWindow &surface) { in DrawContent() argument
2245 UpdateScrolling(surface); in DrawContent()
2247 int width = surface.GetWidth(); in DrawContent()
2260 int copy_height = std::min(surface.GetHeight(), pad.GetHeight()); in DrawContent()
2261 pad.CopyToSurface(surface, Point(0, m_first_visible_line), Point(), in DrawContent()