Overview
Comment: | OFColor: Improve style of deprecation message |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 1.2 |
Files: | files | file ages | folders |
SHA3-256: |
ff29e35344764aa2273172a1c55d02e4 |
User & Date: | js on 2024-11-08 22:43:59 |
Other Links: | branch diff | manifest | tags |
Context
2024-11-09
| ||
00:42 | Make ObjC++ exceptions work on Windows with DWARF check-in: 105d2f60b7 user: js tags: 1.2 | |
2024-11-08
| ||
22:43 | OFColor: Improve style of deprecation message check-in: ff29e35344 user: js tags: 1.2 | |
22:43 | OFColor: Improve style of deprecation message check-in: 5204353c50 user: js tags: trunk | |
20:57 | Make ObjC++ exceptions work with libc++ on Windows check-in: 6bb25d33ac user: js tags: 1.2 | |
Changes
Modified src/OFColor.h from [aeb31a556f] to [f08834ff4d].
︙ | ︙ | |||
28 29 30 31 32 33 34 | */ @interface OFColor: OFObject #ifdef OF_HAVE_CLASS_PROPERTIES @property (class, readonly, nonatomic) OFColor *black; @property (class, readonly, nonatomic) OFColor *silver; @property (class, readonly, nonatomic) OFColor *gray; @property (class, readonly, nonatomic) OFColor *grey | | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | */ @interface OFColor: OFObject #ifdef OF_HAVE_CLASS_PROPERTIES @property (class, readonly, nonatomic) OFColor *black; @property (class, readonly, nonatomic) OFColor *silver; @property (class, readonly, nonatomic) OFColor *gray; @property (class, readonly, nonatomic) OFColor *grey OF_DEPRECATED(ObjFW, 1, 1, "Use +[gray] instead"); @property (class, readonly, nonatomic) OFColor *white; @property (class, readonly, nonatomic) OFColor *maroon; @property (class, readonly, nonatomic) OFColor *red; @property (class, readonly, nonatomic) OFColor *purple; @property (class, readonly, nonatomic) OFColor *fuchsia; @property (class, readonly, nonatomic) OFColor *green; @property (class, readonly, nonatomic) OFColor *lime; |
︙ | ︙ | |||
95 96 97 98 99 100 101 | * * @deprecated Use @ref gray instead. * * The RGBA value is (0.5, 0.5, 0.5, 1). * * @return The HTML color `gray` */ | | | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | * * @deprecated Use @ref gray instead. * * The RGBA value is (0.5, 0.5, 0.5, 1). * * @return The HTML color `gray` */ + (OFColor *)grey OF_DEPRECATED(ObjFW, 1, 1, "Use +[gray] instead"); /** * @brief Returns the HTML color `white`. * * The RGBA value is (1, 1, 1, 1). * * @return The HTML color `white` |
︙ | ︙ |