aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT/SkImageWidget.h
blob: 594b21a2f6d81dcf0d96964de361e06e99daa0c4 (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
35
36
37
38
39
/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef SKIMAGEWIDGET_H_
#define SKIMAGEWIDGET_H_

#include <QWidget>

class SkDebugger;

class  SkImageWidget : public QWidget {
    Q_OBJECT

public:
    SkImageWidget(SkDebugger* debugger);

    void draw() {
        this->update();
    }

    static const int kImageWidgetWidth = 256;
    static const int kImageWidgetHeight = 256;

signals:
    void drawComplete();

protected:
    void paintEvent(QPaintEvent* event);

private:
    SkDebugger *fDebugger;
};

#endif /* SKIMAGEWIDGET_H_ */