mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-04 10:14:14 +00:00
34 lines
673 B
C++
34 lines
673 B
C++
// Aseprite UI Library
|
|
// Copyright (C) 2001-2013 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef UI_CURSOR_H_INCLUDED
|
|
#define UI_CURSOR_H_INCLUDED
|
|
#pragma once
|
|
|
|
#include "gfx/point.h"
|
|
|
|
namespace she { class Surface; }
|
|
|
|
namespace ui {
|
|
|
|
class Cursor {
|
|
public:
|
|
// The surface is disposed in ~Cursor.
|
|
Cursor(she::Surface* surface, const gfx::Point& focus);
|
|
~Cursor();
|
|
|
|
she::Surface* getSurface() { return m_surface; }
|
|
const gfx::Point& getFocus() const { return m_focus; }
|
|
|
|
private:
|
|
she::Surface* m_surface;
|
|
gfx::Point m_focus;
|
|
};
|
|
|
|
} // namespace ui
|
|
|
|
#endif
|