Differences From Artifact [213d149aa4]:
- File src/Menu.h — part of check-in [7a98b92af9] at 2025-03-25 23:52:50 on branch trunk — Make use of OF_DIRECT (user: js, size: 445) [annotate] [blame] [check-ins using]
To Artifact [fddccab06a]:
- File
src/Menu.h
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 447) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 13 | #import <ObjFW/ObjFW.h> OF_ASSUME_NONNULL_BEGIN @class MenuItem; OF_DIRECT_MEMBERS @interface Menu: OFObject @property (readonly, nonatomic) OFString *name; @property (readonly) OFMutableArray<MenuItem *> *items; @property (nonatomic) int mwidth; @property (nonatomic) int menusel; | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #import <ObjFW/ObjFW.h> OF_ASSUME_NONNULL_BEGIN @class MenuItem; OF_DIRECT_MEMBERS @interface Menu: OFObject @property (readonly, nonatomic) OFString *name; @property (readonly) OFMutableArray<MenuItem *> *items; @property (nonatomic) int mwidth; @property (nonatomic) int menusel; + (instancetype)menuWithName: (OFString *)name; - (instancetype)init OF_UNAVAILABLE; - (instancetype)initWithName: (OFString *)name; @end OF_ASSUME_NONNULL_END |