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_RESIZE_EVENT_H_INCLUDED
8#define UI_RESIZE_EVENT_H_INCLUDED
9#pragma once
10
11#include "gfx/rect.h"
12#include "ui/event.h"
13
14namespace ui {
15
16 class Widget;
17
18 class ResizeEvent : public Event {
19 public:
20 ResizeEvent(Widget* source, const gfx::Rect& bounds);
21
22 const gfx::Rect& bounds() { return m_bounds; }
23
24 private:
25 gfx::Rect m_bounds;
26 };
27
28} // namespace ui
29
30#endif
31