Fl_DT_Window< T > Class Template Reference

#include <fl_dt_window.h>

List of all members.

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.

template<class T>
class Fl_DT_Window< T >


Constructor & Destructor Documentation

template<class T>
Fl_DT_Window< T >::Fl_DT_Window (  )  [inline]

Default constructor.

template<class T>
Fl_DT_Window< T >::Fl_DT_Window ( int  w,
int  h,
const char *  label = 0L 
) [inline]

Constructor.

Parameters:
w window width (right)
h window height (bottom)
label window's label

template<class T>
Fl_DT_Window< T >::Fl_DT_Window ( int  x,
int  y,
int  w,
int  h,
const char *  label = 0L 
) [inline]

Constructors.

Parameters:
x horizontal window position (left)
y vertical window position (top)
w window width (right)
h window height (bottom)
label window's label

template<class T>
virtual Fl_DT_Window< T >::~Fl_DT_Window (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<class T>
int Fl_DT_Window< T >::EventButtonToMouseButton ( int  eventButton  )  [inline]

template<class T>
virtual int Fl_DT_Window< T >::handle ( int  event  )  [inline, virtual]

Fl_Window override to handle event's from FLTK.

Parameters:
event a single event from FLTK
Returns:
non-zero on handled, zero on not handled

template<class T>
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.

Parameters:
x horizontal window position (left)
y vertical window position (top)
w window width (right)
h window height (bottom)

template<class T>
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.

template<class T>
virtual void Fl_DT_Window< T >::SetEvent ( Fl_Event  ev,
bool  set = true 
) [inline, virtual]

Set/unset which events get handled.

Parameters:
ev the event to set
set flag to set or unset the event

template<class T>
virtual void Fl_DT_Window< T >::OnMessage ( dtCore::Base::MessageData data  )  [inline, protected, virtual]

Base::OnMessage override to receive messages.

Parameters:
data the message to receive

template<class T>
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.

Parameters:
data pointer to this object cast as void*

template<class T>
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.

template<class T>
virtual void Fl_DT_Window< T >::TranslateMouseEvent ( dtABC::MouseEvent ev  )  [inline, protected, virtual]

Translate the mouse event from FLTK data to dtABC data.

Parameters:
ev the event to translate

template<class T>
virtual void Fl_DT_Window< T >::TranslateKeyboardEvent ( dtABC::KeyboardEvent ev  )  [inline, protected, virtual]

Translate the mouse event from FLTK data to dtCore data.

Parameters:
ev the event to translate

template<class T>
void Fl_DT_Window< T >::ctor ( void   )  [inline, protected]

Inline unified constructor.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008