Design Pattern Examples
Overview of object-oriented design patterns
_Window Struct Reference

Represents a window in an arbitrary space. It has an ID, title, and position. A close box is within the window's rectangle. The window can be selected by sending a button down message with the position within this window. If a button down message occurs outside this window, it is deselected. More...

Collaboration diagram for _Window:
Collaboration graph

Public Attributes

struct _Windowprev
 Previous window in a linked list. NULL if this window is the head of the list.
 
struct _Windownext
 Next window in a linked list. NULL if this windows is the last in the list.
 
int _windowId
 Unique ID of this window.
 
const char * _title
 Title/Name of this window.
 
WindowRectangle _windowBox
 Position of this window in global coordinates.
 
WindowRectangle _closeBox
 Position of the close window within the window box, although the coordinates are also global coordinates to eliminate the need to convert between window and global coordinates.
 
bool _selected
 Whether this window has been selected (a button click occurred within the window).
 

Detailed Description

Represents a window in an arbitrary space. It has an ID, title, and position. A close box is within the window's rectangle. The window can be selected by sending a button down message with the position within this window. If a button down message occurs outside this window, it is deselected.

Definition at line 30 of file HandlerChain_MessageWindow.c.

Member Data Documentation

◆ _closeBox

WindowRectangle _closeBox

Position of the close window within the window box, although the coordinates are also global coordinates to eliminate the need to convert between window and global coordinates.

Definition at line 66 of file HandlerChain_MessageWindow.c.

Referenced by _HandleButtonUpMessage(), MessageWindow::_PointInCloseBox(), and MessageWindow_Create().

◆ _selected

bool _selected

Whether this window has been selected (a button click occurred within the window).

Definition at line 72 of file HandlerChain_MessageWindow.c.

Referenced by _HandleButtonDownMessage(), _HandleButtonUpMessage(), _HandleCloseMessage(), _HandleDestroyMessage(), MessageWindow_ToString(), and MessageWindow::ToString().

◆ _title

◆ _windowBox

◆ _windowId

◆ next

struct _Window* next

Next window in a linked list. NULL if this windows is the last in the list.

Definition at line 44 of file HandlerChain_MessageWindow.c.

Referenced by _AppendWindowToList(), _FindWindow(), and _RemoveWindowFromList().

◆ prev

struct _Window* prev

Previous window in a linked list. NULL if this window is the head of the list.

Definition at line 39 of file HandlerChain_MessageWindow.c.

Referenced by _AppendWindowToList(), and _RemoveWindowFromList().


The documentation for this struct was generated from the following file: