Files
Upsilon/escher/include/escher/toggleable_dot_view.h
Hugo Saint-Vignes 2f97dab6d1 [apps/shared] Add toggle buttons in Graph view
Change-Id: I7548d11fb114b2605ce34d3bda0776277b79ff9d
2020-11-04 15:58:25 +01:00

16 lines
494 B
C++

#ifndef ESCHER_TOGGLEABLE_DOT_VIEW_H
#define ESCHER_TOGGLEABLE_DOT_VIEW_H
#include <escher/toggleable_view.h>
class ToggleableDotView final : public ToggleableView {
public:
using ToggleableView::ToggleableView;
/* k_dotSize is the dimensions of the toggle dot */
constexpr static KDCoordinate k_dotSize = 8;
KDSize minimalSizeForOptimalDisplay() const override { return KDSize(k_dotSize, k_dotSize); }
private:
void drawRect(KDContext * ctx, KDRect rect) const override;
};
#endif