CFx SDK Documentation
2023 SP0
SDK
CFx
inc
FxPlatformSettings.h
Go to the documentation of this file.
1
//
2
// (C) Copyright 2005-2022 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
19
#include "
FxFdtCodes.h
"
20
21
#if !defined(CP_ACP)
22
#define CP_ACP 0
// default to ANSI code page
23
#endif
24
25
#if !defined(_MSC_VER)
26
// using unicode on not MS-OS
27
#define _UNICODE
28
#endif
29
30
#if defined(_MSC_VER)
31
#include <Windows.h>
32
33
typedef
HDC
FxDC
;
34
typedef
HPALETTE
FxPalette
;
35
typedef
HBITMAP
FxBitmap
;
36
typedef
COLORREF
FxColorRef
;
37
38
#define FxWinAPI WINAPI
39
#else
40
#include <stdint.h>
41
42
typedef
int
FxWId
;
43
typedef
void
*
FxDC
;
44
typedef
void
*
FxPalette
;
45
typedef
void
*
FxBitmap
;
46
47
#if defined __i386__
48
typedef
unsigned
long
FxColorRef
;
49
#else
50
typedef
uint32_t
FxColorRef
;
51
#endif
52
53
#ifndef TAGPOINT_DEFINED
54
#define TAGPOINT_DEFINED
55
typedef
struct
tagPOINT
56
{
57
int
x
;
58
int
y
;
59
}
POINT
;
60
#endif
// TAGPOINT_DEFINED
61
62
#define FxWinAPI
63
#endif
64
65
#if !defined(XENON)
66
#if defined(_MSC_VER)
67
typedef
HWND
FxWId
;
68
#endif
69
70
#define CFxPen QPen
71
#define CFxPainter QPainter
72
#define CFxColor QColor
73
#define CFxPointF QPointF
74
#define CFxLineF QLineF
75
#define CFxPoint QPoint
76
#define CFxRectF QRectF
77
78
class
QWidget;
79
class
QMenuBar;
80
class
QEvent;
81
class
QPainter;
82
class
QToolBar;
83
class
QPoint;
84
class
QPointF;
85
86
#define CFxRect QRect
87
#define CFxPainterPath QPainterPath
88
#define CFxImage QImage
89
#define CFxMouseEvent QMouseEvent
90
#define CFxEvent QEvent
91
#define CFxWidget QWidget
92
#define CFxBrush QBrush
93
#define CFxPolygonF QPolygonF
94
#define CFxPolygon QPolygon
95
#define CFxFont QFont
96
#define CFxTransform QTransform
97
#define CFxPenStyle Qt::PenStyle
98
#define CFxPaintedWidget QWidget
99
#define CFxContainerWidget QWidget
100
#define CFxScrollBar QScrollBar
101
#define CFxTextEdit QTextEdit
102
#define CFxMenuBar QMenuBar
103
#define CFxMenuItem QAction
104
#define CFxAction QAction
105
#define CFxStatusBarGroup QGroupBox
106
#define xFxKeySequence QKeySequence
107
#define xFxShortcut CFxShortcut
108
#define xFxPropertiesWindow CFxPropertiesWindow
109
#define xFxLineEdit QLineEdit
110
#define CFxContainerWidget QWidget
111
#define CFxToolBar QToolBar
112
113
#else
114
115
#define RETURN_RTERROR { Wt::log("info"
) << "Returning RTERROR from:" << __FILE__ << "(" << __LINE__ << ")"; return RTERROR ;}
116
117
#define FxWId CFxWidget*
118
#define CFxPen Wt::WPen
119
#define CFxPainter Wt::WPainter
120
#define CFxColor Wt::WColor
121
#define CFxPointF Wt::WPointF
122
#define CFxLineF Wt::WLineF
123
#define CFxPoint Wt::WPoint
124
#define CFxRectF Wt::WRectF
125
126
#define CFxRect Wt::WRect
127
#define CFxPainterPath Wt::WPainterPath
128
#define CFxImage Wt::WRasterImage
129
#define CFxMouseEvent XeEvent
130
#define CFxEvent XeEvent
131
#define CFxWidget Wt::WWidget
132
#define CFxBrush Wt::WBrush
133
#define CFxPolygonF Wt::WPolygonF
134
#define CFxPolygon Wt::WPolygon
135
#define CFxFont Wt::WFont
136
#define CFxTransform Wt::WTransform
137
#define CFxPenStyle Wt::PenStyle
138
//#define CFxPaintedWidget Wt::WPaintedWidget
139
#define CFxContainerWidget Wt::WContainerWidget
140
#define CFxScrollBar Wt::WScrollBar
141
#define CFxTextEdit Wt::WTextArea
142
#define CFxMenuBar Wt::WPopupMenu
143
#define CFxMenu Wt::WMenu
144
#define CFxMenuItem Wt::WMenuItem
145
#define CFxAction Wt::WMenuItem
146
#define CFxPopupMenu Wt::WPopupMenu
147
#define CFxStatusBarGroup Wt::WContainerWidget
148
#define xFxKeySequence CXeKeySequence
149
#define xFxShortcut CXeShortcut
150
#define xFxPropertiesWindow CXePropertiesWindow
151
#define xFxLineEdit Wt::WLineEdit
152
#define CFxModelIndex Wt::WModelIndex
153
#define CFxIcon XeIcon
154
155
namespace
Wt
156
{
157
class
WBrush;
158
class
WColor;
159
class
WContainerWidget;
160
class
WFont;
161
class
WLineF;
162
class
WLineEdit;
163
class
WMenu;
164
class
WMenuItem;
165
class
WModelIndex;
166
class
WPainter;
167
class
WPainterPath;
168
class
WPen;
169
class
WPoint;
170
class
WPointF;
171
class
WPolygonF;
172
class
WPopupMenu;
173
class
WRasterImage;
174
class
WRect;
175
class
WRectF;
176
class
WScrollBar;
177
class
WTextArea;
178
class
WTransform;
179
class
WWidget;
180
}
181
182
class
XeContainerWidget;
183
class
XeEvent;
184
185
#endif
FxFdtCodes.h
POINT
struct tagPOINT POINT
FxWId
int FxWId
Definition:
FxPlatformSettings.h:42
FxPalette
void * FxPalette
Definition:
FxPlatformSettings.h:44
FxColorRef
uint32_t FxColorRef
Definition:
FxPlatformSettings.h:50
FxBitmap
void * FxBitmap
Definition:
FxPlatformSettings.h:45
FxDC
void * FxDC
Definition:
FxPlatformSettings.h:43
Wt
Definition:
FxString.h:28
tagPOINT
Definition:
FxPlatformSettings.h:56
tagPOINT::x
int x
Definition:
FxPlatformSettings.h:57
tagPOINT::y
int y
Definition:
FxPlatformSettings.h:58
Generated on Thu Feb 24 2022 15:09:30