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 |
|
|
/** Text Scroll Wheel Management (Scroll Wheel) */ |
18 |
|
|
/** */ |
19 |
|
|
/**************************************************************************/ |
20 |
|
|
|
21 |
|
|
#define GX_SOURCE_CODE |
22 |
|
|
|
23 |
|
|
|
24 |
|
|
/* Include necessary system files. */ |
25 |
|
|
|
26 |
|
|
#include "gx_api.h" |
27 |
|
|
#include "gx_scroll_wheel.h" |
28 |
|
|
|
29 |
|
|
/**************************************************************************/ |
30 |
|
|
/* */ |
31 |
|
|
/* FUNCTION RELEASE */ |
32 |
|
|
/* */ |
33 |
|
|
/* _gx_text_scroll_wheel_event_process PORTABLE C */ |
34 |
|
|
/* 6.1 */ |
35 |
|
|
/* AUTHOR */ |
36 |
|
|
/* */ |
37 |
|
|
/* Kenneth Maxwell, Microsoft Corporation */ |
38 |
|
|
/* */ |
39 |
|
|
/* DESCRIPTION */ |
40 |
|
|
/* */ |
41 |
|
|
/* This function processes the comming events for a scroll wheel */ |
42 |
|
|
/* widget. */ |
43 |
|
|
/* */ |
44 |
|
|
/* INPUT */ |
45 |
|
|
/* */ |
46 |
|
|
/* wheel Text scroll wheel control */ |
47 |
|
|
/* block */ |
48 |
|
|
/* event_ptr Event to be processed */ |
49 |
|
|
/* */ |
50 |
|
|
/* OUTPUT */ |
51 |
|
|
/* */ |
52 |
|
|
/* status Completion status */ |
53 |
|
|
/* */ |
54 |
|
|
/* CALLS */ |
55 |
|
|
/* */ |
56 |
|
|
/* _gx_text_scroll_wheel_dynamic_bidi_text_delete */ |
57 |
|
|
/* Release dynamic bidi text */ |
58 |
|
|
/* _gx_scroll_wheel_event_process Default event process */ |
59 |
|
|
/* CALLED BY */ |
60 |
|
|
/* */ |
61 |
|
|
/* Application Code */ |
62 |
|
|
/* GUIX Internal Code */ |
63 |
|
|
/* */ |
64 |
|
|
/* RELEASE HISTORY */ |
65 |
|
|
/* */ |
66 |
|
|
/* DATE NAME DESCRIPTION */ |
67 |
|
|
/* */ |
68 |
|
|
/* 09-30-2020 Kenneth Maxwell Initial Version 6.1 */ |
69 |
|
|
/* */ |
70 |
|
|
/**************************************************************************/ |
71 |
|
843 |
UINT _gx_text_scroll_wheel_event_process(GX_TEXT_SCROLL_WHEEL *wheel, GX_EVENT *event_ptr) |
72 |
|
|
{ |
73 |
|
843 |
switch (event_ptr -> gx_event_type) |
74 |
|
|
{ |
75 |
|
|
#if defined(GX_DYNAMIC_BIDI_TEXT_SUPPORT) |
76 |
|
|
case GX_EVENT_DELETE: |
77 |
|
|
_gx_text_scroll_wheel_dynamic_bidi_text_delete(wheel); |
78 |
|
|
return _gx_scroll_wheel_event_process((GX_SCROLL_WHEEL*)wheel, event_ptr); |
79 |
|
|
#endif |
80 |
|
|
|
81 |
|
|
default: |
82 |
|
843 |
return _gx_scroll_wheel_event_process((GX_SCROLL_WHEEL *)wheel, event_ptr); |
83 |
|
|
} |
84 |
|
|
} |
85 |
|
|
|