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_SAVE_LAYOUT_EVENT_H_INCLUDED
8#define UI_SAVE_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 SaveLayoutEvent : public Event {
19 public:
20 SaveLayoutEvent(Widget* source, std::ostream& stream)
21 : Event(source)
22 , m_stream(stream) {
23 }
24
25 std::ostream& stream() { return m_stream; }
26
27 private:
28 std::ostream& m_stream;
29 };
30
31} // namespace ui
32
33#endif
34