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_MouseEvent.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_MouseEvent.h
11
///
12
/// Mouse event interface.
13
///
14
/// `#include <Ultralight/CAPI/CAPI_MouseEvent.h>`
15
///
16
/// This file defines the C API for mouse events.
17
///
18
#ifndef ULTRALIGHT_CAPI_MOUSEEVENT_H
19
#define ULTRALIGHT_CAPI_MOUSEEVENT_H
20
21
#include <
Ultralight/CAPI/CAPI_Defines.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/******************************************************************************
28
* Mouse Event
29
*****************************************************************************/
30
31
///
32
/// Create a mouse event, see MouseEvent in the C++ API for help using this function.
33
///
34
ULExport
ULMouseEvent
ulCreateMouseEvent
(
ULMouseEventType
type,
int
x,
int
y,
ULMouseButton
button);
35
36
///
37
/// Destroy a mouse event.
38
///
39
ULExport
void
ulDestroyMouseEvent
(
ULMouseEvent
evt);
40
41
#ifdef __cplusplus
42
}
// extern "C"
43
#endif
44
45
#endif
// ULTRALIGHT_CAPI_MOUSEEVENT_H
CAPI_Defines.h
Various defines and utility functions for the C API.
ULExport
#define ULExport
Definition
CAPI_Defines.h:38
ULMouseEventType
ULMouseEventType
Definition
CAPI_Defines.h:200
ULMouseButton
ULMouseButton
Definition
CAPI_Defines.h:206
ULMouseEvent
struct C_MouseEvent * ULMouseEvent
Definition
CAPI_Defines.h:68
ulCreateMouseEvent
ULMouseEvent ulCreateMouseEvent(ULMouseEventType type, int x, int y, ULMouseButton button)
Create a mouse event, see MouseEvent in the C++ API for help using this function.
ulDestroyMouseEvent
void ulDestroyMouseEvent(ULMouseEvent evt)
Destroy a mouse event.
Ultralight
CAPI
CAPI_MouseEvent.h
Docs
C++ API
C API
Version
1.4
2.0
latest
1.4