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
22
23#ifdef __cplusplus
24extern "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///
35
36///
37/// Destroy a mouse event.
38///
40
41#ifdef __cplusplus
42} // extern "C"
43#endif
44
45#endif // ULTRALIGHT_CAPI_MOUSEEVENT_H
Various defines and utility functions for the C API.
#define ULExport
Definition CAPI_Defines.h:38
ULMouseEventType
Definition CAPI_Defines.h:200
ULMouseButton
Definition CAPI_Defines.h:206
struct C_MouseEvent * ULMouseEvent
Definition CAPI_Defines.h:68
ULExport 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.
ULExport void ulDestroyMouseEvent(ULMouseEvent evt)
Destroy a mouse event.