CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIFont.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
25#if defined( XENON )
26namespace Wt
27{
28 class WFont;
29}
30
31using FxNativeFont = Wt::WFont;
32#else
33class QFont;
34using FxNativeFont = QFont;
35#endif
36
37class CFxUIFontImpl;
38
40{
41public:
42
45
47 CFxUIFont( const CFxUIFont& font );
48 CFxUIFont( const FxNativeFont& font );
49
51 CFxUIFont& operator=( const CFxUIFont& font );
52
55
56 operator const FxNativeFont&() const;
57
63 void setBold( bool enable );
64
70 void setPointSize( int pointSize );
71
77 void setPixelSize( int pixelSize );
78
79protected:
80 CFxUIFontImpl* m_pImpl = nullptr;
81};
#define COMMONUI_API
QFont FxNativeFont
Definition FxUIFont.h:34
void setBold(bool enable)
CFxUIFont(const CFxUIFont &font)
CFxUIFont(const FxNativeFont &font)
void setPixelSize(int pixelSize)
void setPointSize(int pointSize)
CFxUIFont & operator=(const CFxUIFont &font)
CFxUIFontImpl * m_pImpl
Definition FxUIFont.h:80
Definition FxString.h:30