Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgopenvgrenderable.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGOPENVGRENDERABLE_H
5#define QSGOPENVGRENDERABLE_H
6
7#include <QtGlobal>
8
9#include <VG/openvg.h>
10
11#include "qopenvgmatrix.h"
12
14
16{
17public:
19 virtual ~QSGOpenVGRenderable();
20
21 virtual void render() = 0;
22
23 virtual void setOpacity(float opacity);
24 float opacity() const;
25 VGPaint opacityPaint() const;
26
27 virtual void setTransform(const QOpenVGMatrix &transform);
28 const QOpenVGMatrix &transform() const;
29
30private:
31 float m_opacity;
32 VGPaint m_opacityPaint;
33 QOpenVGMatrix m_transform;
34
35};
36
38
39#endif // QSGOPENVGRENDERABLE_H
const QOpenVGMatrix & transform() const
virtual void render()=0
virtual void setTransform(const QOpenVGMatrix &transform)
virtual void setOpacity(float opacity)
Combined button and popup list for selecting options.
GLuint GLenum GLenum transform