Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
GdkParam.h
Go to the documentation of this file.
1 /**
2 * @file GdkParam.h
3 * @brief Declares the GdkParam class.
4 *
5 * Copyright (C) 2015-2022 by LMI Technologies Inc. All rights reserved.
6 */
7 #ifndef GDK_EXT_PARAM_H
8 #define GDK_EXT_PARAM_H
9 
10 #include <Gdk/GdkDef.h>
12 
13 /**
14 * Represents the data of a configurable parameter.
15 *
16 * @class GdkParam
17 * @ingroup Gdk-Config
18 */
19 typedef kPointer GdkParam;
20 
21 /**
22 * Sets the used attribute.
23 *
24 * @public @memberof GdkParam
25 * @param param Param object.
26 * @param used Used state.
27 * @return Operation status.
28 */
29 GdkFx(kStatus) GdkParam_SetUsed(GdkParam param, kBool used);
30 
31 /**
32 * Returns the used attribute.
33 *
34 * @public @memberof GdkParam
35 * @param param Param object.
36 * @return Used state.
37 */
38 GdkFx(kBool) GdkParam_Used(GdkParam param);
39 
40 /**
41 * Returns whether or not an optional parameter has been set.
42 *
43 * @public @memberof GdkParam
44 * @param param Param object.
45 * @return Set state.
46 */
47 GdkFx(kBool) GdkParam_IsSet(GdkParam param);
48 
49 /**
50 * Sets the value of an integer parameter.
51 *
52 * @public @memberof GdkParam
53 * @param param Param object.
54 * @param value New parameter value.
55 * @return Operation status.
56 */
57 GdkFx(kStatus) GdkParam_SetInt(GdkParam param, k32s value);
58 
59 /**
60 * Returns the value of an integer parameter.
61 *
62 * @public @memberof GdkParam
63 * @param param Param object.
64 * @return Parameter value.
65 */
66 GdkFx(k32s) GdkParam_AsInt(GdkParam param);
67 
68 /**
69 * Sets the value of a decimal parameter.
70 *
71 * @public @memberof GdkParam
72 * @param param Param object.
73 * @param value New parameter value.
74 * @return Operation status.
75 */
76 GdkFx(kStatus) GdkParam_SetFloat(GdkParam param, k64f value);
77 
78 /**
79 * Returns the value of an decimal parameter.
80 *
81 * @public @memberof GdkParam
82 * @param param Param object.
83 * @return Parameter value.
84 */
85 GdkFx(k64f) GdkParam_AsFloat(GdkParam param);
86 
87 /**
88 * Sets the value of a boolean parameter.
89 *
90 * @public @memberof GdkParam
91 * @param param Param object.
92 * @param value New parameter value.
93 * @return Operation status.
94 */
95 GdkFx(kStatus) GdkParam_SetBool(GdkParam param, kBool value);
96 
97 /**
98 * Returns the value of an boolean parameter.
99 *
100 * @public @memberof GdkParam
101 * @param param Param object.
102 * @return Parameter value.
103 */
104 GdkFx(kBool) GdkParam_AsBool(GdkParam param);
105 
106 /**
107 * Sets the value of a string parameter.
108 *
109 * @public @memberof GdkParam
110 * @param param Param object.
111 * @param value New parameter value.
112 * @return Operation status.
113 */
114 GdkFx(kStatus) GdkParam_SetString(GdkParam param, const kChar* value);
115 
116 /**
117 * Returns the value of a string parameter.
118 *
119 * @public @memberof GdkParam
120 * @param param Param object.
121 * @return Parameter value.
122 */
123 GdkFx(const kChar*) GdkParam_AsString(GdkParam param);
124 
125 /**
126 * Sets the value of a profile region parameter.
127 *
128 * @public @memberof GdkParam
129 * @param param Param object.
130 * @param value New parameter value.
131 * @return Operation status.
132 */
133 GdkFx(kStatus) GdkParam_SetProfileRegion(GdkParam param, const GdkRegionXZ64f* value);
134 
135 /**
136 * Returns the value of a profile region parameter.
137 *
138 * @public @memberof GdkParam
139 * @param param Param object.
140 * @return Pointer to parameter value.
141 */
142 GdkFx(const GdkRegionXZ64f*) GdkParam_AsProfileRegion(GdkParam param);
143 
144 /**
145 * Sets the value of a surface region parameter.
146 *
147 * @public @memberof GdkParam
148 * @param param Param object.
149 * @param value New parameter value.
150 * @return Operation status.
151 */
152 GdkFx(kStatus) GdkParam_SetSurfaceRegion(GdkParam param, const GdkRegion3d64f* value);
153 
154 /**
155 * Returns the value of a surface region parameter.
156 *
157 * @public @memberof GdkParam
158 * @param param Param object.
159 * @return Pointer to parameter value.
160 */
161 GdkFx(const GdkRegion3d64f*) GdkParam_AsSurfaceRegion(GdkParam param);
162 
163 /**
164 * Sets the value of a surface 2D region parameter.
165 *
166 * @public @memberof GdkParam
167 * @param param Param object.
168 * @param value New parameter value.
169 * @return Operation status.
170 */
171 GdkFx(kStatus) GdkParam_SetSurfaceRegion2D(GdkParam param, const GdkRegion2d64f* value);
172 
173 /**
174 * Returns the value of a surface 2D region parameter.
175 *
176 * @public @memberof GdkParam
177 * @param param Param object.
178 * @return Pointer to parameter value.
179 */
180 GdkFx(const GdkRegion2d64f*) GdkParam_AsSurfaceRegion2D(GdkParam param);
181 
182 /**
183 * Clones a copy of the parameter's param info for use.
184 *
185 * @public @memberof GdkParam
186 * @param param Param object.
187 * @param info Reference to parameter info.
188 * @return Operation status.
189 */
191 
192 #endif
Essential Gdk declarations.
const kChar * GdkParam_AsString(GdkParam param)
Returns the value of a string parameter.
Declares the GdkParamInfo class.
kStatus GdkParam_SetString(GdkParam param, const kChar *value)
Sets the value of a string parameter.
kStatus GdkParam_EditableInfo(GdkParam param, GdkParamInfo *info)
Clones a copy of the parameter's param info for use.
Represents the schema of a configurable parameter.
kStatus GdkParam_SetUsed(GdkParam param, kBool used)
Sets the used attribute.
const GdkRegion2d64f * GdkParam_AsSurfaceRegion2D(GdkParam param)
Returns the value of a surface 2D region parameter.
kStatus GdkParam_SetInt(GdkParam param, k32s value)
Sets the value of an integer parameter.
kStatus GdkParam_SetSurfaceRegion2D(GdkParam param, const GdkRegion2d64f *value)
Sets the value of a surface 2D region parameter.
kStatus GdkParam_SetProfileRegion(GdkParam param, const GdkRegionXZ64f *value)
Sets the value of a profile region parameter.
const GdkRegion3d64f * GdkParam_AsSurfaceRegion(GdkParam param)
Returns the value of a surface region parameter.
k64f GdkParam_AsFloat(GdkParam param)
Returns the value of an decimal parameter.
Represents the data of a configurable parameter.
k32s GdkParam_AsInt(GdkParam param)
Returns the value of an integer parameter.
kStatus GdkParam_SetBool(GdkParam param, kBool value)
Sets the value of a boolean parameter.
kBool GdkParam_Used(GdkParam param)
Returns the used attribute.
kBool GdkParam_AsBool(GdkParam param)
Returns the value of an boolean parameter.
kStatus GdkParam_SetSurfaceRegion(GdkParam param, const GdkRegion3d64f *value)
Sets the value of a surface region parameter.
kStatus GdkParam_SetFloat(GdkParam param, k64f value)
Sets the value of a decimal parameter.
const GdkRegionXZ64f * GdkParam_AsProfileRegion(GdkParam param)
Returns the value of a profile region parameter.
kBool GdkParam_IsSet(GdkParam param)
Returns whether or not an optional parameter has been set.