Project Chrono: chrono::opengl::ChOpenGLEventCB Class Reference

Public Member Functions | List of all members
chrono::opengl::ChOpenGLEventCB Class Referenceabstract

## Description

Interface of an object which can receive events.

`#include <ChVisualSystemOpenGL.h>`

## Public Member Functions
virtual bool | CallbackKeyboard (GLFWwindow *window, int key, int scancode, int action, int mode)=0
| GLFW callback to handle keyboard events.
virtual bool | CallbackMouseButton (GLFWwindow *window, int button, int action, int mods)=0
| GLFW callback to handle mouse button events.
virtual bool | CallbackMousePos (GLFWwindow *window, double x, double y)=0
| GLFW callback to handle events generated by changes in mouse position.

## Member Function Documentation

## ◆ CallbackKeyboard()

virtual bool chrono::opengl::ChOpenGLEventCB::CallbackKeyboard | ( | GLFWwindow * | window,
|  | int | key,
|  | int | scancode,
|  | int | action,
|  | int | mode )
| pure virtual

GLFW callback to handle keyboard events.

Return 'true' if the event is completely done and no further processing is to occur.

## ◆ CallbackMouseButton()

virtual bool chrono::opengl::ChOpenGLEventCB::CallbackMouseButton | ( | GLFWwindow * | window,
|  | int | button,
|  | int | action,
|  | int | mods )
| pure virtual

GLFW callback to handle mouse button events.

Return 'true' if the event is completely done and no further processing is to occur.

## ◆ CallbackMousePos()

virtual bool chrono::opengl::ChOpenGLEventCB::CallbackMousePos | ( | GLFWwindow * | window,
|  | double | x,
|  | double | y )
| pure virtual

GLFW callback to handle events generated by changes in mouse position.

Return 'true' if the event is completely done and no further processing is to occur.

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

- D:/W/B/src/chrono-9.0.1/src/chrono_opengl/ChVisualSystemOpenGL.h