MTK platform learning-Simple Analysis of MTK highlight events

Source: Internet
Author: User

Simple Analysis of highlight events on the MTK platform only involves applications at the MMI Layer

Involved functions:
Void sethilitehandler (2010itemid, funcptr hilitefuncptr );
Void registerhighlighthandler (void (* f) (s32 item_index ));
Void executecurrhilitehandler (s32 hiliteid );

Principle: 1. registerhighlighthandler (executecurrhilitehandler)
A. executecurrhilitehandler Function
The ID of the highlighted menu: hiliteitemid
Execute the execution function associated with this ID: maxhiliteinfo [hiliteitemid]. entryfuncptr
B. registerhighlighthandler Function
Pass the above function pointer (handle) to the global variable mmi_list_highlight_handler for calling.
2. There are two problems:
A. How is the highlight ID associated with the highlighted execution function?
B. How is the global highlight handle executed?
3. Associate the highlighted ID with the execution function
Sethilitehandler
This function associates the ID with the function:
Maxhiliteinfo [Itemid]. entryfuncptr = hilitefuncptr;
Itemid is the input menu ID, and hilitefuncptr is the input highlighted execution function.
4. Execution of the global highlight handle
No specific analysis is available because it is not currently involved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.