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

Collaboration diagram for MessagePosition:
Collaboration graph

Public Member Functions

 MessagePosition (int x, int y)
 Constructor.
 
override 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 47 of file HandlerChain_Message_Class.cs.

Constructor & Destructor Documentation

◆ MessagePosition()

MessagePosition ( int  x,
int  y 
)
inline

Constructor.

Parameters
xX position to use.
yY position to use.

Definition at line 64 of file HandlerChain_Message_Class.cs.

References MessagePosition.X, and MessagePosition.Y.

Member Function Documentation

◆ ToString()

override string ToString ( )
inline

Convert this position to a string.

Returns
A string containing a string representation of the position.

Definition at line 74 of file HandlerChain_Message_Class.cs.

References MessagePosition.X, and MessagePosition.Y.

Member Data Documentation

◆ X

◆ Y


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