CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIImage.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
22
24#include "../UI/FxUIEnum.h"
25#include "FxUIPaintDevice.h"
26
27#if defined( XENON )
28namespace Wt
29{
30 class WImage;
31}
32using FxNativeImage = Wt::WImage;
33#else
34class QImage;
35using FxNativeImage = QImage;
36#endif
37
38class CFxUIImageImpl;
39
41{
42public:
43
46
48 CFxUIImage( int iWidth, int iHeight, FxUIImageFormat format );
49
51 CFxUIImage( const CFxUIImage& image );
52 CFxUIImage( const FxNativeImage& image );
53
56
59
60 operator FxNativeImage&() const;
61
67 void fill( FxUIGlobalColor iType );
68
69protected:
70 CFxUIImageImpl* m_pImpl = nullptr;
71};
#define COMMONUI_API
FxUIImageFormat
Definition FxUIEnum.h:147
FxUIGlobalColor
Definition FxUIEnum.h:76
QImage FxNativeImage
Definition FxUIImage.h:35
CFxUIImage(const CFxUIImage &image)
CFxUIImage(const FxNativeImage &image)
CFxUIImageImpl * m_pImpl
Definition FxUIImage.h:70
void fill(FxUIGlobalColor iType)
CFxUIImage(int iWidth, int iHeight, FxUIImageFormat format)
CFxUIImage & operator=(const CFxUIImage &image)
CFxUIPaintDevice(FxNativePaintDevice *paintDevice=nullptr)
GLint GLint GLint GLsizei GLsizei GLenum format
Definition gles2_ext.h:111
Definition FxString.h:30