4#include "TinyGPU/Input/GestureDetector.h"
5#include "TinyGPU/Surface/ISurface.h"
7#include "TinyMaterialDesign/Core/Bounds.h"
8#include "TinyMaterialDesign/Theme/MaterialTheme.h"
25 return type == tinygpu::GestureType::kTap || type == tinygpu::GestureType::kDoubleTap;
38template <
typename RGB_T>
50
51
52
53
54
55
56
75 virtual void draw(tinygpu::ISurface<RGB_T>& target) = 0;
78 virtual bool onGesture(
const tinygpu::GestureEvent& event) {
89 virtual bool update(uint32_t nowMs) {
Definition: AnchorLayout.h:4
void drawScrim(tinygpu::ISurface< RGB_T > &target)
Definition: Widget.h:39
bool isTapGesture(tinygpu::GestureType type)
Definition: Widget.h:24
Axis-aligned pixel rectangle used for widget bounds and hit-testing.
Definition: Bounds.h:21
Bundles a color scheme, shape tokens, typography, and spacing into one theme, passed to widgets so th...
Definition: MaterialTheme.h:50