Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
PointerEvent Class Reference

Records a pointer movement event. More...

#include "pointerEvent.h"

Public Member Functions

bool operator!= (const PointerEvent &other) const
 
bool operator< (const PointerEvent &other) const
 
bool operator== (const PointerEvent &other) const
 The equality operator does not consider time significant.
 
void output (std::ostream &out) const
 
void read_datagram (DatagramIterator &scan)
 Restores the event from the datagram.
 
void write_datagram (Datagram &dg) const
 Writes the event into a datagram.
 

Public Attributes

double _direction = 0.0
 
double _dx = 0.0
 
double _dy = 0.0
 
int _id = 0
 
bool _in_window = false
 
double _length = 0.0
 
double _pressure = 0.0
 
double _rotation = 0.0
 
int _sequence = 0
 
double _time = 0.0
 
PointerType _type = PointerType::unknown
 
double _xpos = 0.0
 
double _ypos = 0.0
 

Detailed Description

Records a pointer movement event.

Definition at line 26 of file pointerEvent.h.

Member Function Documentation

◆ operator!=()

bool PointerEvent::operator!= ( const PointerEvent & other) const
inline

Definition at line 33 of file pointerEvent.I.

◆ operator<()

bool PointerEvent::operator< ( const PointerEvent & other) const
inline

Definition at line 41 of file pointerEvent.I.

◆ operator==()

bool PointerEvent::operator== ( const PointerEvent & other) const
inline

The equality operator does not consider time significant.

Definition at line 17 of file pointerEvent.I.

◆ output()

void PointerEvent::output ( std::ostream & out) const

Definition at line 21 of file pointerEvent.cxx.

◆ read_datagram()

void PointerEvent::read_datagram ( DatagramIterator & scan)

Restores the event from the datagram.

Definition at line 38 of file pointerEvent.cxx.

◆ write_datagram()

void PointerEvent::write_datagram ( Datagram & dg) const

Writes the event into a datagram.

Definition at line 30 of file pointerEvent.cxx.

Member Data Documentation

◆ _direction

double PointerEvent::_direction = 0.0

Definition at line 48 of file pointerEvent.h.

◆ _dx

double PointerEvent::_dx = 0.0

Definition at line 45 of file pointerEvent.h.

◆ _dy

double PointerEvent::_dy = 0.0

Definition at line 46 of file pointerEvent.h.

◆ _id

int PointerEvent::_id = 0

Definition at line 41 of file pointerEvent.h.

◆ _in_window

bool PointerEvent::_in_window = false

Definition at line 40 of file pointerEvent.h.

◆ _length

double PointerEvent::_length = 0.0

Definition at line 47 of file pointerEvent.h.

◆ _pressure

double PointerEvent::_pressure = 0.0

Definition at line 49 of file pointerEvent.h.

◆ _rotation

double PointerEvent::_rotation = 0.0

Definition at line 50 of file pointerEvent.h.

◆ _sequence

int PointerEvent::_sequence = 0

Definition at line 51 of file pointerEvent.h.

◆ _time

double PointerEvent::_time = 0.0

Definition at line 52 of file pointerEvent.h.

◆ _type

PointerType PointerEvent::_type = PointerType::unknown

Definition at line 42 of file pointerEvent.h.

◆ _xpos

double PointerEvent::_xpos = 0.0

Definition at line 43 of file pointerEvent.h.

◆ _ypos

double PointerEvent::_ypos = 0.0

Definition at line 44 of file pointerEvent.h.


The documentation for this class was generated from the following files: