Differences From Artifact [2c787e015d]:
- File
src/OFObject.h
— part of check-in
[14c70763b0]
at
2023-08-05 09:04:27
on branch trunk
— Remove hacks in headers for C compatibility
A better approach would probably be to have a separate header which
makes some classes available to pure C. (user: js, size: 43050) [annotate] [blame] [check-ins using] [more...]
To Artifact [6d396e3db6]:
- File src/OFObject.h — part of check-in [772e8b8f78] at 2023-08-09 22:39:27 on branch trunk — OFValue: Improve -[description] (user: js, size: 43102) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
99 100 101 102 103 104 105 | } OFByteOrder; /** * @struct OFRange OFObject.h ObjFW/OFObject.h * * @brief A range. */ | | | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | } OFByteOrder; /** * @struct OFRange OFObject.h ObjFW/OFObject.h * * @brief A range. */ typedef struct OF_BOXABLE OFRange { /** The start of the range */ size_t location; /** The length of the range */ size_t length; } OFRange; /** |
︙ | ︙ | |||
150 151 152 153 154 155 156 | typedef double OFTimeInterval; /** * @struct OFPoint OFObject.h ObjFW/OFObject.h * * @brief A point in 2D space. */ | | | 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | typedef double OFTimeInterval; /** * @struct OFPoint OFObject.h ObjFW/OFObject.h * * @brief A point in 2D space. */ typedef struct OF_BOXABLE OFPoint { /** The x coordinate of the point */ float x; /** The y coordinate of the point */ float y; } OFPoint; /** |
︙ | ︙ | |||
196 197 198 199 200 201 202 | } /** * @struct OFSize OFObject.h ObjFW/OFObject.h * * @brief A size. */ | | | 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | } /** * @struct OFSize OFObject.h ObjFW/OFObject.h * * @brief A size. */ typedef struct OF_BOXABLE OFSize { /** The width of the size */ float width; /** The height of the size */ float height; } OFSize; /** |
︙ | ︙ | |||
242 243 244 245 246 247 248 | } /** * @struct OFRect OFObject.h ObjFW/OFObject.h * * @brief A rectangle. */ | | | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | } /** * @struct OFRect OFObject.h ObjFW/OFObject.h * * @brief A rectangle. */ typedef struct OF_BOXABLE OFRect { /** The point from where the rectangle originates */ OFPoint origin; /** The size of the rectangle */ OFSize size; } OFRect; /** |
︙ | ︙ | |||
293 294 295 296 297 298 299 | } /** * @struct OFVector3D OFObject.h ObjFW/OFObject.h * * @brief A vector in 3D space. */ | | | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | } /** * @struct OFVector3D OFObject.h ObjFW/OFObject.h * * @brief A vector in 3D space. */ typedef struct OF_BOXABLE OFVector3D { /** The x coordinate of the vector */ float x; /** The y coordinate of the vector */ float y; /** The z coordinate of the vector */ float z; } OFVector3D; |
︙ | ︙ | |||
345 346 347 348 349 350 351 | } /** * @struct OFVector4D OFObject.h ObjFW/OFObject.h * * @brief A vector in 4D space. */ | | | 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 | } /** * @struct OFVector4D OFObject.h ObjFW/OFObject.h * * @brief A vector in 4D space. */ typedef struct OF_BOXABLE OFVector4D { /** The x coordinate of the vector */ float x; /** The y coordinate of the vector */ float y; /** The z coordinate of the vector */ float z; /** The w coordinate of the vector */ |
︙ | ︙ |