@@ -161,11 +161,11 @@ #define OF_NOT_FOUND SIZE_MAX /*! * @brief A result of a comparison. */ -typedef enum of_comparison_result_t { +typedef enum { /*! The left object is smaller than the right */ OF_ORDERED_ASCENDING = -1, /*! Both objects are equal */ OF_ORDERED_SAME = 0, /*! The left object is bigger than the right */ @@ -173,21 +173,23 @@ } of_comparison_result_t; /*! * @brief An enum for storing endianess. */ -typedef enum of_byte_order_t { +typedef enum { /*! Most significant byte first (big endian) */ OF_BYTE_ORDER_BIG_ENDIAN, /*! Least significant byte first (little endian) */ OF_BYTE_ORDER_LITTLE_ENDIAN } of_byte_order_t; /*! + * @struct of_range_t OFObject.h ObjFW/OFObject.h + * * @brief A range. */ -typedef struct of_range_t { +typedef struct { /*! The start of the range */ size_t location; /*! The length of the range */ size_t length; } of_range_t; @@ -196,34 +198,39 @@ * @brief A time interval in seconds. */ typedef double of_time_interval_t; /*! + * @struct of_point_t OFObject.h ObjFW/OFObject.h + * * @brief A point. */ -typedef struct of_point_t { +typedef struct { /*! The x coordinate of the point */ float x; /*! The y coordinate of the point */ float y; } of_point_t; /*! + * @struct of_dimension_t OFObject.h ObjFW/OFObject.h + * * @brief A dimension. */ -typedef struct of_dimension_t { +typedef struct { /*! The width of the dimension */ float width; /*! The height of the dimension */ float height; } of_dimension_t; /*! + * @struct of_rectangle_t OFObject.h ObjFW/OFObject.h + * * @brief A rectangle. */ -typedef struct of_rectangle_t -{ +typedef struct { /*! The point from where the rectangle originates */ of_point_t origin; /*! The size of the rectangle */ of_dimension_t size; } of_rectangle_t; @@ -230,10 +237,12 @@ @class OFString; @class OFThread; /*! + * @protocol OFObject OFObject.h ObjFW/OFObject.h + * * @brief The protocol which all root classes implement. */ @protocol OFObject /*! * @brief Returns the class of the object. @@ -405,10 +414,12 @@ */ - (bool)isProxy; @end /*! + * @class OFObject OFObject.h ObjFW/OFObject.h + * * @brief The root class for all other classes inside ObjFW. */ OF_ROOT_CLASS @interface OFObject { @@ -921,10 +932,12 @@ */ - (void)doesNotRecognizeSelector: (SEL)selector; @end /*! + * @protocol OFCopying OFObject.h ObjFW/OFObject.h + * * @brief A protocol for the creation of copies. */ @protocol OFCopying /*! * @brief Copies the object. @@ -937,10 +950,12 @@ */ - copy; @end /*! + * @protocol OFMutableCopying OFObject.h ObjFW/OFObject.h + * * @brief A protocol for the creation of mutable copies. * * This protocol is implemented by objects that can be mutable and immutable * and allows returning a mutable copy. */ @@ -952,10 +967,12 @@ */ - mutableCopy; @end /*! + * @protocol OFComparing OFObject.h ObjFW/OFObject.h + * * @brief A protocol for comparing objects. * * This protocol is implemented by objects that can be compared. */ @protocol OFComparing