mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
23 lines
395 B
C++
23 lines
395 B
C++
#ifndef HARDWARE_TEST_PATTERN_VIEW_H
|
|
#define HARDWARE_TEST_PATTERN_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "pattern.h"
|
|
|
|
namespace HardwareTest {
|
|
|
|
class PatternView : public View {
|
|
public:
|
|
PatternView();
|
|
void setPattern(Pattern p);
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
private:
|
|
constexpr static KDCoordinate k_outlineThickness = 1;
|
|
Pattern m_pattern;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|