#include <fl_dt_window.h>
Public Member Functions | |
| Fl_DT_Window () | |
| Default constructor. | |
| Fl_DT_Window (int w, int h, const char *label=0L) | |
| Constructor. | |
| Fl_DT_Window (int x, int y, int w, int h, const char *label=0L) | |
| Constructors. | |
| virtual | ~Fl_DT_Window () |
| Destructor. | |
| int | EventButtonToMouseButton (int eventButton) |
| virtual int | handle (int event) |
| Fl_Window override to handle event's from FLTK. | |
| virtual void | resize (int x, int y, int w, int h) |
| Fl_Window override to update a window resize event. | |
| virtual void | show (void) |
| Fl_Window::show() override to configure the widget and prepare it for visibility on the screen. | |
| virtual void | SetEvent (Fl_Event ev, bool set=true) |
| Set/unset which events get handled. | |
Protected Member Functions | |
| virtual void | OnMessage (dtCore::Base::MessageData *data) |
| Base::OnMessage override to receive messages. | |
| virtual void | idle_callback (void) |
| Callback, repeatedly called when FLTK is idle. | |
| virtual void | TranslateMouseEvent (dtABC::MouseEvent &ev) |
| Translate the mouse event from FLTK data to dtABC data. | |
| virtual void | TranslateKeyboardEvent (dtABC::KeyboardEvent &ev) |
| Translate the mouse event from FLTK data to dtCore data. | |
| void | ctor (void) |
| Inline unified constructor. | |
Static Protected Member Functions | |
| static void | idle_callback (void *data) |
| Static callback, repeatedly called when FLTK is idle. | |
| Fl_DT_Window< T >::Fl_DT_Window | ( | ) | [inline] |
Default constructor.
| Fl_DT_Window< T >::Fl_DT_Window | ( | int | w, | |
| int | h, | |||
| const char * | label = 0L | |||
| ) | [inline] |
Constructor.
| w | window width (right) | |
| h | window height (bottom) | |
| label | window's label |
| Fl_DT_Window< T >::Fl_DT_Window | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const char * | label = 0L | |||
| ) | [inline] |
Constructors.
| x | horizontal window position (left) | |
| y | vertical window position (top) | |
| w | window width (right) | |
| h | window height (bottom) | |
| label | window's label |
| virtual Fl_DT_Window< T >::~Fl_DT_Window | ( | ) | [inline, virtual] |
Destructor.
| int Fl_DT_Window< T >::EventButtonToMouseButton | ( | int | eventButton | ) | [inline] |
| virtual int Fl_DT_Window< T >::handle | ( | int | event | ) | [inline, virtual] |
Fl_Window override to handle event's from FLTK.
| event | a single event from FLTK |
| virtual void Fl_DT_Window< T >::resize | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [inline, virtual] |
Fl_Window override to update a window resize event.
Passes the event to the Viewer class object.
| x | horizontal window position (left) | |
| y | vertical window position (top) | |
| w | window width (right) | |
| h | window height (bottom) |
| virtual void Fl_DT_Window< T >::show | ( | void | ) | [inline, virtual] |
Fl_Window::show() override to configure the widget and prepare it for visibility on the screen.
| virtual void Fl_DT_Window< T >::SetEvent | ( | Fl_Event | ev, | |
| bool | set = true | |||
| ) | [inline, virtual] |
Set/unset which events get handled.
| ev | the event to set | |
| set | flag to set or unset the event |
| virtual void Fl_DT_Window< T >::OnMessage | ( | dtCore::Base::MessageData * | data | ) | [inline, protected, virtual] |
Base::OnMessage override to receive messages.
| data | the message to receive |
| static void Fl_DT_Window< T >::idle_callback | ( | void * | data | ) | [inline, static, protected] |
Static callback, repeatedly called when FLTK is idle.
Function casts void pointer to this object's type then calls the overloaded (non-static) callback.
| data | pointer to this object cast as void* |
| virtual void Fl_DT_Window< T >::idle_callback | ( | void | ) | [inline, protected, virtual] |
Callback, repeatedly called when FLTK is idle.
Calls the Viewer's step function to advance one frame of the 3D scene.
| virtual void Fl_DT_Window< T >::TranslateMouseEvent | ( | dtABC::MouseEvent & | ev | ) | [inline, protected, virtual] |
| virtual void Fl_DT_Window< T >::TranslateKeyboardEvent | ( | dtABC::KeyboardEvent & | ev | ) | [inline, protected, virtual] |
| void Fl_DT_Window< T >::ctor | ( | void | ) | [inline, protected] |
Inline unified constructor.