blob: 2f8379356f2a04b48a43ccbd67da7472e1177117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#ifndef VisualModule_DEFINED
#define VisualModule_DEFINED
#include "SkRefCnt.h"
class SkCanvas;
/*
* VisualModule is the base class for all of the various types of activities VisualBench supports.
*
* The common theme tying these all together is they need to display an image to the screen. Later,
* on we some modules will also be interactive
*/
class VisualModule : public SkRefCnt {
public:
virtual ~VisualModule() {}
virtual void draw(SkCanvas* canvas)=0;
virtual bool onHandleChar(SkUnichar unichar) = 0;
private:
typedef SkRefCnt INHERITED;
};
#endif
|