CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIBrush.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 "FxUIColor.h"
25
26#if defined( XENON )
27namespace Wt
28{
29 class WBrush;
30}
31
32using FxNativeBrush = Wt::WBrush;
33#else
34class QBrush;
35using FxNativeBrush = QBrush;
36#endif
37
38class CFxUIBrushImpl;
39
41{
42public:
43
46
49
51 CFxUIBrush( const CFxUIBrush& brush );
52 CFxUIBrush( const FxNativeBrush& brush );
53
56
59
60 bool operator==( const CFxUIBrush& brush ) const;
61 bool operator!=( const CFxUIBrush& brush ) const;
62
63 operator const FxNativeBrush&() const;
64
71
77 void setColor( const CFxUIColor& color );
78
85
86protected:
87 CFxUIBrushImpl* m_pImpl = nullptr;
88};
#define COMMONUI_API
QBrush FxNativeBrush
Definition FxUIBrush.h:35
FxUIBrushStyle
Definition FxUIEnum.h:184
@ SolidPattern
Definition FxUIEnum.h:186
CFxUIBrush(const CFxUIColor &color, FxUIBrushStyle style=SolidPattern)
CFxUIColor color() const
bool operator!=(const CFxUIBrush &brush) const
CFxUIBrush(const FxNativeBrush &brush)
FxUIBrushStyle style() const
CFxUIBrushImpl * m_pImpl
Definition FxUIBrush.h:87
void setColor(const CFxUIColor &color)
bool operator==(const CFxUIBrush &brush) const
CFxUIBrush & operator=(const CFxUIBrush &brush)
CFxUIBrush(const CFxUIBrush &brush)
Definition FxString.h:30