Numworks Epsilon  1.4.1
Graphing Calculator Operating System
stack_view.h
Go to the documentation of this file.
1 #ifndef ESCHER_STACK_VIEW_H
2 #define ESCHER_STACK_VIEW_H
3 
4 #include <escher/view.h>
6 
7 class StackView : public View {
8 public:
9  StackView();
10  void drawRect(KDContext * ctx, KDRect rect) const override;
11  void setNamedController(ViewController * controller);
12  void setTextColor(KDColor textColor);
13  void setBackgroundColor(KDColor backgroundColor);
14  void setSeparatorColor(KDColor separatorColor);
15 protected:
16 #if ESCHER_VIEW_LOGGING
17  const char * className() const override;
18  void logAttributes(std::ostream &os) const override;
19 #endif
20 private:
21  KDColor m_textColor;
22  KDColor m_backgroundColor;
23  KDColor m_separatorColor;
24  ViewController * m_controller;
25 };
26 
27 #endif
void setSeparatorColor(KDColor separatorColor)
Definition: stack_view.cpp:22
void drawRect(KDContext *ctx, KDRect rect) const override
Definition: stack_view.cpp:32
void setNamedController(ViewController *controller)
Definition: stack_view.cpp:27
Definition: rect.h:26
Definition: color.h:6
Definition: view.h:23
void setBackgroundColor(KDColor backgroundColor)
Definition: stack_view.cpp:17
void setTextColor(KDColor textColor)
Definition: stack_view.cpp:12