TIM SDK
TIM API C
|
|
Display product info.
Object type display_product_info.
ta_e_result_code_t ta_display_product_info_copy | ( | ta_object_t * | info, |
const ta_object_t * | source_info | ||
) |
Create copy of display product info.
[out] | info | Pointer to variable to write created object instance to. Created object instance is retained. |
[in] | source_info | Object of type display_product_info to create copy of. |
ta_c_rc_ok | Object instance has been created and written to info. |
ta_c_rc_invalid_argument | info is null-pointer. |
ta_c_rc_invalid_argument | source_info is ta_invalid_object. |
ta_c_rc_invalid_argument | source_info is not of type display_product_info. |
ta_c_rc_out_of_memory | Failed allocating memory. |
ta_e_result_code_t ta_display_product_info_create | ( | ta_object_t * | info | ) |
Create display product info.
[out] | info | Pointer to variable to write created object instance to. Created object instance is retained. |
ta_c_rc_ok | Object instance has been created and written to info. |
ta_c_rc_invalid_argument | info is null-pointer. |
ta_c_rc_out_of_memory | Failed allocating memory. |
ta_e_result_code_t ta_display_product_info_get_background_color | ( | ta_object_t | info, |
ta_s_color_t * | background_color | ||
) |
Background color.
[in] | info | Object instance of type display_product_info. |
[out] | background_color | Pointer to variable to write value to. |
ta_c_rc_ok | Value written to background_color. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | background_color is null-pointer. |
ta_e_result_code_t ta_display_product_info_get_image_data | ( | ta_object_t | info, |
ta_object_t * | data | ||
) |
Image data in specified format.
[in] | info | Object instance of type display_product_info. |
[out] | data | Pointer to variable to write object instance to. Object instance is of type string and is not retained. Object instance is ta_invalid_object if value is not set in info. |
ta_c_rc_ok | Object instance written to data. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | data is null-pointer. |
ta_e_result_code_t ta_display_product_info_get_image_file_format | ( | ta_object_t | info, |
ta_e_image_file_format_t * | image_file_format | ||
) |
Image file format.
[in] | info | Object instance of type display_product_info. |
[out] | image_file_format | Pointer to variable to write value to. Value is ta_c_iff_undefined if value is not set in info. |
ta_c_rc_ok | Value written to image_file_format. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | image_file_format is null-pointer. |
ta_e_result_code_t ta_display_product_info_get_image_file_height | ( | ta_object_t | info, |
int * | image_file_height | ||
) |
Image file height in pixels.
[in] | info | Object instance of type display_product_info. |
[out] | image_file_height | Pointer to variable to write value to. |
ta_c_rc_ok | Value written to image_file_height. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | image_file_height is null-pointer. |
ta_e_result_code_t ta_display_product_info_get_image_file_width | ( | ta_object_t | info, |
int * | image_file_width | ||
) |
Image file width in pixels.
[in] | info | Object instance of type display_product_info. |
[out] | image_file_width | Pointer to variable to write value to. |
ta_c_rc_ok | Value written to image_file_width. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | image_file_width is null-pointer. |
ta_e_result_code_t ta_display_product_info_get_product_display_name | ( | ta_object_t | info, |
ta_object_t * | name | ||
) |
Product display name.
[in] | info | Object instance of type display_product_info. |
[out] | name | Pointer to variable to write object instance to. Object instance is of type string and is not retained. Object instance is ta_invalid_object if value is not set in info. |
ta_c_rc_ok | Object instance written to name. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | name is null-pointer. |
ta_e_result_code_t ta_display_product_info_set_background_color | ( | ta_object_t | info, |
const ta_s_color_t * | background_color | ||
) |
Set background color.
[in] | info | Object instance of type display_product_info. |
[in] | background_color | Pointer to value to set. |
ta_c_rc_ok | Value assigned to info. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | background_color is null-pointer. |
ta_e_result_code_t ta_display_product_info_set_image_data | ( | ta_object_t | info, |
ta_object_t | data | ||
) |
Set image data in specified format.
[in] | info | Object instance of type display_product_info. |
[in] | data | Object instance to set. Object instance can be ta_invalid_object to clear the value in info. If object instance is not ta_invalid_object is has to be of type string. |
ta_c_rc_ok | Object instance assigned to info. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | data is not ta_invalid_object and is not of type string. |
ta_e_result_code_t ta_display_product_info_set_image_file_format | ( | ta_object_t | info, |
ta_e_image_file_format_t | image_file_format | ||
) |
Set image file format.
[in] | info | Object instance of type display_product_info. |
[in] | image_file_format | Value to set. |
ta_c_rc_ok | Value assigned to info. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | image_file_format is ta_c_iff_undefined. |
ta_e_result_code_t ta_display_product_info_set_image_file_height | ( | ta_object_t | info, |
int | image_file_height | ||
) |
Set image file height in pixels.
[in] | info | Object instance of type display_product_info. |
[in] | image_file_height | Value to set. |
ta_c_rc_ok | Value assigned to info. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | image_file_height is less than 1. |
ta_e_result_code_t ta_display_product_info_set_image_file_width | ( | ta_object_t | info, |
int | image_file_width | ||
) |
Set image file width in pixels.
[in] | info | Object instance of type display_product_info. |
[in] | image_file_width | Value to set. |
ta_c_rc_ok | Value assigned to info. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | image_file_width is less than 1. |
ta_e_result_code_t ta_display_product_info_set_product_display_name | ( | ta_object_t | info, |
ta_object_t | name | ||
) |
Set product display name.
[in] | info | Object instance of type display_product_info. |
[in] | name | Object instance to set. Object instance can be ta_invalid_object to clear the value in info. If object instance is not ta_invalid_object is has to be of type string. |
ta_c_rc_ok | Object instance assigned to info. |
ta_c_rc_invalid_argument | info is ta_invalid_object. |
ta_c_rc_invalid_argument | info is not of type display_product_info. |
ta_c_rc_invalid_argument | name is not ta_invalid_object and is not of type string. |