Design Pattern Examples
Overview of object-oriented design patterns
HandlerChain_WindowRectangle.h
Go to the documentation of this file.
1
8#pragma once
9#ifndef __HANDLERCHAIN_WINDOWRECTANGLE_H__
10#define __HANDLERCHAIN_WINDOWRECTANGLE_H__
11
12#include <stdbool.h>
13
16
23typedef struct
24{
25 int Left;
26 int Top;
27 int Right;
28 int Bottom;
29
31
41void WindowRectangle_Initialize(WindowRectangle* rectangle, int x, int y, int width, int height);
42
53
65
66
67#endif // __HANDLERCHAIN_WINDOWRECTANGLE_H__
68
Declaration of the Message and MessagePosition structures, along with the functions,...
bool WindowRectangle_ToString(WindowRectangle *rectangle, DynamicString *output)
Convert the given WindowRectangle to a string representation.
void WindowRectangle_Initialize(WindowRectangle *rectangle, int x, int y, int width, int height)
Initialize the specified WindowRectangle based on the given position and size in some arbitrary space...
bool WindowRectangle_PointInside(WindowRectangle *rectangle, MessagePosition *point)
Determine if the given WindowRectangle object contains the given MessagePosition.
Declaration of the DynamicString structure and supporting functions to work with dynamic strings.
Represents a string that can be grown dynamically.
Definition: dynamicstring.h:16
Position of the message in global coordinates (same scope of coordinates as windows)....
Represents a rectangular region, with upper left and lower right coordinates.