lv_monkey.h
Typedefs
-
typedef struct _lv_monkey_t lv_monkey_t
Functions
-
void lv_monkey_config_init(lv_monkey_config_t *config)
Initialize a monkey config with default values
- 参数:
config -- pointer to 'lv_monkey_config_t' variable to initialize
-
lv_monkey_t *lv_monkey_create(const lv_monkey_config_t *config)
Create monkey for test
- 参数:
config -- pointer to 'lv_monkey_config_t' variable
- 返回:
pointer to the created monkey
-
lv_indev_t *lv_monkey_get_indev(lv_monkey_t *monkey)
Get monkey input device
- 参数:
monkey -- pointer to a monkey
- 返回:
pointer to the input device
-
void lv_monkey_set_enable(lv_monkey_t *monkey, bool en)
Enable monkey
- 参数:
monkey -- pointer to a monkey
en -- set to true to enable
-
bool lv_monkey_get_enable(lv_monkey_t *monkey)
Get whether monkey is enabled
- 参数:
monkey -- pointer to a monkey
- 返回:
return true if monkey enabled
-
void lv_monkey_set_user_data(lv_monkey_t *monkey, void *user_data)
Set the user_data field of the monkey
- 参数:
monkey -- pointer to a monkey
user_data -- pointer to the new user_data.
-
void *lv_monkey_get_user_data(lv_monkey_t *monkey)
Get the user_data field of the monkey
- 参数:
monkey -- pointer to a monkey
- 返回:
the pointer to the user_data of the monkey
-
void lv_monkey_delete(lv_monkey_t *monkey)
Delete monkey
- 参数:
monkey -- pointer to monkey
-
struct _lv_monkey_config_t
Public Members
-
lv_indev_type_t type
< Input device type Monkey execution period
-
struct _lv_monkey_config_t::[anonymous] period_range
The range of input value
-
int32_t min
-
int32_t max
-
struct _lv_monkey_config_t::[anonymous] input_range
-
lv_indev_type_t type