8#ifndef __HANDLERCHAIN_MESSAGE_H__
9#define __HANDLERCHAIN_MESSAGE_H__
bool Message_ToString(Message *message, DynamicString *output)
Convert a Message object to a string representation.
void Message_Initialize(Message *message, MessageType type, int x, int y)
Initialize a Message structure.
MessageType
Type of message handled by MessageWindow.
@ ButtonUp
Take an action on the currently selected window.
@ ButtonDown
Selects a window based on position.
@ Destroy
Window is being told to destroy itself. This is sent in response to seeing the Close message.
@ Close
Window is asked to close itself, generally sent by the window itself in response to a button up in a ...
bool MessagePosition_ToString(MessagePosition *position, DynamicString *output)
Convert a MessagePosition object to a string representation.
Declaration of the DynamicString structure and supporting functions to work with dynamic strings.
Represents a string that can be grown dynamically.
Represents a message sent to the windows. A message contains a type and a position.
MessagePosition Position
Position of message when the message was sent. In a real system, this would generally represent the p...
MessageType 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)....