FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::Event Class Reference

#include <event.hpp>

Inheritance diagram for fcn::Event:
fcn::ActionEvent fcn::ContainerEvent fcn::InputEvent fcn::SelectionEvent fcn::KeyEvent fcn::MouseEvent

Public Member Functions

 Event (Widget *source)
WidgetgetSource () const

Protected Attributes

WidgetmSource {nullptr}

Detailed Description

Base class for all GUI event objects.

An event is a signal that something has happened in the GUI. Events are used to notify widgets of user actions. The event class is the base class for all events in the GUI.

Definition at line 23 of file event.hpp.

Constructor & Destructor Documentation

◆ Event()

fcn::Event::Event ( Widget * source)
explicit

Constructor.

Parameters
sourceThe source widget of the event.

Definition at line 9 of file event.cpp.

References mSource.

Referenced by fcn::ActionEvent::ActionEvent(), fcn::ContainerEvent::ContainerEvent(), fcn::InputEvent::InputEvent(), and fcn::SelectionEvent::SelectionEvent().

Member Function Documentation

◆ getSource()

Member Data Documentation

◆ mSource

Widget* fcn::Event::mSource {nullptr}
protected

Holds the source widget of the event.

Definition at line 45 of file event.hpp.

Referenced by Event(), and getSource().


The documentation for this class was generated from the following files: