The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
gui2::event::message Struct Reference

The message callbacks hold a reference to a message. More...

#include <message.hpp>

Inheritance diagram for gui2::event::message:
Inheritance graph

Public Member Functions

 message ()=default
 message (const message &)=delete
virtual ~message ()

Detailed Description

The message callbacks hold a reference to a message.

The contents of the message differ per type. This class is a base with a virtual destructor, which makes it possible to use a dynamic_cast on the class received to make sure the proper message type is send.

This means all messages used in the events need to be derived from this class. When a message needs no `content' it can send this class as message. This is done by:

Definition at line 46 of file message.hpp.

Constructor & Destructor Documentation

gui2::event::message::message ( )
gui2::event::message::message ( const message )
virtual gui2::event::message::~message ( )

Definition at line 53 of file message.hpp.

The documentation for this struct was generated from the following file: