Design Pattern Examples
Overview of object-oriented design patterns
MessagePosition Struct Reference

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...

#include <HandlerChain_Message_Class.h>

Collaboration diagram for MessagePosition:
Collaboration graph

Public Member Functions

 MessagePosition (int x, int y)
 Constructor.
 
std::string ToString ()
 Convert this position to a string.
 

Public Attributes

int X
 X position.
 
int Y
 Y position.
 

Detailed Description

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.

Definition at line 54 of file HandlerChain_Message_Class.h.

Constructor & Destructor Documentation

◆ MessagePosition()

MessagePosition ( int  x,
int  y 
)
inline

Constructor.

Parameters
xX position to use.
yY position to use.

Definition at line 71 of file HandlerChain_Message_Class.h.

Member Function Documentation

◆ ToString()

std::string ToString ( )
inline

Convert this position to a string.

Returns
A string containing a string representation of the position.

Definition at line 81 of file HandlerChain_Message_Class.h.

References Helpers::formatstring(), MessagePosition::X, and MessagePosition::Y.

Referenced by Message::ToString().

Member Data Documentation

◆ X

int X

X position.

Definition at line 59 of file HandlerChain_Message_Class.h.

Referenced by WindowRectangle::PointInside(), and MessagePosition::ToString().

◆ Y

int Y

Y position.

Definition at line 64 of file HandlerChain_Message_Class.h.

Referenced by WindowRectangle::PointInside(), and MessagePosition::ToString().


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