Files
Upsilon/apps/shared/store_cell.h
Émilie Feral 698332c355 [escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00

25 lines
772 B
C++

#ifndef APPS_SHARED_STORE_CELL_H
#define APPS_SHARED_STORE_CELL_H
#include "hideable_even_odd_editable_text_cell.h"
namespace Shared {
class StoreCell : public HideableEvenOddEditableTextCell {
public:
StoreCell(Responder * parentResponder = nullptr, InputEventHandlerDelegate * inputEventHandlerDelegate = nullptr, TextFieldDelegate * delegate = nullptr, char * draftTextBuffer = nullptr) :
HideableEvenOddEditableTextCell(parentResponder, inputEventHandlerDelegate, delegate, draftTextBuffer),
m_separatorLeft(false)
{}
void setSeparatorLeft(bool separator);
void drawRect(KDContext * ctx, KDRect rect) const override;
void layoutSubviews() override;
private:
static constexpr KDCoordinate k_rightMargin = 2;
bool m_separatorLeft;
};
}
#endif