blob: d1dcedb1d1a711f9639ad5a5a36e4df73175152f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// SDLTextField.h
//
#import "SDLRPCMessage.h"
#import "SDLCharacterSet.h"
#import "SDLTextFieldName.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Struct defining the characteristics of a displayed field on the HMI.
*
* @since SDL 1.0
*/
@interface SDLTextField : SDLRPCStruct
/**
* The enumeration identifying the field.
*
* @see SDLTextFieldName
*
* Required
*/
@property (strong, nonatomic) SDLTextFieldName name;
/**
* The character set that is supported in this field.
*
* @see SDLCharacterSet
*
* Required
*/
@property (strong, nonatomic) SDLCharacterSet characterSet;
/**
* The number of characters in one row of this field.
*
* Required, Integer 1 - 500
*/
@property (strong, nonatomic) NSNumber<SDLInt> *width;
/**
* The number of rows for this text field.
*
* Required, Integer 1 - 8
*/
@property (strong, nonatomic) NSNumber<SDLInt> *rows;
/// Convenience initalizer for the TextField RPC struct
/// @param name The name identifying this text field
/// @param characterSet The character set of this text field
/// @param width The number of characters per row allowed in this text field
/// @param rows The number of rows allowed in this text field
- (instancetype)initWithName:(SDLTextFieldName)name characterSet:(SDLCharacterSet)characterSet width:(NSUInteger)width rows:(NSUInteger)rows;
@end
NS_ASSUME_NONNULL_END
|