mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 22:20:58 +00:00
35 lines
695 B
C++
35 lines
695 B
C++
// Aseprite UI Library
|
|
// Copyright (C) 2001-2013 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef UI_EVENT_H_INCLUDED
|
|
#define UI_EVENT_H_INCLUDED
|
|
#pragma once
|
|
|
|
namespace ui {
|
|
|
|
class Component;
|
|
|
|
// Base class for every kind of event.
|
|
class Event
|
|
{
|
|
public:
|
|
// Creates a new event specifying that it was generated from the
|
|
// source component.
|
|
Event(Component* source);
|
|
virtual ~Event();
|
|
|
|
// Returns the component which generated the event.
|
|
Component* getSource();
|
|
|
|
private:
|
|
// The component which generates the event.
|
|
Component* m_source;
|
|
};
|
|
|
|
} // namespace ui
|
|
|
|
#endif
|