Design Pattern Examples
Overview of object-oriented design patterns
HandlerChain_MessageWindow.h
Go to the documentation of this file.
1
7
8#pragma once
9#ifndef __HANDLERCHAIN_WINDOW_H__
10#define __HANDLERCHAIN_WINDOW_H__
11
12#include <stdbool.h>
13
15
16//=============================================================================
17//=============================================================================
18//=============================================================================
19
31int MessageWindow_Create(const char* title, int x, int y, int w, int h);
32
38void MessageWindow_Destroy(int windowId);
39
48bool MessageWindow_ProcessMessage(int windowId, Message* message);
49
60bool MessageWindow_ToString(int windowId, DynamicString* output);
61
62#endif //__HANDLERCHAIN_WINDOW_H__
63
Declaration of the Message and MessagePosition structures, along with the functions,...
bool MessageWindow_ProcessMessage(int windowId, Message *message)
Pass a Message object to a window for processing.
int MessageWindow_Create(const char *title, int x, int y, int w, int h)
Create a MessageWindow object with the given properties and return the ID of the object.
void MessageWindow_Destroy(int windowId)
Destroy the MessageWindow object with the given ID. Removes the window from any message handling as w...
bool MessageWindow_ToString(int windowId, DynamicString *output)
Convert the specified window to a string representation.
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.