2013-08-09 08:01:20 +08:00
|
|
|
// Aseprite UI Library
|
2013-01-27 23:13:13 +08:00
|
|
|
// Copyright (C) 2001-2013 David Capello
|
2012-08-11 10:14:54 +08:00
|
|
|
//
|
2013-08-09 08:01:20 +08:00
|
|
|
// This source file is distributed under MIT license,
|
|
|
|
|
// please read LICENSE.txt for more information.
|
2012-08-11 10:14:54 +08:00
|
|
|
|
2013-08-06 08:20:19 +08:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2012-08-11 10:14:54 +08:00
|
|
|
#include "config.h"
|
2013-08-06 08:20:19 +08:00
|
|
|
#endif
|
2012-08-11 10:14:54 +08:00
|
|
|
|
|
|
|
|
#include "ui/cursor.h"
|
|
|
|
|
|
|
|
|
|
#include "she/surface.h"
|
|
|
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
|
|
|
|
|
|
Cursor::Cursor(she::Surface* surface, const gfx::Point& focus)
|
|
|
|
|
: m_surface(surface)
|
|
|
|
|
, m_focus(focus)
|
|
|
|
|
{
|
|
|
|
|
ASSERT(m_surface != NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Cursor::~Cursor()
|
|
|
|
|
{
|
|
|
|
|
m_surface->dispose();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace ui
|