QSkinny
0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskGraphicTextureFactory.h
1
/******************************************************************************
2
* QSkinny - Copyright (C) The authors
3
* SPDX-License-Identifier: BSD-3-Clause
4
*****************************************************************************/
5
6
#ifndef QSK_GRAPHIC_TEXTURE_FACTORY_H
7
#define QSK_GRAPHIC_TEXTURE_FACTORY_H
8
9
#include "QskColorFilter.h"
10
#include "QskGraphic.h"
11
12
#include <qquickimageprovider.h>
13
14
class
QSK_EXPORT
QskGraphicTextureFactory
:
public
QQuickTextureFactory
15
{
16
public
:
17
QskGraphicTextureFactory
();
18
QskGraphicTextureFactory
(
const
QskGraphic
&,
const
QSize& size );
19
20
~QskGraphicTextureFactory
()
override
;
21
22
void
setGraphic(
const
QskGraphic
& );
23
QskGraphic
graphic()
const
;
24
25
void
setColorFilter(
const
QskColorFilter
& );
26
const
QskColorFilter
& colorFilter()
const
;
27
28
void
setSize(
const
QSize& size );
29
QSize size()
const
;
30
31
QSGTexture* createTexture( QQuickWindow* )
const override
;
32
QSize textureSize()
const override
;
33
int
textureByteCount()
const override
;
34
35
QImage image()
const override
;
36
37
private
:
38
Q_DISABLE_COPY(
QskGraphicTextureFactory
)
39
40
QskGraphic
m_graphic;
41
QskColorFilter
m_colorFilter;
42
QSize m_size;
43
};
44
45
#endif
QskColorFilter
Definition
QskColorFilter.h:21
QskGraphicTextureFactory
Definition
QskGraphicTextureFactory.h:15
QskGraphic
A paint device for scalable graphics.
Definition
QskGraphic.h:28
src
graphic
QskGraphicTextureFactory.h
Generated by
1.9.8