DISTRHO Plugin Framework
Public Member Functions | Public Attributes | List of all members
Widget::MouseEvent Struct Reference

#include <Widget.hpp>

Inheritance diagram for Widget::MouseEvent:
Widget::BaseEvent

Public Member Functions

 MouseEvent () noexcept
 
- Public Member Functions inherited from Widget::BaseEvent
 BaseEvent () noexcept
 
virtual ~BaseEvent () noexcept
 

Public Attributes

uint button
 
bool press
 
Point< double > pos
 
Point< double > absolutePos
 
- Public Attributes inherited from Widget::BaseEvent
uint mod
 
uint flags
 
uint time
 

Detailed Description

Mouse press or release event.

See also
onMouse

Constructor & Destructor Documentation

◆ MouseEvent()

Widget::MouseEvent::MouseEvent ( )
inlinenoexcept

Constructor for default/null values

Member Data Documentation

◆ button

uint Widget::MouseEvent::button

The button number starting from 1.

See also
MouseButton

◆ press

bool Widget::MouseEvent::press

True if the button was pressed, false if released.

◆ pos

Point<double> Widget::MouseEvent::pos

The widget-relative coordinates of the pointer.

◆ absolutePos

Point<double> Widget::MouseEvent::absolutePos

The absolute coordinates of the pointer.


The documentation for this struct was generated from the following file: