mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
17 lines
484 B
C++
17 lines
484 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(bool force = false) override;
|
|
};
|
|
|
|
#endif
|