Numworks Epsilon  1.4.1
Graphing Calculator Operating System
button_with_separator.h
Go to the documentation of this file.
1 #ifndef SHARED_BUTTON_WITH_SEPARATOR_H
2 #define SHARED_BUTTON_WITH_SEPARATOR_H
3 
4 #include <escher.h>
5 
6 class ButtonWithSeparator : public Button {
7 public:
8  ButtonWithSeparator(Responder * parentResponder, I18n::Message textBody, Invocation invocation);
9  void drawRect(KDContext * ctx, KDRect rect) const override;
10 private:
11  constexpr static KDCoordinate k_margin = 5;
12  constexpr static KDCoordinate k_lineThickness = 1;
13  void layoutSubviews() override;
14 };
15 
16 #endif
int16_t KDCoordinate
Definition: coordinate.h:6
Responder * parentResponder() const
Definition: responder.cpp:12
ButtonWithSeparator(Responder *parentResponder, I18n::Message textBody, Invocation invocation)
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: rect.h:26
Definition: button.h:10