Design Pattern Examples
Overview of object-oriented design patterns
HandlerChain_Message_Class.h File Reference

Implementation of the Message and MessagePosition structs used in the HandlerChain Pattern. More...

#include <string>
#include "helpers/formatstring.h"
Include dependency graph for HandlerChain_Message_Class.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MessagePosition
 Position of the message in global coordinates (same scope of coordinates as windows). Although this can handle negative coordinates, the example is careful to use only positive coordinates. More...
 
struct  Message
 Represents a message sent to the windows. A message contains a type and a position. More...
 

Namespaces

namespace  DesignPatternExamples_cpp
 The namespace containing all Design Pattern Examples implemented in C++.
 

Macros

#define __HANDLERCHAIN_MESSAGE_CLASS_H__
 

Enumerations

enum  MessageType { Close = 0 , ButtonDown = 1 , ButtonUp }
 Type of message handled by MessageWindow. More...
 

Detailed Description

Implementation of the Message and MessagePosition structs used in the HandlerChain Pattern.

Definition in file HandlerChain_Message_Class.h.

Macro Definition Documentation

◆ __HANDLERCHAIN_MESSAGE_CLASS_H__

#define __HANDLERCHAIN_MESSAGE_CLASS_H__

Definition at line 9 of file HandlerChain_Message_Class.h.