MTK Common function __ function

Source: Internet
Author: User
Tags function prototype transparent color resource
To display a function prototype of a text string:
void (*gui_print_text) (Ui_string_type_text);
Refresh screen/Redraw screen:
Gui_blt_double_buffer (S32 x1,s32 y1,s32 x2,s32 y2);
Clear the screen as blank:
Clear_screen ();
Set the starting position of the text output:
Gui_move_text_cursor ();
To modify the text color:
Gui_set_text_color ();
To exit the previous program:
Entrynewscreen ();
Full screen:
Entry_full_screen ();
The last screen shown in the pop-up history:
Setkeyhandler ();
Left-button response function:
Setleftkeyfunction ();
Highlight function:
Sethilitehandler ();
Text Draw function:
Gui_print_text ();
To output a character on the screen:
Gui_print_character ();
Output a text with a border:
Gui_print_bodered_text ();
Measure how much pixel length and height a string occupies on the screen:
Gui_measure_string ();
Transforming the shaping data into a string:
Gui_itoa ();
Set the color of the border:
Gui_set_border_color ();
Drawing points:
Gui_putpixel ();/gdi_draw_point ();
Draw line:
Gui_line ();
To draw a horizontal line:
Gui_draw_horizontal_line ();
To draw a vertical line:
Gui_draw_vertical_line ();
Draw a rectangle:
Gui_draw_rectangle ();
Draw a solid rectangle filled with the C color:
Gui_fill_rectangle ();
Draw a filled rectangle with a border on the screen:
Gdi_draw_frame_rect ();
Draw lines of different widths:
Gui_wline ();
Cross pattern:
Gui_cross_hatch_fill_rectangle ();
Shutters:
Gui_hatch_fill_rectangle ();
Cross pattern (two colors alternating):
Gui_alternate_cross_hatch_fill_rectangle ();
Blinds (two colors alternating):
Gui_alternate_hatch_fill_rectangle ();
Rounded rectangles:
Gdi_draw_round_rect ();
button-style rectangles:
Gdi_draw_button_rect ();
Shaded rectangles:
Gdi_draw_shadow_rect ();
Fill rectangle with progressive color:
Gdi_draw_gradient_rect ();
Draw icon:
Gui_show_image ();
To draw an image:
Gdi_image_draw_file ();
Animation:
GDI_ANIM_DRAW_ID ();
Pause Animation Playback:
Gdi_anim_stop ();
Image typesetting:
GDI_IMAGE_GET_DIMENSION_ID ();
Enter the image clipping area:
Gui_push_clip ();
To restore the image clipping area:
Gui_pop_clip ();
To crop an image:
Gui_set_clip ();
Resets the image clipping area to the default range:
Gui_reset_clip ();
To create a layer:
Gdi_layer_create ();
General static image display functions are as follows:
GDI_IMAGE_DRAW_ID () resource ID, not scaled
Gdi_image_draw () resource buffer, not scaled
Gdi_image_draw_file () file, not scaled
Gdi_image_draw_ext () Buffer, not scaled
GDI_IMAGE_DRAW_RESIZED_IF () resource ID, scalable
Gdi_image_draw_resized () resource buffer, scalable
Gdi_image_draw_resized_file () file, scalable
Gdi_image_draw_resized_ext () Buffer, scalable
The usual animation functions are as follows:
GDI_ANIM_DRAW_ID (); resource ID, not scaled
Gdi_anim_draw_id_once (); resource ID, do not scale, draw only once
Gdi_anim_draw (); Resource buffer, not scaled
Gdi_anim_draw_frames (); Resource buffer, not scaled, specify start frame
Gdi_anim_draw_resized (); Resource buffer, scalable
Gdi_anim_draw_once (); Resource buffer, do not scale, draw only once
Gdi_anim_draw_file (); file, not scaled
Gdi_anim_draw_file_resized (); file, scalable
Gdi_anim_draw_file_frames (); file, not scaled, specify start frame
Gdi_anim_draw_mem (); buffer, not scaled
Gdi_anim_draw_mem_frames (); Buffer, not scaled, specifies the start frame
Gdi_anim_draw_mem_resized (); Buffer, scalable
Gdi_anim_draw_mem_once (); Buffer, do not scale, draw only once
To create a layer:
Gdi_layer_set_active ();
To get the underlying layer handle:
Gdi_layer_get_base_handle ();
Activation layer:
Gdi_layer_set_active ();
Merge layer:
Gui_blt_double_buffer ();
Indicate which layers need to be merged:
Gdi_layer_set_blt_layer ();/gdi_layer_blt ();
Brush the entire layer into a single color:
Gdi_layer_clear (); To set a color as a layer's transparent color:
Gdi_layer_set_source_key ();
Translucent Effects:
Gdi_layer_set_opacity ();
Release layer:
Gdi_layer_free ();
Lock screen:
Gdi_layer_lock_frame_buffer ();
Gdi_layer_unlock_frame_buffer ();
Initialize the basic properties of the menu frame:
Gui_create_fixed_list_menu ();
To set the highlight of a menu:
Gui_fixed_list_menu_goto_item ();
To stop a menu item from scrolling:
Gui_fixed_icontext_menuitem_stop_scroll ();

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.