docs
Docs
C++ API
C API
Search API
Ctrl K
1.4
2.0
latest
1.4
Ultralight C API
1.4.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CAPI_ScrollEvent.h
Go to the documentation of this file.
1
/**************************************************************************************************
2
* This file is a part of Ultralight. *
3
* *
4
* See <https://ultralig.ht> for licensing and more. *
5
* *
6
* (C) 2024 Ultralight, Inc. *
7
**************************************************************************************************/
8
9
///
10
/// @file CAPI_ScrollEvent.h
11
///
12
/// Scroll event interface.
13
///
14
/// `#include <Ultralight/CAPI/CAPI_ScrollEvent.h>`
15
///
16
/// This file defines the C API for scroll events.
17
///
18
#ifndef ULTRALIGHT_CAPI_SCROLLEVENT_H
19
#define ULTRALIGHT_CAPI_SCROLLEVENT_H
20
21
#include <
Ultralight/CAPI/CAPI_Defines.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/******************************************************************************
28
* Scroll Event
29
*****************************************************************************/
30
31
///
32
/// Create a scroll event, see ScrollEvent in the C++ API for help using this function.
33
///
34
ULExport
ULScrollEvent
ulCreateScrollEvent
(
ULScrollEventType
type,
int
delta_x,
int
delta_y);
35
36
///
37
/// Destroy a scroll event.
38
///
39
ULExport
void
ulDestroyScrollEvent
(
ULScrollEvent
evt);
40
41
#ifdef __cplusplus
42
}
// extern "C"
43
#endif
44
45
#endif
// ULTRALIGHT_CAPI_SCROLLEVENT_H
CAPI_Defines.h
Various defines and utility functions for the C API.
ULScrollEventType
ULScrollEventType
Definition
CAPI_Defines.h:213
ULExport
#define ULExport
Definition
CAPI_Defines.h:38
ULScrollEvent
struct C_ScrollEvent * ULScrollEvent
Definition
CAPI_Defines.h:69
ulCreateScrollEvent
ULScrollEvent ulCreateScrollEvent(ULScrollEventType type, int delta_x, int delta_y)
Create a scroll event, see ScrollEvent in the C++ API for help using this function.
ulDestroyScrollEvent
void ulDestroyScrollEvent(ULScrollEvent evt)
Destroy a scroll event.
Ultralight
CAPI
CAPI_ScrollEvent.h
Docs
C++ API
C API
Version
1.4
2.0
latest
1.4