8#ifndef SlideDir_DEFINED
9#define SlideDir_DEFINED
35 int columns = kDefaultColumnCount);
55 static constexpr int kDefaultColumnCount = 4;
57 const Rec* findCell(
float x,
float y)
const;
60 std::unique_ptr<FocusController> fFocusController;
63 std::vector<Rec> fRecs;
64 std::unique_ptr<sksg::Scene> fScene;
65 std::vector<sk_sp<Animator>> fSceneAnimators;
72 const Rec* fTrackingCell =
nullptr;
SlideDir(const SkString &name, skia_private::TArray< sk_sp< Slide > > &&, int columns=kDefaultColumnCount)
void load(SkScalar winWidth, SkScalar winHeight) override
void draw(SkCanvas *) override
bool onChar(SkUnichar) override
bool animate(double) override
SkISize getDimensions() const override
bool onMouse(SkScalar x, SkScalar y, skui::InputState, skui::ModifierKey modifiers) override
DEF_SWITCHES_START aot vmservice shared library name
static constexpr SkPoint Make(float x, float y)
static constexpr SkSize MakeEmpty()