CFx SDK Documentation
2023 SP0
SDK
CFx
inc
FxFdtDCL.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 <
OdaCommon.h
>
20
21
#include "
FxPragmaPush.h
"
22
23
typedef
double
dcl_real
;
24
typedef
struct
_dcl_hdlg *
dcl_hdlg
;
25
typedef
struct
_dcl_htile *
dcl_htile
;
26
31
typedef
struct
32
{
33
dcl_hdlg
dialog
;
34
dcl_htile
tile
;
35
char
*
value
;
36
void
*
client_data
;
37
OdInt32
reason
;
38
OdInt32
x
,
y
;
39
}
dcl_callback_packetA
;
40
45
typedef
struct
46
{
47
dcl_hdlg
dialog
;
48
dcl_htile
tile
;
49
wchar_t
*
value
;
50
void
*
client_data
;
51
OdInt32
reason
;
52
OdInt32
x
,
y
;
53
}
dcl_callback_packetW
;
54
59
struct
dcl_binary
60
{
61
short
clen
;
62
char
*
buf
;
63
};
64
69
union
dcl_u_val
70
{
71
dcl_real
rreal
;
72
dcl_real
rpoint
[3];
73
OdInt16
rint
;
74
wchar_t
*
rstring
;
75
OdInt32
rlname
[2];
76
OdInt32
rlong
;
77
struct
dcl_binary
rbinary
;
78
};
79
84
struct
dcl_resbuf
85
{
86
struct
dcl_resbuf
*
rbnext
;
87
OdInt16
restype
;
88
union
dcl_u_val
resval
;
89
};
90
91
#define RSRSLT 1
// Result returned
92
#define RSERR 3
// Error in evaluation -- no result
93
94
#define CBR_SELECT CTRL_SELECT
95
#define CBR_LOST_FOCUS CTRL_LOST_FOCUS
96
#define CBR_DRAG CTRL_DRAG
97
#define CBR_DOUBLE_CLICK CTRL_DOUBLE_CLICK
98
99
#define DLGALLDONE DLG_ALLDONE
// All dialogs terminated with term_dialog
100
#define DLGCANCEL DLG_CANCEL
// User pressed Cancel or equivalent
101
#define DLGOK DLG_OK
// User pressed Ok
102
#define DLGSTATUS DLG_STATUS
// start of user return codes
103
104
#define MODE_ENABLE DLG_M_ENABLE
/* Enable tile */
105
#define MODE_DISABLE DLG_M_DISABLE
/* Disable tile */
106
#define MODE_SETFOCUS DLG_M_SETFOCUS
/* Set focus to tile */
107
#define MODE_SETSEL DLG_M_SETSEL
/* Set editbox selection--allows
108
auto-clearing of old string */
109
#define MODE_FLIP DLG_M_FLIP
/* Invert current state */
110
111
#if defined(__cplusplus)
112
typedef
void
(*
DCL_CLIENTFUNCW
)(
dcl_callback_packetW
* cpkt );
113
typedef
void
(*
DCL_CLIENTFUNCA
)(
dcl_callback_packetA
* cpkt );
114
#else
115
#define DCL_CLIENTFUNCW void *
116
#define DCL_CLIENTFUNCA void *
117
#endif
118
119
#include "
FxPragmaPop.h
"
DCL_CLIENTFUNCA
#define DCL_CLIENTFUNCA
Definition:
FxFdtDCL.h:115
dcl_hdlg
struct _dcl_hdlg * dcl_hdlg
Definition:
FxFdtDCL.h:24
dcl_htile
struct _dcl_htile * dcl_htile
Definition:
FxFdtDCL.h:25
DCL_CLIENTFUNCW
#define DCL_CLIENTFUNCW
Definition:
FxFdtDCL.h:114
dcl_real
double dcl_real
Definition:
FxFdtDCL.h:23
FxPragmaPop.h
FxPragmaPush.h
OdInt16
short OdInt16
Definition:
OdPlatformSettings.h:756
OdInt32
int OdInt32
Definition:
OdPlatformSettings.h:782
OdaCommon.h
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
y
GLfloat GLfloat y
Definition:
gles2_ext.h:316
dcl_binary
Definition:
FxFdtDCL.h:60
dcl_binary::clen
short clen
Definition:
FxFdtDCL.h:61
dcl_binary::buf
char * buf
Definition:
FxFdtDCL.h:62
dcl_callback_packetA
Definition:
FxFdtDCL.h:32
dcl_callback_packetA::x
OdInt32 x
Definition:
FxFdtDCL.h:38
dcl_callback_packetA::tile
dcl_htile tile
Definition:
FxFdtDCL.h:34
dcl_callback_packetA::dialog
dcl_hdlg dialog
Definition:
FxFdtDCL.h:33
dcl_callback_packetA::reason
OdInt32 reason
Definition:
FxFdtDCL.h:37
dcl_callback_packetA::client_data
void * client_data
Definition:
FxFdtDCL.h:36
dcl_callback_packetA::value
char * value
Definition:
FxFdtDCL.h:35
dcl_callback_packetW
Definition:
FxFdtDCL.h:46
dcl_callback_packetW::x
OdInt32 x
Definition:
FxFdtDCL.h:52
dcl_callback_packetW::dialog
dcl_hdlg dialog
Definition:
FxFdtDCL.h:47
dcl_callback_packetW::value
wchar_t * value
Definition:
FxFdtDCL.h:49
dcl_callback_packetW::reason
OdInt32 reason
Definition:
FxFdtDCL.h:51
dcl_callback_packetW::client_data
void * client_data
Definition:
FxFdtDCL.h:50
dcl_callback_packetW::tile
dcl_htile tile
Definition:
FxFdtDCL.h:48
dcl_resbuf
Definition:
FxFdtDCL.h:85
dcl_resbuf::restype
OdInt16 restype
Definition:
FxFdtDCL.h:87
dcl_resbuf::rbnext
struct dcl_resbuf * rbnext
Definition:
FxFdtDCL.h:86
dcl_resbuf::resval
union dcl_u_val resval
Definition:
FxFdtDCL.h:88
dcl_u_val
Definition:
FxFdtDCL.h:70
dcl_u_val::rint
OdInt16 rint
Definition:
FxFdtDCL.h:73
dcl_u_val::rlname
OdInt32 rlname[2]
Definition:
FxFdtDCL.h:75
dcl_u_val::rlong
OdInt32 rlong
Definition:
FxFdtDCL.h:76
dcl_u_val::rstring
wchar_t * rstring
Definition:
FxFdtDCL.h:74
dcl_u_val::rpoint
dcl_real rpoint[3]
Definition:
FxFdtDCL.h:72
dcl_u_val::rreal
dcl_real rreal
Definition:
FxFdtDCL.h:71
dcl_u_val::rbinary
struct dcl_binary rbinary
Definition:
FxFdtDCL.h:77
Generated on Thu Feb 24 2022 15:09:30