Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

WindowSensor Class Reference

WindowSensor listens for window related system events. More...

Inheritance diagram for WindowSensor:

DeviceSensorNode ChildNode EventHandler Node Object List of all members.

Public Member Functions

virtual bool handleEvent (const Event &event)
 Callback function that is implemented by the callee.

Detailed Description

WindowSensor listens for window related system events.

Authoring Interface:

        WindowSensor {
                // from DeviceSensorNode
            field       SFBoolean   enabled             true
            field       SFURL       device              ""
       
            eventOut    SFBoolean   isInside
            eventOut    SFBoolean   hasInputFocus
            eventOut    SFBoolean   isIconified
            eventOut    SFVec2f     size
        }

Parameters:
enabled controls whether this node will emit any events. Default value: true
device is a string identifying the device this sensor is listening to. Default value: ""
isInside fires true when the pointing device enters the window and false when it leaves the window.
hasInputFocus fires true when this window gains input focus and false when it loses focus.
isIconified fires true when the window is iconified and false when it is uniconified.
size fires with the current x,y size of the window in pixels whenever the window size changes.

Functionality:

...


Member Function Documentation

virtual bool handleEvent const Event event  )  [virtual]
 

Callback function that is implemented by the callee.

Parameters:
event specifies the time of the event. Event time will be the same for events occurring in the same render phase For example, PREUPDATE, POSTUPDATE, PRERENDER and POSTRENDER event callbacks will all pass the same event time for the same frame. Returning stop Emma from calling the rest of the handlers for this event If you return true, Emma will keep on calling rest of the handlers for this event

Reimplemented from DeviceSensorNode.


Generated on Sat Apr 1 06:08:08 2006 for Emma Content Development Kit by  doxygen 1.4.3