MRPT  2.0.4
NanoGUICanvasHeadless.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <mrpt/gui/CGlCanvasBase.h>
12 
13 // Expose nanogui API to mrpt users, for direct use of nanogui classes.
14 #include <mrpt/config.h>
15 #if MRPT_HAS_NANOGUI
16 #include <nanogui/nanogui.h>
17 
19 {
20 /** Specialization of CGlCanvasBaseHeadless for nanogui events.
21  * Used to keep track of mouse events and update camera parameters.
22  * \sa CDisplayWindowGUI
23  * \ingroup mrpt_gui_grp
24  */
26 {
27  public:
28  void mouseMotionEvent(
29  const nanogui::Vector2i& p, const nanogui::Vector2i& rel, int button,
30  int modifiers);
31  void mouseButtonEvent(
32  const nanogui::Vector2i& p, int button, bool down, int modifiers);
33  void scrollEvent(const nanogui::Vector2i& p, const nanogui::Vector2f& rel);
34 };
35 } // namespace mrpt::gui::internal
36 #endif // MRPT_HAS_NANOGUI
void scrollEvent(const nanogui::Vector2i &p, const nanogui::Vector2f &rel)
void mouseButtonEvent(const nanogui::Vector2i &p, int button, bool down, int modifiers)
Specialization of CGlCanvasBaseHeadless for nanogui events.
A headless dummy implementation of CGlCanvasBase: can be used to keep track of user UI mouse events a...
void mouseMotionEvent(const nanogui::Vector2i &p, const nanogui::Vector2i &rel, int button, int modifiers)



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020