mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
20 lines
458 B
C++
20 lines
458 B
C++
#ifndef ESCHER_BACKGROUND_VIEW_H
|
|
#define ESCHER_BACKGROUND_VIEW_H
|
|
|
|
#include <escher/view.h>
|
|
#include <archive.h>
|
|
|
|
class BackgroundView : public View {
|
|
public:
|
|
BackgroundView();
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
void setBackgroundImage(const uint8_t * data);
|
|
void setDefaultColor(KDColor defaultColor);
|
|
void updateDataValidity();
|
|
private:
|
|
const uint8_t * m_data;
|
|
bool m_isDataValid;
|
|
KDColor m_defaultColor;
|
|
};
|
|
|
|
#endif |