Represents a message sent to the windows. A message contains a type and a position. More...
#include <HandlerChain_Message_Class.h>

Public Member Functions | |
| Message (enum MessageType type, struct MessagePosition position) | |
| Constructor. | |
| std::string | ToString () |
| Convert this message to a string. | |
Public Attributes | |
| enum MessageType | MessageType |
| Value from the MessageType enumeration indicating the type of this message. | |
| MessagePosition | Position |
| Position of message when the message was sent. In a real system, this would generally represent the position of a cursor at the time the message was generated. | |
Represents a message sent to the windows. A message contains a type and a position.
Definition at line 99 of file HandlerChain_Message_Class.h.
|
inline |
Constructor.
| type | Value from the MessageType enumeration indicating the type of message being created. |
| position | Position of the message, expressed as a MessagePosition object. |
Definition at line 120 of file HandlerChain_Message_Class.h.
|
inline |
Convert this message to a string.
Definition at line 130 of file HandlerChain_Message_Class.h.
References DesignPatternExamples_cpp::ButtonDown, DesignPatternExamples_cpp::ButtonUp, DesignPatternExamples_cpp::Close, Helpers::formatstring(), Message::Position, and MessagePosition::ToString().
| enum MessageType MessageType |
Value from the MessageType enumeration indicating the type of this message.
Definition at line 104 of file HandlerChain_Message_Class.h.
Referenced by MessageWindow::ProcessMessage(), and Message::ToString().
| MessagePosition Position |
Position of message when the message was sent. In a real system, this would generally represent the position of a cursor at the time the message was generated.
Definition at line 111 of file HandlerChain_Message_Class.h.
Referenced by MessageWindow::_HandleButtonDownMessage(), MessageWindow::_HandleButtonUpMessage(), and Message::ToString().