︙ | | | ︙ | |
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
} of_byte_order_t;
/*!
* @struct of_range_t OFObject.h ObjFW/OFObject.h
*
* @brief A range.
*/
typedef struct OF_BOXABLE {
/*! The start of the range */
size_t location;
/*! The length of the range */
size_t length;
} of_range_t;
/*!
* @brief Creates a new of_range_t.
*
* @param start The starting index of the range
* @param length The length of the range
* @return An of_range with the specified start and length
|
|
>
|
|
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
} of_byte_order_t;
/*!
* @struct of_range_t OFObject.h ObjFW/OFObject.h
*
* @brief A range.
*/
struct OF_BOXABLE of_range_t {
/*! The start of the range */
size_t location;
/*! The length of the range */
size_t length;
};
typedef struct of_range_t of_range_t;
/*!
* @brief Creates a new of_range_t.
*
* @param start The starting index of the range
* @param length The length of the range
* @return An of_range with the specified start and length
|
︙ | | | ︙ | |
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
typedef double of_time_interval_t;
/*!
* @struct of_point_t OFObject.h ObjFW/OFObject.h
*
* @brief A point.
*/
typedef struct OF_BOXABLE {
/*! The x coordinate of the point */
float x;
/*! The y coordinate of the point */
float y;
} of_point_t;
/*!
* @brief Creates a new of_point_t.
*
* @param x The x coordinate of the point
* @param y The x coordinate of the point
* @return An of_point_t with the specified coordinates
|
|
>
|
|
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
typedef double of_time_interval_t;
/*!
* @struct of_point_t OFObject.h ObjFW/OFObject.h
*
* @brief A point.
*/
struct OF_BOXABLE of_point_t {
/*! The x coordinate of the point */
float x;
/*! The y coordinate of the point */
float y;
};
typedef struct of_point_t of_point_t;
/*!
* @brief Creates a new of_point_t.
*
* @param x The x coordinate of the point
* @param y The x coordinate of the point
* @return An of_point_t with the specified coordinates
|
︙ | | | ︙ | |
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
}
/*!
* @struct of_dimension_t OFObject.h ObjFW/OFObject.h
*
* @brief A dimension.
*/
typedef struct OF_BOXABLE {
/*! The width of the dimension */
float width;
/*! The height of the dimension */
float height;
} of_dimension_t;
/*!
* @brief Creates a new of_dimension_t.
*
* @param width The width of the dimension
* @param height The height of the dimension
* @return An of_dimension_t with the specified width and height
|
|
>
|
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
}
/*!
* @struct of_dimension_t OFObject.h ObjFW/OFObject.h
*
* @brief A dimension.
*/
struct OF_BOXABLE of_dimension_t {
/*! The width of the dimension */
float width;
/*! The height of the dimension */
float height;
};
typedef struct of_dimension_t of_dimension_t;
/*!
* @brief Creates a new of_dimension_t.
*
* @param width The width of the dimension
* @param height The height of the dimension
* @return An of_dimension_t with the specified width and height
|
︙ | | | ︙ | |
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
}
/*!
* @struct of_rectangle_t OFObject.h ObjFW/OFObject.h
*
* @brief A rectangle.
*/
typedef struct OF_BOXABLE {
/*! The point from where the rectangle originates */
of_point_t origin;
/*! The size of the rectangle */
of_dimension_t size;
} of_rectangle_t;
/*!
* @brief Creates a new of_rectangle_t.
*
* @param x The x coordinate of the top left corner of the rectangle
* @param y The y coordinate of the top left corner of the rectangle
* @param width The width of the rectangle
|
|
>
|
|
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
}
/*!
* @struct of_rectangle_t OFObject.h ObjFW/OFObject.h
*
* @brief A rectangle.
*/
struct OF_BOXABLE of_rectangle_t {
/*! The point from where the rectangle originates */
of_point_t origin;
/*! The size of the rectangle */
of_dimension_t size;
};
typedef struct of_rectangle_t of_rectangle_t;
/*!
* @brief Creates a new of_rectangle_t.
*
* @param x The x coordinate of the top left corner of the rectangle
* @param y The y coordinate of the top left corner of the rectangle
* @param width The width of the rectangle
|
︙ | | | ︙ | |