Files
Upsilon/apps/shared/cursor_view.h
Ruben Dashyan 8337e36f46 [apps/shared/*_cursor_view] CursorView inherits from TransparentView
so that CursorView tells its superview to redrawn in the background,
except the RoundCursorView.
2020-03-10 11:11:57 +01:00

20 lines
445 B
C++

#ifndef SHARED_CURSOR_VIEW_H
#define SHARED_CURSOR_VIEW_H
#include <escher/transparent_view.h>
namespace Shared {
class CursorView : public TransparentView {
public:
virtual void setCursorFrame(KDRect frame, bool force) { View::setFrame(frame, force); }
void drawRect(KDContext * ctx, KDRect rect) const override;
KDSize minimalSizeForOptimalDisplay() const override;
private:
constexpr static KDCoordinate k_size = 19;
};
}
#endif