Loading [MathJax]/extensions/tex2jax.js
Free Electron
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fe_window.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __pyfe_fe_window_h__
8 #define __pyfe_fe_window_h__
9 
10 class WindowFS : public FunctionSet<fe::WindowI>
11 {
12  public:
13  WindowFS(PyObject *pP) : FunctionSet<fe::WindowI>(pP) {};
14  bool open(const std::string &title);
15  void close(void);
16  void setSize(unsigned int x, unsigned int y);
17  void makeCurrent(void);
18  void clear(float r, float g, float b, float a);
19  void swapBuffers(void);
20  PyObject *getEventContextI(void);
21 };
22 
23 class ViewerFS : public FunctionSet<fe::ViewerI>
24 {
25  public:
26  ViewerFS(PyObject *pP) : FunctionSet<fe::ViewerI>(pP) {};
27  void bind(PyObject *pyObject);
28 };
29 
30 class EventMapFS : public FunctionSet<fe::EventMapI>
31 {
32  public:
33  EventMapFS(PyObject *pP) : FunctionSet<fe::EventMapI>(pP){};
34  void bind(PyObject *pyObjectRecord, const LayoutPtr &layoutPtr);
35 };
36 
37 class QuickViewerFS : public FunctionSet<fe::QuickViewerI>
38 {
39  public:
40  QuickViewerFS(PyObject *pP)
41  : FunctionSet<fe::QuickViewerI>(pP) {};
42  void insertDrawHandler(HandlerFS &handlerPtr);
43  void run(unsigned int frames);
44 };
45 
46 
47 #endif /* __pyfe_fe_window_h__ */
48 
kernel
Definition: namespace.dox:3
HandlerI Function Set.
Definition: fe_signal.h:37