Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SvgSlide.h
Go to the documentation of this file.
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SvgSlide_DEFINED
9#define SvgSlide_DEFINED
10
14#include "tools/viewer/Slide.h"
15
16class SkCanvas;
17class SkSVGDOM;
18
19class SvgSlide final : public Slide {
20public:
21 SvgSlide(const SkString& name, const SkString& path);
22 ~SvgSlide() override;
23
24 void load(SkScalar winWidth, SkScalar winHeight) override;
25 void unload() override;
26 void resize(SkScalar, SkScalar) override;
27
28 void draw(SkCanvas*) override;
29private:
30 const SkString fPath;
31
32 sk_sp<SkSVGDOM> fDom;
33};
34
35#endif // SvgSlide_DEFINED
Definition Slide.h:29
void draw(SkCanvas *) override
~SvgSlide() override
void unload() override
SvgSlide(const SkString &name, const SkString &path)
void load(SkScalar winWidth, SkScalar winHeight) override
void resize(SkScalar, SkScalar) override
float SkScalar
Definition extension.cpp:12
const char * name
Definition fuchsia.cc:50