ObjFW  Check-in [f86ac97de4]

Overview
Comment:Add of_{point,dimension,rectangle}_t.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f86ac97de49b2e42ecc31c8cbb37b646f385d7a47934062fdb8b419e8bedd3a1
User & Date: js on 2011-06-13 23:47:46
Other Links: manifest | tags
Context
2011-06-13
23:52
Add of_{point,dimension,rectangle}(). check-in: 6f357e67bd user: js tags: trunk
23:47
Add of_{point,dimension,rectangle}_t. check-in: f86ac97de4 user: js tags: trunk
21:28
Fix a typo in README. check-in: 31ad00b702 user: js tags: trunk
Changes

Modified src/OFObject.h from [482cb22a3c] to [93706299d5].

44
45
46
47
48
49
50








51
52
53
54
55
56
57
58
59
60
61
62
63
64



65







66







67
68
69
70
71
72
73
74
	OF_ORDERED_ASCENDING = -1,
	/// Both objects are equal
	OF_ORDERED_SAME = 0,
	/// The left object is bigger than the right
	OF_ORDERED_DESCENDING = 1
} of_comparison_result_t;









/**
 * \brief A range.
 */
typedef struct of_range_t {
	/// The start of the range
	size_t start;
	/// The length of the range
	size_t length;
} of_range_t;

/**
 * \brief An enum for storing endianess.
 */
typedef enum of_endianess_t {



	OF_ENDIANESS_BIG_ENDIAN,







	OF_ENDIANESS_LITTLE_ENDIAN







} of_endianess_t;

@class OFString;

/**
 * \brief The protocol which all root classes implement.
 */
@protocol OFObject







>
>
>
>
>
>
>
>











|

|
>
>
>
|
>
>
>
>
>
>
>
|
>
>
>
>
>
>
>
|







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
	OF_ORDERED_ASCENDING = -1,
	/// Both objects are equal
	OF_ORDERED_SAME = 0,
	/// The left object is bigger than the right
	OF_ORDERED_DESCENDING = 1
} of_comparison_result_t;

/**
 * \brief An enum for storing endianess.
 */
typedef enum of_endianess_t {
	OF_ENDIANESS_BIG_ENDIAN,
	OF_ENDIANESS_LITTLE_ENDIAN
} of_endianess_t;

/**
 * \brief A range.
 */
typedef struct of_range_t {
	/// The start of the range
	size_t start;
	/// The length of the range
	size_t length;
} of_range_t;

/**
 * \brief A point.
 */
typedef struct of_point_t {
	int x;
	int y;
} of_point_t;

/**
 * \brief A dimension.
 */
typedef struct of_dimension_t {
	int width;
	int height;
} of_dimension_t;

/**
 * \brief A rectangle.
 */
typedef struct of_rectangle_t
{
	of_point_t origin;
	of_dimension_t size;
} of_rectangle_t;

@class OFString;

/**
 * \brief The protocol which all root classes implement.
 */
@protocol OFObject