GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gx_pixelmap_prompt_draw.c Lines: 5 5 100.0 %
Date: 2026-03-06 19:21:09 Branches: 0 0 - %

Line Branch Exec Source
1
/***************************************************************************
2
 * Copyright (c) 2024 Microsoft Corporation
3
 * Copyright (c) 2026-present Eclipse ThreadX contributors
4
 *
5
 * This program and the accompanying materials are made available under the
6
 * terms of the MIT License which is available at
7
 * https://opensource.org/licenses/MIT.
8
 *
9
 * SPDX-License-Identifier: MIT
10
 **************************************************************************/
11
12
13
/**************************************************************************/
14
/**************************************************************************/
15
/**                                                                       */
16
/** GUIX Component                                                        */
17
/**                                                                       */
18
/**   Prompt Management (Prompt)                                          */
19
/**                                                                       */
20
/**************************************************************************/
21
22
#define GX_SOURCE_CODE
23
24
25
/* Include necessary system files.  */
26
27
#include "gx_api.h"
28
#include "gx_system.h"
29
#include "gx_canvas.h"
30
#include "gx_context.h"
31
#include "gx_widget.h"
32
#include "gx_prompt.h"
33
#include "gx_pixelmap_prompt.h"
34
35
36
/**************************************************************************/
37
/*                                                                        */
38
/*  FUNCTION                                               RELEASE        */
39
/*                                                                        */
40
/*    _gx_pixelmap_prompt_draw                            PORTABLE C      */
41
/*                                                           6.1          */
42
/*  AUTHOR                                                                */
43
/*                                                                        */
44
/*    Kenneth Maxwell, Microsoft Corporation                              */
45
/*                                                                        */
46
/*  DESCRIPTION                                                           */
47
/*                                                                        */
48
/*    This function draws the specified pixelmap prompt, which is a       */
49
/*      special type of widget.                                           */
50
/*                                                                        */
51
/*  INPUT                                                                 */
52
/*                                                                        */
53
/*    widget                                Widget control block          */
54
/*                                                                        */
55
/*  OUTPUT                                                                */
56
/*                                                                        */
57
/*    None                                                                */
58
/*                                                                        */
59
/*  CALLS                                                                 */
60
/*                                                                        */
61
/*    _gx_widget_children_draw              Draw children widgets         */
62
/*    _gx_prompt_text_draw                  Draw prompt text              */
63
/*    _gx_context_pixelmap_get              Retrieve pixelmap image       */
64
/*    _gx_canvas_pixelmap_draw              Draw a pixelmap               */
65
/*    _gx_canvas_pixelmap_tile              Tile a pixelmap               */
66
/*    _gx_prompt_text_draw                  Draw a text prompt            */
67
/*                                                                        */
68
/*  CALLED BY                                                             */
69
/*                                                                        */
70
/*    Application Code                                                    */
71
/*    GUIX Internal Code                                                  */
72
/*                                                                        */
73
/**************************************************************************/
74
15109
VOID  _gx_pixelmap_prompt_draw(GX_PIXELMAP_PROMPT *prompt)
75
{
76
    /* Draw pixelmap prompt's background. */
77
15109
    _gx_pixelmap_prompt_background_draw(prompt);
78
79
    /* Draw the text */
80
15109
    _gx_prompt_text_draw((GX_PROMPT *)prompt);
81
82
    /* Draw children widgets of prompt widget.  */
83
15109
    _gx_widget_children_draw((GX_WIDGET *)prompt);
84
15109
}
85