The SimpleCxxLib package


#include "gevents.h"

class GWindowEvent : public GEvent

This event subclass represents a window event. Each GWindowEvent keeps track of the event type (WINDOW_CLOSED, WINDOW_RESIZED) along with the identity of the window.
Constructor
GWindowEvent(type, gw) Creates a GWindowEvent using the specified parameters.
Methods
getGWindow() Returns the graphics window in which this event occurred.
toString() Converts the event to a human-readable representation of the event.

Constructor detail


GWindowEvent(EventType type, const GWindow & gw);
Creates a GWindowEvent using the specified parameters.

Usage:

GWindowEvent windowEvent(type, gw);

Method detail


GWindow getGWindow() const;
Returns the graphics window in which this event occurred.

Usage:

GWindow gw = e.getGWindow();

string toString() const;
Converts the event to a human-readable representation of the event.

Usage:

string str = e.toString();