CFx SDK Documentation
2026 SP0
Loading...
Searching...
No Matches
SDK
CFx
commonui_inc
Core
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
23
#include "
../FxCommonFramework.h
"
24
25
#if defined( XENON )
26
namespace
Wt
27
{
28
class
WFont;
29
}
30
31
using
FxNativeFont
= Wt::WFont;
32
#else
33
class
QFont;
34
using
FxNativeFont
= QFont;
35
#endif
36
37
class
CFxUIFontImpl;
38
39
class
COMMONUI_API
CFxUIFont
40
{
41
public
:
42
44
CFxUIFont
();
45
47
CFxUIFont
(
const
CFxUIFont
& font );
48
CFxUIFont
(
const
FxNativeFont
& font );
49
51
CFxUIFont
&
operator=
(
const
CFxUIFont
& font );
52
54
~CFxUIFont
();
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
79
protected
:
80
CFxUIFontImpl*
m_pImpl
=
nullptr
;
81
};
FxCommonFramework.h
COMMONUI_API
#define COMMONUI_API
Definition
FxCommonFramework.h:20
FxNativeFont
QFont FxNativeFont
Definition
FxUIFont.h:34
CFxUIFont::setBold
void setBold(bool enable)
CFxUIFont::CFxUIFont
CFxUIFont(const CFxUIFont &font)
CFxUIFont::CFxUIFont
CFxUIFont(const FxNativeFont &font)
CFxUIFont::setPixelSize
void setPixelSize(int pixelSize)
CFxUIFont::setPointSize
void setPointSize(int pointSize)
CFxUIFont::CFxUIFont
CFxUIFont()
CFxUIFont::~CFxUIFont
~CFxUIFont()
CFxUIFont::operator=
CFxUIFont & operator=(const CFxUIFont &font)
CFxUIFont::m_pImpl
CFxUIFontImpl * m_pImpl
Definition
FxUIFont.h:80
Wt
Definition
FxString.h:30
Generated on Tue Apr 15 2025 11:29:57