55 return "x={0:2},y={1:2}".format(self.
X, self.
Y)
75 def __init__(self, type : MessageType, position : MessagePosition) ->
None:
93 messageTypeAsString =
""
95 case MessageType.Close:
96 messageTypeAsString =
"Close"
98 case MessageType.ButtonDown:
99 messageTypeAsString =
"ButtonDown"
101 case MessageType.ButtonUp:
102 messageTypeAsString =
"ButtonUp"
105 messageTypeAsString =
"Unknown message type"
Represents a message sent to the windows.
None __init__(self, MessageType type, MessagePosition position)
Constructor.
str ToString(self)
Convert this message to a string.
Position
Position of message when the message was sent.
MessageType
Value from the MessageType enumeration indicating the type of this message.
Position of the message in global coordinates (same scope of coordinates as windows).
str ToString(self)
Convert this position to a string.
None __init__(self, int x, int y)
Constructor.
Type of message handled by MessageWindow.