forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcursor.h
More file actions
33 lines (24 loc) · 673 Bytes
/
cursor.h
File metadata and controls
33 lines (24 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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