2012-08-11 10:14:54 +08:00
|
|
|
// ASEPRITE gui library
|
2013-01-27 23:13:13 +08:00
|
|
|
// Copyright (C) 2001-2013 David Capello
|
2012-08-11 10:14:54 +08:00
|
|
|
//
|
2012-09-24 10:24:07 +08:00
|
|
|
// This source file is distributed under a BSD-like license, please
|
2012-08-11 10:14:54 +08:00
|
|
|
// read LICENSE.txt for more information.
|
|
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
|
|
#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
|