CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIRegion.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 "FxUIPolygonF.h"
25
26#if defined( XENON )
27namespace Wt
28{
29 class WPainterPath;
30}
31using FxNativeRegion = Wt::WPainterPath;
32#else
33class QRegion;
34using FxNativeRegion = QRegion;
35#endif
36
37class CFxUIRegionImpl;
38
40{
41public:
42
45
47 CFxUIRegion( const CFxUIPolygonF& polygon );
48
50 CFxUIRegion( const CFxUIRegion& region );
51 CFxUIRegion( const FxNativeRegion& region );
52
55
58
59 operator const FxNativeRegion&() const;
60
61protected:
62 CFxUIRegionImpl* m_pImpl = nullptr;
63};
#define COMMONUI_API
QRegion FxNativeRegion
Definition FxUIRegion.h:34
CFxUIRegion(const FxNativeRegion &region)
CFxUIRegionImpl * m_pImpl
Definition FxUIRegion.h:62
CFxUIRegion(const CFxUIPolygonF &polygon)
CFxUIRegion & operator=(const CFxUIRegion &region)
CFxUIRegion(const CFxUIRegion &region)
Definition FxString.h:30