GLOW API version 1.0 reference

Back to
Table of contents


typedef GlowPopupMenuReceiver

General information

type: abstract
synonym: TReceiver<const GlowPopupMenuMessage&>
module: glowMenuButtonWidget

GlowPopupMenuReceiver is the base class of receivers of popup menu hit events. Subclasses should override the OnMessage() method to handle a popup menu event.

GLOW programs that use popup menus may use GlowPopupMenuReceivers to handle menu selections.

Types

Types

typedef const GlowPopupMenuMessage& MessageType

A synonym for the type of message.

Methods

Destructor

~GlowPopupMenuReceiver(void)

Automatically informs any attached GlowPopupMenuWidgets that this receiver is going away.

Information on senders
A receiver can provide rudimentary information on which senders are bound to it.

unsigned int NumSenders(void)

Returns the number of menus bound to this receiver.

unsigned int NumTrackers(void)

Returns the number of trackers bound to this receiver.

Overrideable methods

Receiving messages

virtual void OnMessage(const GlowPopupMenuMessage& message) = 0

This is a pure virtual method that must be overridden by a subclass. It is called whenever the receiver receives a popup menu selection notification.

Back to
Table of contents


The GLOW Toolkit