Files
Upsilon/apps/shared/button_with_separator.h
Émilie Feral adc80cd71b [apps][escher] I18n
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
2017-03-16 15:12:12 +01:00

17 lines
466 B
C++

#ifndef SHARED_BUTTON_WITH_SEPARATOR_H
#define SHARED_BUTTON_WITH_SEPARATOR_H
#include <escher.h>
class ButtonWithSeparator : public Button {
public:
ButtonWithSeparator(Responder * parentResponder, I18n::Message textBody, Invocation invocation);
void drawRect(KDContext * ctx, KDRect rect) const override;
private:
constexpr static KDCoordinate k_margin = 5;
constexpr static KDCoordinate k_lineThickness = 1;
void layoutSubviews() override;
};
#endif