25#define DEF_SLIDE(code) \
26 static Slide* SK_MACRO_APPEND_LINE(F_)() { code } \
27 static SlideRegistry SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_));
39 virtual bool animate(
double nanos) {
return false; }
Slide *(*)() SlideFactory
virtual bool onMouse(SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers)
virtual bool onChar(SkUnichar c)
virtual void resize(SkScalar winWidth, SkScalar winHeight)
virtual SkISize getDimensions() const
virtual bool onGetControls(SkMetaData *)
const SkString & getName()
virtual void load(SkScalar winWidth, SkScalar winHeight)
virtual void onSetControls(const SkMetaData &)
virtual bool animate(double nanos)
virtual void draw(SkCanvas *canvas)=0
virtual void gpuTeardown()
static constexpr SkISize MakeEmpty()