GLOW API version 1.0 reference

Back to
Table of contents


typedef GlowMouseFilter

General information

type: abstract
inherits: TReceiver<GlowMouseData&>
module: glow

GlowMouseFilter is the base class of mouse event filters. Subclasses should override the OnFilter() method to filter events.

GLOW programs that need to filter mouse events should subclass GlowMouseFilter.

Types

Inherited types
These types are inherited from TReceiver<GlowMouseData&>.

typedef GlowMouseData& MessageType

A synonym for the type of message.

Methods

Inherited methods
These methods are inherited from TReceiver<GlowMouseData&>.

unsigned int NumSenders(void)

unsigned int NumTrackers(void)

Overrideable methods

Receiving messages

virtual bool OnFilter(GlowMouseData& message) = 0

This is a pure virtual method that must be overridden by a subclass. It is called whenever a mouse event needs to be filtered. You may handle the event in any way, and may also modify the event by modifying the parameters in the passed data structure. Return true if the event needs to continue to be handled normally; otherwise, return false to consume the event.

Inherited methods
These methods are inherited from TReceiver<GlowMouseData&>.

virtual void OnMessage(GlowMouseData& message)

This method is overridden by GlowMouseFilter and should not be overridden again.

Back to
Table of contents


The GLOW Toolkit