mtk常用函数(monly used functions) A function prototype for displaying text strings: Void (*gui_print_text) (UI_string_type_text); Refresh screen / redraw screen: Gui_BLT_double_buffer (S32 x1, S32 Y1, S32 X2, S32 Y2); Make the screen blank: Clear_screen (); Set the start position of the text output: Gui_move_text_cursor (); Modify text color: Gui_set_text_color (); Quit the previous program: EntryNewScreen (); Full screen: Entry_full_screen (); Pop up the last display screen in history: SetKeyHandler (); Left click response function: SetLeftkeyFunction (); Highlight function: SetHiliteHandler (); Text rendering function: Gui_print_text (); Output a character on the screen: Gui_print_character (); Output a text with a border: Gui_print_bodered_text (); How much pixel length and height of a string is measured on the screen?: Gui_measure_string (); Converting plastic data into strings: Gui_itoa (); Set the color of the border: Gui_set_border_color (); Drawing points: Gui_putpixel (); /gdi_draw_point (); Draw lines: Gui_line (); Draw horizontal straight lines: Gui_draw_horizontal_line (); Draw vertical lines: Gui_draw_vertical_line (); Draw a rectangle: Gui_draw_rectangle (); Draw a solid rectangle filled with C colors: Gui_fill_rectangle (); Draw a rectangular rectangle with a border on the screen: Gdi_draw_frame_rect (); Draw lines of different widths: Gui_wline (); Cross lines: Gui_cross_hatch_fill_rectangle (); Window shades: Gui_hatch_fill_rectangle (); Cross stripes (alternating two colors): Gui_alternate_cross_hatch_fill_rectangle (); Blinds (two colors alternate): Gui_alternate_hatch_fill_rectangle (); Rounded rectangle: Gdi_draw_round_rect (); Button style rectangle: Gdi_draw_button_rect (); Rectangle with shadow: Gdi_draw_shadow_rect (); Progressive color filled rectangle: Gdi_draw_gradient_rect (); Draw icon: Gui_show_image (); Draw image: Gdi_image_draw_file (); Animation: Gdi_anim_draw_id ();
mtk常用函数(monly used functions) 来自淘豆网m.daumloan.com转载请标明出处.