19 #ifndef vtkWaylandRenderWindowInteractor_h
20 #define vtkWaylandRenderWindowInteractor_h
23 #include "vtkRenderingUIModule.h"
34 struct wl_data_device_manager;
35 struct wl_data_device;
41 VTK_ABI_NAMESPACE_BEGIN
43 class vtkWaylandRenderWindowInteractorInternals;
80 struct wl_seat* Seat =
nullptr;
81 struct wl_pointer* Pointer =
nullptr;
82 struct wl_keyboard* Keyboard =
nullptr;
83 uint32_t PointerSerial = 0;
84 uint32_t KeyboardSerial = 0;
87 struct xkb_context* XkbContext =
nullptr;
88 struct xkb_keymap* XkbKeymap =
nullptr;
89 struct xkb_state* XkbState =
nullptr;
96 struct wl_display* DisplayId =
nullptr;
97 struct wl_surface* WindowId =
nullptr;
98 struct wl_registry* Registry =
nullptr;
101 struct wl_data_device_manager* DataDeviceManager =
nullptr;
102 struct wl_data_device* DataDevice =
nullptr;
103 struct wl_data_offer* DndDataOffer =
nullptr;
106 vtkWaylandRenderWindowInteractorInternals*
Internal;
126 void WaitForEvents();
139 friend class vtkWaylandRenderWindowInteractorInternals;
146 VTK_ABI_NAMESPACE_END
virtual void Enable()
Enable/Disable interactions.
virtual int InternalDestroyTimer(int platformTimerId)
Internal methods for creating and destroying timers that must be implemented by subclasses.
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Internal methods for creating and destroying timers that must be implemented by subclasses.
virtual void Render()
Render the scene.
vtkWaylandRenderWindowInteractorInternals * Internal
virtual void Initialize()
Prepare for handling events and set the Enabled flag to true.
static vtkRenderWindowInteractor * New()
platform-independent render window interaction including picking and frame rate control.
a simple class to control print indentation
virtual void StartEventLoop()
Run the event loop (does not return until TerminateApp is called).
virtual void ProcessEvents()
Process all user-interaction, timer events and return.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void TerminateApp()
This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden b...
a Wayland event-driven interface for a RenderWindow