ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::visualization::gui::MouseEvent Struct Reference

#include <Events.h>

Public Types

enum  Type {
  MOVE, BUTTON_DOWN, DRAG, BUTTON_UP,
  WHEEL
}
 

Public Member Functions

bool FromJson (const Json::Value &value)
 
std::string ToString () const
 

Static Public Member Functions

static MouseEvent MakeMoveEvent (const Type type, const int x, const int y, const int modifiers, const int buttons)
 
static MouseEvent MakeButtonEvent (const Type type, const int x, const int y, const int modifiers, const MouseButton button, const int count)
 
static MouseEvent MakeWheelEvent (const Type type, const int x, const int y, const int modifiers, const float dx, const float dy, const bool isTrackpad)
 

Public Attributes

Type type
 
int x
 
int y
 
int modifiers
 
union {
   struct {
      int   buttons
 
   }   move
 
   struct {
      MouseButton   button
 
      int   count
 
   }   button
 
   struct {
      float   dx
 
      float   dy
 
      bool   isTrackpad
 
   }   wheel
 
}; 
 

Member Enumeration Documentation

◆ Type

Enumerator
MOVE 
BUTTON_DOWN 
DRAG 
BUTTON_UP 
WHEEL 

Member Function Documentation

◆ FromJson()

◆ MakeButtonEvent()

MouseEvent cloudViewer::visualization::gui::MouseEvent::MakeButtonEvent ( const Type  type,
const int  x,
const int  y,
const int  modifiers,
const MouseButton  button,
const int  count 
)
static

References button, count, modifiers, type, x, and y.

◆ MakeMoveEvent()

MouseEvent cloudViewer::visualization::gui::MouseEvent::MakeMoveEvent ( const Type  type,
const int  x,
const int  y,
const int  modifiers,
const int  buttons 
)
static

References buttons, modifiers, move, type, x, and y.

◆ MakeWheelEvent()

MouseEvent cloudViewer::visualization::gui::MouseEvent::MakeWheelEvent ( const Type  type,
const int  x,
const int  y,
const int  modifiers,
const float  dx,
const float  dy,
const bool  isTrackpad 
)
static

References dx, dy, isTrackpad, modifiers, type, wheel, x, and y.

◆ ToString()

Member Data Documentation

◆ @19

union { ... }

◆ button [1/2]

MouseButton cloudViewer::visualization::gui::MouseEvent::button

Referenced by FromJson(), MakeButtonEvent(), and ToString().

◆ button [2/2]

struct { ... } cloudViewer::visualization::gui::MouseEvent::button

◆ buttons

int cloudViewer::visualization::gui::MouseEvent::buttons

Referenced by MakeMoveEvent().

◆ count

int cloudViewer::visualization::gui::MouseEvent::count

Referenced by MakeButtonEvent().

◆ dx

float cloudViewer::visualization::gui::MouseEvent::dx

Referenced by MakeWheelEvent().

◆ dy

float cloudViewer::visualization::gui::MouseEvent::dy

Referenced by MakeWheelEvent().

◆ isTrackpad

bool cloudViewer::visualization::gui::MouseEvent::isTrackpad

Referenced by MakeWheelEvent().

◆ modifiers

int cloudViewer::visualization::gui::MouseEvent::modifiers

◆ move

struct { ... } cloudViewer::visualization::gui::MouseEvent::move

Referenced by FromJson(), MakeMoveEvent(), and ToString().

◆ type

Type cloudViewer::visualization::gui::MouseEvent::type

◆ wheel

struct { ... } cloudViewer::visualization::gui::MouseEvent::wheel

Referenced by FromJson(), MakeWheelEvent(), and ToString().

◆ x

int cloudViewer::visualization::gui::MouseEvent::x

◆ y

int cloudViewer::visualization::gui::MouseEvent::y

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