| 1 | // Aseprite UI Library |
| 2 | // Copyright (C) 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_SCROLL_REGION_EVENT_H_INCLUDED |
| 8 | #define UI_SCROLL_REGION_EVENT_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include "gfx/region.h" |
| 12 | #include "ui/event.h" |
| 13 | |
| 14 | namespace ui { |
| 15 | |
| 16 | class ScrollRegionEvent : public Event { |
| 17 | public: |
| 18 | ScrollRegionEvent(Component* source, gfx::Region& region) |
| 19 | : Event(source), m_region(region) { |
| 20 | } |
| 21 | |
| 22 | gfx::Region& region() { return m_region; } |
| 23 | |
| 24 | private: |
| 25 | gfx::Region& m_region; |
| 26 | }; |
| 27 | |
| 28 | } // namespace ui |
| 29 | |
| 30 | #endif |
| 31 | |