Design Pattern Examples
Overview of object-oriented design patterns
HandlerChain_HandlerFunctions.h
Go to the documentation of this file.
1
7#pragma once
8
9#ifndef __HANDLECHAIN_HANDLERFUNCTIONS_H__
10#define __HANDLECHAIN_HANDLERFUNCTIONS_H__
11
13
21void HandlerChain_SendMessage(int windowId, Message* message);
22
33bool HandlerChain_AddWindow(int windowId);
34
43void HandlerChain_RemoveWindow(int windowId);
44
55
56
57#endif // __HANDLECHAIN_HANDLERFUNCTIONS_H__
58
bool HandlerChain_AddWindow(int windowId)
Add an instance of a MessageWindow to end of the list of windows, protected by a multi-threading lock...
bool HandlerChain_ToString(DynamicString *output)
Convert the Handler Chain to a string, protected by a multi-threading lock.
void HandlerChain_RemoveWindow(int windowId)
Remove an instance of a MessageWindow from the list, protected by a multi-threading lock.
void HandlerChain_SendMessage(int windowId, Message *message)
Send a message to each of the handlers in the list, protected by a multi-threading lock.
Declaration of the Message and MessagePosition structures, along with the functions,...
Represents a string that can be grown dynamically.
Definition: dynamicstring.h:16
Represents a message sent to the windows. A message contains a type and a position.