Differences From Artifact [3b8ccce865]:
- File src/KeyMapping.h — part of check-in [7a98b92af9] at 2025-03-25 23:52:50 on branch trunk — Make use of OF_DIRECT (user: js, size: 418) [annotate] [blame] [check-ins using]
To Artifact [7e5483fe4c]:
- File
src/KeyMapping.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: 422) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 | #import <ObjFW/ObjFW.h> OF_ASSUME_NONNULL_BEGIN OF_DIRECT_MEMBERS @interface KeyMapping: OFObject @property (readonly) int code; @property (readonly, nonatomic) OFString *name; @property (copy, nonatomic) OFString *action; | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #import <ObjFW/ObjFW.h> OF_ASSUME_NONNULL_BEGIN OF_DIRECT_MEMBERS @interface KeyMapping: OFObject @property (readonly) int code; @property (readonly, nonatomic) OFString *name; @property (copy, nonatomic) OFString *action; + (instancetype)mappingWithCode: (int)code name: (OFString *)name; - (instancetype)init OF_UNAVAILABLE; - (instancetype)initWithCode: (int)code name: (OFString *)name; @end OF_ASSUME_NONNULL_END |