1// Aseprite UI Library
2// Copyright (C) 2001-2013, 2015 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef UI_LOAD_LAYOUT_EVENT_H_INCLUDED
8#define UI_LOAD_LAYOUT_EVENT_H_INCLUDED
9#pragma once
10
11#include "ui/event.h"
12#include <iosfwd>
13
14namespace ui {
15
16 class Widget;
17
18 class LoadLayoutEvent : public Event {
19 public:
20 LoadLayoutEvent(Widget* source, std::istream& stream)
21 : Event(source)
22 , m_stream(stream) {
23 }
24
25 std::istream& stream() { return m_stream; }
26
27 private:
28 std::istream& m_stream;
29 };
30
31} // namespace ui
32
33#endif
34