Numworks Epsilon  1.4.1
Graphing Calculator Operating System
solid_color_view.h
Go to the documentation of this file.
1 #ifndef ESCHER_SOLID_COLOR_VIEW_H
2 #define ESCHER_SOLID_COLOR_VIEW_H
3 
4 #include <escher/view.h>
5 
6 class SolidColorView : public View {
7 public:
8  SolidColorView(KDColor color);
9  virtual void setColor(KDColor color);
10  void drawRect(KDContext * ctx, KDRect rect) const override;
11 protected:
12 #if ESCHER_VIEW_LOGGING
13  const char * className() const override;
14  void logAttributes(std::ostream &os) const override;
15 #endif
16 private:
17  KDColor m_color;
18 };
19 
20 #endif
void drawRect(KDContext *ctx, KDRect rect) const override
SolidColorView(KDColor color)
Definition: rect.h:26
Definition: color.h:6
Definition: view.h:23
virtual void setColor(KDColor color)