| /GUIX-v6.2.1/common/src/ |
| D | gx_system_string_width_get.c | 74 static UINT _gx_system_string_width_compressed_font_get(GX_CONST GX_FONT *font, in _gx_system_string_width_compressed_font_get() argument 106 font_link = font; in _gx_system_string_width_compressed_font_get() 177 static UINT _gx_system_string_width_kerning_font_get(GX_CONST GX_FONT *font, in _gx_system_string_width_kerning_font_get() argument 216 font_link = font; in _gx_system_string_width_kerning_font_get() 311 UINT _gx_system_string_width_get(GX_CONST GX_FONT *font, GX_CONST GX_CHAR *text, INT string_length… in _gx_system_string_width_get() argument 332 status = _gx_system_string_width_get_ext(font, &string, return_width); in _gx_system_string_width_get() 382 UINT _gx_system_string_width_get_ext(GX_CONST GX_FONT *font, GX_CONST GX_STRING *string, GX_VALUE … in _gx_system_string_width_get_ext() argument 396 if (!font || !string_copy.gx_string_ptr) in _gx_system_string_width_get_ext() 402 if (font -> gx_font_format & GX_FONT_FORMAT_COMPRESSED) in _gx_system_string_width_get_ext() 404 return _gx_system_string_width_compressed_font_get(font, &string_copy, return_width); in _gx_system_string_width_get_ext() [all …]
|
| D | gxe_system_string_width_get.c | 79 UINT _gxe_system_string_width_get(GX_CONST GX_FONT *font, GX_CONST GX_CHAR *string, INT string_len… in _gxe_system_string_width_get() argument 88 if ((font == GX_NULL) || (string == GX_NULL) || (return_width == GX_NULL)) in _gxe_system_string_width_get() 94 if (font -> gx_font_glyphs.gx_font_normal_glyphs == GX_NULL) in _gxe_system_string_width_get() 117 status = _gx_system_string_width_get(font, string, string_length, return_width); in _gxe_system_string_width_get() 168 UINT _gxe_system_string_width_get_ext(GX_CONST GX_FONT *font, GX_CONST GX_STRING *string, GX_VALUE… in _gxe_system_string_width_get_ext() argument 177 if ((font == GX_NULL) || (string == GX_NULL) || (return_width == GX_NULL)) in _gxe_system_string_width_get_ext() 183 if (font -> gx_font_glyphs.gx_font_normal_glyphs == GX_NULL) in _gxe_system_string_width_get_ext() 203 status = _gx_system_string_width_get_ext(font, string, return_width); in _gxe_system_string_width_get_ext()
|
| D | gx_rich_text_view_line_info_get.c | 85 GX_FONT *font; in _gx_rich_text_view_line_info_get() local 100 _gx_widget_font_get((GX_WIDGET *)text_view, text_format.gx_rich_text_font_id, &font); in _gx_rich_text_view_line_info_get() 102 if (!font) in _gx_rich_text_view_line_info_get() 127 … _gx_widget_font_get((GX_WIDGET *)text_view, text_format.gx_rich_text_font_id, &font); in _gx_rich_text_view_line_info_get() 129 if (!font) in _gx_rich_text_view_line_info_get() 135 if (line_info -> gx_rich_text_line_info_line_height < font -> gx_font_line_height) in _gx_rich_text_view_line_info_get() 137 line_info -> gx_rich_text_line_info_line_height = font -> gx_font_line_height; in _gx_rich_text_view_line_info_get() 138 line_info -> gx_rich_text_line_info_baseline = font -> gx_font_baseline; in _gx_rich_text_view_line_info_get() 166 _gx_system_string_width_get_ext(font, &string, &glyph_width); in _gx_rich_text_view_line_info_get()
|
| D | gx_canvas_text_draw.c | 175 GX_FONT *font = context -> gx_draw_context_brush.gx_brush_font; in _gx_canvas_text_draw_ext() local 179 if ((font == GX_NULL) || (font -> gx_font_glyphs.gx_font_normal_glyphs == GX_NULL)) in _gx_canvas_text_draw_ext() 185 _gx_system_string_width_get_ext(font, string, &width); in _gx_canvas_text_draw_ext() 190 (GX_VALUE)(y_start + font -> gx_font_line_height)); in _gx_canvas_text_draw_ext() 208 y_start = (GX_VALUE)(y_start + font -> gx_font_baseline + 1); in _gx_canvas_text_draw_ext() 210 switch (font -> gx_font_format & GX_FONT_FORMAT_BPP_MASK) in _gx_canvas_text_draw_ext() 213 if (font -> gx_font_format & GX_FONT_FORMAT_COMPRESSED) in _gx_canvas_text_draw_ext() 224 if (font -> gx_font_format & GX_FONT_FORMAT_COMPRESSED) in _gx_canvas_text_draw_ext() 235 if (font -> gx_font_format & GX_FONT_FORMAT_COMPRESSED) in _gx_canvas_text_draw_ext()
|
| D | gx_multi_line_text_button_text_draw.c | 91 GX_FONT *font; in _gx_multi_line_text_button_text_draw() local 118 _gx_context_font_get(button -> gx_text_button_font_id, &font); in _gx_multi_line_text_button_text_draw() 120 if (font) in _gx_multi_line_text_button_text_draw() 122 text_height = button -> gx_multi_line_text_button_line_count * font -> gx_font_line_height; in _gx_multi_line_text_button_text_draw() 142 _gx_system_string_width_get_ext(font, line, &text_width); in _gx_multi_line_text_button_text_draw() 154 _gx_system_string_width_get_ext(font, line, &text_width); in _gx_multi_line_text_button_text_draw() 163 ytextpos += font -> gx_font_line_height; in _gx_multi_line_text_button_text_draw()
|
| D | gxe_utility_string_to_alphamap.c | 71 UINT _gxe_utility_string_to_alphamap(GX_CONST GX_CHAR *text, GX_CONST GX_FONT *font, GX_PIXELMAP *t… in _gxe_utility_string_to_alphamap() argument 75 if (text == GX_NULL || font == GX_NULL || textmap == GX_NULL) in _gxe_utility_string_to_alphamap() 85 status = _gx_utility_string_to_alphamap(text, font, textmap); in _gxe_utility_string_to_alphamap() 132 UINT _gxe_utility_string_to_alphamap_ext(GX_CONST GX_STRING *text, GX_CONST GX_FONT *font, GX_PI… in _gxe_utility_string_to_alphamap_ext() argument 139 (font == GX_NULL) || in _gxe_utility_string_to_alphamap_ext() 162 status = _gx_utility_string_to_alphamap_ext(text, font, textmap); in _gxe_utility_string_to_alphamap_ext()
|
| D | gx_multi_line_text_input_draw.c | 86 GX_FONT *font; in _gx_multi_line_text_input_draw() local 171 _gx_context_font_get(input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_draw() 173 if (font) in _gx_multi_line_text_input_draw() 175 line_height = (GX_VALUE)(font -> gx_font_line_height + in _gx_multi_line_text_input_draw() 197 _gx_context_font_get(input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_draw() 202 if ((input -> gx_multi_line_text_view_text.gx_string_length) && (font)) in _gx_multi_line_text_input_draw() 217 …line_height = (GX_VALUE)(font -> gx_font_line_height + input -> gx_multi_line_text_view_line_space… in _gx_multi_line_text_input_draw() 240 _gx_system_string_width_get_ext(font, &draw_string, &space_width); in _gx_multi_line_text_input_draw() 262 _gx_system_string_width_get_ext(font, &draw_string, &text_width); in _gx_multi_line_text_input_draw() 277 _gx_system_string_width_get_ext(font, &draw_string, &text_width); in _gx_multi_line_text_input_draw() [all …]
|
| D | gx_canvas_rotated_text_draw.c | 161 GX_FONT *font; in _gx_canvas_rotated_text_draw_ext() local 173 font = context -> gx_draw_context_brush.gx_brush_font; in _gx_canvas_rotated_text_draw_ext() 175 if (!font) in _gx_canvas_rotated_text_draw_ext() 191 _gx_system_string_width_get_ext(font, text, &alphamap_width); in _gx_canvas_rotated_text_draw_ext() 193 y_pos = ycenter - (font -> gx_font_line_height / 2); in _gx_canvas_rotated_text_draw_ext() 199 if (_gx_utility_string_to_alphamap_ext(text, font, &textmap) == GX_SUCCESS) in _gx_canvas_rotated_text_draw_ext()
|
| D | gx_canvas_glyphs_draw.c | 79 static VOID _gx_canvas_kerning_glyphs_draw(GX_DRAW_CONTEXT *context, GX_FONT *font, GX_POINT *draw_… in _gx_canvas_kerning_glyphs_draw() argument 128 font_link = font; in _gx_canvas_kerning_glyphs_draw() 264 static VOID _gx_canvas_compressed_glyphs_draw(GX_DRAW_CONTEXT *context, GX_FONT *font, GX_POINT *dr… in _gx_canvas_compressed_glyphs_draw() argument 332 font_link = font; in _gx_canvas_compressed_glyphs_draw() 445 static VOID _gx_canvas_generic_glyphs_draw(GX_DRAW_CONTEXT *context, GX_FONT *font, GX_POINT *draw_… in _gx_canvas_generic_glyphs_draw() argument 511 font_link = font; in _gx_canvas_generic_glyphs_draw() 638 GX_FONT *font; in _gx_canvas_glyphs_draw() local 647 font = brush -> gx_brush_font; in _gx_canvas_glyphs_draw() 649 if (!string || !font) in _gx_canvas_glyphs_draw() 655 if (font -> gx_font_format & GX_FONT_FORMAT_COMPRESSED) in _gx_canvas_glyphs_draw() [all …]
|
| D | gx_multi_line_text_input_cursor_pos_calculate.c | 94 GX_FONT *font; in _gx_multi_line_text_input_cursor_pos_calculate() local 112 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_cursor_pos_calculate() 114 if (!font) in _gx_multi_line_text_input_cursor_pos_calculate() 119 line_height = font -> gx_font_line_height + text_input -> gx_multi_line_text_view_line_space; in _gx_multi_line_text_input_cursor_pos_calculate() 206 _gx_system_string_width_get_ext(font, &string, &space_width); in _gx_multi_line_text_input_cursor_pos_calculate() 213 _gx_system_string_width_get_ext(font, &string, &text_width); in _gx_multi_line_text_input_cursor_pos_calculate() 230 _gx_system_string_width_get_ext(font, &string, &text_width); in _gx_multi_line_text_input_cursor_pos_calculate() 256 _gx_system_string_width_get_ext(font, &string, &char_width); in _gx_multi_line_text_input_cursor_pos_calculate()
|
| D | gx_multi_line_text_input_cursor_pos_update.c | 86 GX_FONT *font; in _gx_multi_line_text_input_cursor_pos_update() local 103 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_cursor_pos_update() 105 if (!font) in _gx_multi_line_text_input_cursor_pos_update() 110 line_height = (GX_VALUE)(font -> gx_font_line_height + in _gx_multi_line_text_input_cursor_pos_update() 250 _gx_system_string_width_get_ext(font, &string, &space_width); in _gx_multi_line_text_input_cursor_pos_update() 257 _gx_system_string_width_get_ext(font, &string, &text_width); in _gx_multi_line_text_input_cursor_pos_update() 274 _gx_system_string_width_get_ext(font, &string, &text_width); in _gx_multi_line_text_input_cursor_pos_update() 290 _gx_system_string_width_get_ext(font, &string, &text_width); in _gx_multi_line_text_input_cursor_pos_update()
|
| D | gx_utility_string_to_alphamap.c | 92 UINT _gx_utility_string_to_alphamap(GX_CONST GX_CHAR *text, GX_CONST GX_FONT *font, GX_PIXELMAP *te… in _gx_utility_string_to_alphamap() argument 103 status = _gx_utility_string_to_alphamap_ext(&string, font, textmap); in _gx_utility_string_to_alphamap() 161 UINT _gx_utility_string_to_alphamap_ext(GX_CONST GX_STRING *string, GX_CONST GX_FONT *font, GX_PIXE… in _gx_utility_string_to_alphamap_ext() argument 166 GX_CONST GX_FONT *font_page = font; in _gx_utility_string_to_alphamap_ext() 177 _gx_system_string_width_get_ext(font, &string_copy, &alphamap_width); in _gx_utility_string_to_alphamap_ext() 233 alphamap_height = font -> gx_font_line_height; in _gx_utility_string_to_alphamap_ext() 242 _gx_utility_string_to_alphamap_draw(string, font, textmap); in _gx_utility_string_to_alphamap_ext() 988 VOID _gx_utility_string_to_alphamap_draw(GX_CONST GX_STRING *string, GX_CONST GX_FONT *font, GX_PIX… in _gx_utility_string_to_alphamap_draw() argument 1006 if (font -> gx_font_format & GX_FONT_FORMAT_COMPRESSED) in _gx_utility_string_to_alphamap_draw() 1016 if (font -> gx_font_format & GX_FONT_FORMAT_ROTATED_90) in _gx_utility_string_to_alphamap_draw() [all …]
|
| D | gx_rich_text_view_text_draw.c | 89 GX_FONT *font; in _gx_rich_text_view_single_line_draw() local 199 _gx_context_font_get(start_format.gx_rich_text_font_id, &font); in _gx_rich_text_view_single_line_draw() 202 _gx_system_string_width_get_ext(font, &draw_text, &text_width); in _gx_rich_text_view_single_line_draw() 225 … y = (GX_VALUE)(ypos + line_info -> gx_rich_text_line_info_baseline - font -> gx_font_baseline); in _gx_rich_text_view_single_line_draw() 313 GX_FONT *font; in _gx_rich_text_view_text_draw() local 399 _gx_widget_font_get((GX_WIDGET *)text_view, format.gx_rich_text_font_id, &font); in _gx_rich_text_view_text_draw() 401 if (!font) in _gx_rich_text_view_text_draw() 410 line_info.gx_rich_text_line_info_line_height = font -> gx_font_line_height; in _gx_rich_text_view_text_draw() 411 line_info.gx_rich_text_line_info_baseline = font -> gx_font_baseline; in _gx_rich_text_view_text_draw()
|
| D | gx_multi_line_text_view_visible_rows_compute.c | 75 GX_FONT *font; in _gx_multi_line_text_view_visible_rows_compute() local 79 _gx_widget_font_get((GX_WIDGET *)view, view -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_view_visible_rows_compute() 81 if (!font) in _gx_multi_line_text_view_visible_rows_compute() 87 line_height = font -> gx_font_line_height + view -> gx_multi_line_text_view_line_space; in _gx_multi_line_text_view_visible_rows_compute()
|
| D | gx_multi_line_text_view_text_draw.c | 125 GX_FONT *font; in _gx_multi_line_text_view_text_draw() local 134 _gx_context_font_get(text_view -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_view_text_draw() 167 font == GX_NULL) in _gx_multi_line_text_view_text_draw() 173 line_height = font -> gx_font_line_height + text_view -> gx_multi_line_text_view_line_space; in _gx_multi_line_text_view_text_draw() 210 _gx_system_string_width_get_ext(font, &line_string, &space_width); in _gx_multi_line_text_view_text_draw() 292 _gx_system_string_width_get_ext(font, &line_string, &text_width); in _gx_multi_line_text_view_text_draw() 305 _gx_system_string_width_get_ext(font, &line_string, &text_width); in _gx_multi_line_text_view_text_draw()
|
| D | gx_multi_line_text_input_down_arrow.c | 87 GX_FONT *font; in _gx_multi_line_text_input_down_arrow() local 89 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_down_arrow() 91 if (!font) in _gx_multi_line_text_input_down_arrow() 106 line_height = (GX_VALUE)(font -> gx_font_line_height + in _gx_multi_line_text_input_down_arrow()
|
| D | gx_multi_line_text_input_up_arrow.c | 90 GX_FONT *font; in _gx_multi_line_text_input_up_arrow() local 92 …_gx_widget_font_get((GX_WIDGET *)text_input, text_input -> gx_multi_line_text_view_font_id, &font); in _gx_multi_line_text_input_up_arrow() 94 if (!font) in _gx_multi_line_text_input_up_arrow() 108 line_height = (GX_VALUE)(font -> gx_font_line_height + in _gx_multi_line_text_input_up_arrow()
|
| /GUIX-v6.2.1/test/guix_test/regression_test/tests/ |
| D | validation_guix_string_to_alphamap_no_output.c | 50 GX_FONT *font = &_gx_system_font_8bpp; in control_thread_entry() local 57 status = gx_utility_string_to_alphamap(invalid_string, font, &textmap); in control_thread_entry() 60 status = gx_utility_string_to_alphamap_ext(GX_NULL, font, &textmap); in control_thread_entry() 64 status = gx_utility_string_to_alphamap_ext(&string, font, &textmap); in control_thread_entry() 72 status = gx_utility_string_to_alphamap_ext(&string, font, GX_NULL); in control_thread_entry() 76 status = gx_utility_string_to_alphamap_ext(&string, font, &textmap); in control_thread_entry() 80 status = gx_utility_string_to_alphamap_ext(&string, font, &textmap); in control_thread_entry() 85 status = gx_utility_string_to_alphamap_ext(&string, font, &textmap); in control_thread_entry() 89 status = gx_utility_string_to_alphamap_ext(&string, font, &textmap); in control_thread_entry()
|
| D | validation_guix_system_string_width_get_no_output.c | 53 GX_FONT *font = &_gx_system_font_8bpp; in control_thread_entry() local 59 status = gx_system_string_width_get(font, invalid_string, GX_MAX_STRING_LENGTH, &width); in control_thread_entry() 62 status = gx_system_string_width_get(font, invalid_string, -1, &width); in control_thread_entry() 65 status = gx_system_string_width_get(font, test_string, -1, &width); in control_thread_entry() 73 status = gx_system_string_width_get_ext(font, GX_NULL, &width); in control_thread_entry() 76 status = gx_system_string_width_get_ext(font, &string, GX_NULL); in control_thread_entry() 83 status = gx_system_string_width_get_ext(font, &string, &width); in control_thread_entry() 87 status = gx_system_string_width_get_ext(font, &string, &width); in control_thread_entry()
|
| D | validation_guix_utility_string_to_alphamap.c | 88 GX_FONT *font; in control_thread_entry() local 97 gx_widget_font_get(&rotate_screen, GX_FONT_ID_SELECTED_FONT, &font); in control_thread_entry() 113 font_page[1].gx_font_next_page = font; in control_thread_entry() 115 font = &font_page[0]; in control_thread_entry() 133 font->gx_font_format = GX_FONT_FORMAT_2BPP; in control_thread_entry() 139 font->gx_font_line_height = 0; in control_thread_entry() 144 if(gx_utility_string_to_alphamap((char *)string, font, &alphamap) == GX_SUCCESS) in control_thread_entry()
|
| D | validation_guix_widget_font_get_no_output.c | 48 GX_FONT *font = GX_NULL; in control_thread_entry() local 57 gx_widget_font_get(root, display -> gx_display_font_table_size + 1, &font); in control_thread_entry() 58 if(font != GX_NULL) in control_thread_entry() 63 gx_widget_font_get(root, GX_FONT_ID_NORMAL_FONT, &font); in control_thread_entry() 64 if(font != display -> gx_display_font_table[GX_FONT_ID_NORMAL_FONT]) in control_thread_entry()
|
| D | validation_guix_all_widgets_gx_system_string_width_get_no_output.c | 46 GX_FONT *font = GX_NULL; in control_thread_entry() local 50 gx_widget_font_get(root, GX_FONT_ID_NORMAL_FONT, &font); in control_thread_entry() 51 if(font == GX_NULL) in control_thread_entry() 58 status = gx_system_string_width_get(font, "string", GX_STRLEN("string") + 1, &width); in control_thread_entry() 62 status = gx_system_string_width_get(font, "string", GX_STRLEN("string"), &width); in control_thread_entry()
|
| D | validation_guix_ml_text_view_font_16bpp.c | 65 ID_NAME_MAP font[] ={ variable 76 for(font_index = 0; font_index < sizeof(font)/sizeof(ID_NAME_MAP); font_index ++) in control_thread_entry() 82 gx_validation_set_frame_comment(font[font_index].font_name); in control_thread_entry() 85 … gx_multi_line_text_view_font_set(&pMainWin -> main_window_text_view, font[font_index].font_id); in control_thread_entry()
|
| /GUIX-v6.2.1/test/example_internal/ml_text_view_8bpp/ |
| D | demo_guix_ml_text_view_8bpp.c | 16 GX_RESOURCE_ID font[3][2] = {{GX_FONT_ID_TEXT_INPUT_1BPP_18PIX, GX_FONT_ID_TEXT_INPUT_1BPP_24PIX}, variable 101 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 105 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 109 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 113 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 117 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler()
|
| /GUIX-v6.2.1/test/example_internal/ml_text_view_32bpp/ |
| D | demo_guix_ml_text_view_32bpp.c | 17 GX_RESOURCE_ID font[3][2] = {{GX_FONT_ID_TEXT_INPUT_1BPP_18PIX, GX_FONT_ID_TEXT_INPUT_1BPP_24PIX}, variable 92 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 96 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 100 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 104 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler() 108 gx_multi_line_text_view_font_set(ml_view, font[font_depth][font_size]); in main_event_handler()
|