45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
/**************************************************************************************************
|
|
* This file is a part of Ultralight, an ultra-portable web-browser engine. *
|
|
* *
|
|
* See <https://ultralig.ht> for licensing and more. *
|
|
* *
|
|
* (C) 2024 Ultralight, Inc. *
|
|
**************************************************************************************************/
|
|
|
|
///
|
|
/// @file CAPI_MouseEvent.h
|
|
///
|
|
/// Mouse event interface.
|
|
///
|
|
/// `#include <Ultralight/CAPI/CAPI_MouseEvent.h>`
|
|
///
|
|
/// This file defines the C API for mouse events.
|
|
///
|
|
#ifndef ULTRALIGHT_CAPI_MOUSEEVENT_H
|
|
#define ULTRALIGHT_CAPI_MOUSEEVENT_H
|
|
|
|
#include <Ultralight/CAPI/CAPI_Defines.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/******************************************************************************
|
|
* Mouse Event
|
|
*****************************************************************************/
|
|
|
|
///
|
|
/// Create a mouse event, see MouseEvent in the C++ API for help using this function.
|
|
///
|
|
ULExport ULMouseEvent ulCreateMouseEvent(ULMouseEventType type, int x, int y, ULMouseButton button);
|
|
|
|
///
|
|
/// Destroy a mouse event.
|
|
///
|
|
ULExport void ulDestroyMouseEvent(ULMouseEvent evt);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // ULTRALIGHT_CAPI_MOUSEEVENT_H
|