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 /** Canvas Management (Canvas) */
18 /** */
19 /**************************************************************************/
20
21 #define GX_SOURCE_CODE
22
23 /* Include necessary system files. */
24
25 #include "gx_api.h"
26 #include "gx_canvas.h"
27
28 /**************************************************************************/
29 /* */
30 /* FUNCTION RELEASE */
31 /* */
32 /* _gx_canvas_mouse_define PORTABLE C */
33 /* 6.1 */
34 /* AUTHOR */
35 /* */
36 /* Kenneth Maxwell, Microsoft Corporation */
37 /* */
38 /* DESCRIPTION */
39 /* */
40 /* This service defines mouse information for current display. */
41 /* */
42 /* INPUT */
43 /* */
44 /* canvas Canvas control block */
45 /* info Mouse cursor info control */
46 /* block */
47 /* */
48 /* */
49 /* OUTPUT */
50 /* */
51 /* status Completion status */
52 /* */
53 /* CALLS */
54 /* */
55 /* [gx_display_mouse_define] Define mouse info for driver */
56 /* */
57 /* CALLED BY */
58 /* */
59 /* Application code */
60 /* */
61 /* RELEASE HISTORY */
62 /* */
63 /* DATE NAME DESCRIPTION */
64 /* */
65 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
66 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */
67 /* resulting in version 6.1 */
68 /* */
69 /**************************************************************************/
70 #if defined(GX_MOUSE_SUPPORT)
_gx_canvas_mouse_define(GX_CANVAS * canvas,GX_MOUSE_CURSOR_INFO * info)71 UINT _gx_canvas_mouse_define(GX_CANVAS *canvas, GX_MOUSE_CURSOR_INFO *info)
72 {
73 GX_DISPLAY *display = canvas -> gx_canvas_display;
74
75 if (info != GX_NULL)
76 {
77 display -> gx_display_mouse_define(display, canvas, info);
78 return GX_SUCCESS;
79 }
80
81 return GX_FAILURE;
82 }
83 #endif
84
85