1 /***************************************************************************
2 * Copyright (c) 2024 Microsoft Corporation
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the MIT License which is available at
6 * https://opensource.org/licenses/MIT.
7 *
8 * SPDX-License-Identifier: MIT
9 **************************************************************************/
10
11
12 /**************************************************************************/
13 /**************************************************************************/
14 /** */
15 /** GUIX Component */
16 /** */
17 /** Rich Text View Management (Rich Text View) */
18 /** */
19 /**************************************************************************/
20
21 #define GX_SOURCE_CODE
22
23
24 /* Include necessary system files. */
25
26 #include "gx_api.h"
27 #include "gx_rich_text_view.h"
28 #include "gx_window.h"
29 #include "gx_widget.h"
30
31 /**************************************************************************/
32 /* */
33 /* FUNCTION RELEASE */
34 /* */
35 /* _gx_rich_text_view_text_draw PORTABLE C */
36 /* 6.1 */
37 /* AUTHOR */
38 /* */
39 /* Kenneth Maxwell, Microsoft Corporation */
40 /* */
41 /* DESCRIPTION */
42 /* */
43 /* This function draws text for a rich text view widget. */
44 /* */
45 /* INPUT */
46 /* */
47 /* text_view Rich text view control block */
48 /* */
49 /* OUTPUT */
50 /* */
51 /* None */
52 /* */
53 /* CALLS */
54 /* */
55 /* _gx_window_background_draw Draw window background */
56 /* _gx_rich_text_view_text_draw Draw rich text */
57 /* _gx_widget_children_draw Draw children */
58 /* */
59 /* CALLED BY */
60 /* */
61 /* GUIX Internal Code */
62 /* Application Code */
63 /* */
64 /* RELEASE HISTORY */
65 /* */
66 /* DATE NAME DESCRIPTION */
67 /* */
68 /* 09-30-2020 Kenneth Maxwell Initial Version 6.1 */
69 /* */
70 /**************************************************************************/
_gx_rich_text_view_draw(GX_RICH_TEXT_VIEW * text_view)71 VOID _gx_rich_text_view_draw(GX_RICH_TEXT_VIEW *text_view)
72 {
73 /* Draw window background. */
74 _gx_window_background_draw((GX_WINDOW *)text_view);
75
76 /* Draw text. */
77 _gx_rich_text_view_text_draw(text_view);
78
79 /* Draw widget's children. */
80 _gx_widget_children_draw((GX_WIDGET *)text_view);
81 }
82
83