File: kuiviewer_part_interface.h

package info (click to toggle)
kde-dev-utils 4%3A25.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 828 kB
  • sloc: cpp: 605; xml: 332; sh: 4; makefile: 3
file content (27 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (2)
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
/*
    SPDX-FileCopyrightText: 2017 Friedrich W. H. Kossebau <kossebau@kde.org>

    SPDX-License-Identifier: LGPL-2.0-only
*/

#ifndef KUIVIEWERPARTINTERFACE_H
#define KUIVIEWERPARTINTERFACE_H

#include <QObject>

class QPixmap;
class QSize;


class KUIViewerPartInterface
{
public:
    virtual ~KUIViewerPartInterface() {}

    virtual void setWidgetSize(const QSize& size) = 0;
    virtual QPixmap renderWidgetAsPixmap() const = 0;
};

Q_DECLARE_INTERFACE(KUIViewerPartInterface, "org.kde.KUIViewerPartInterface")

#endif // KUIVIEWERPARTINTERFACE_H