| 1 | // Aseprite UI Library | 
|---|
| 2 | // Copyright (C) 2019  Igara Studio S.A. | 
|---|
| 3 | // Copyright (C) 2001-2015  David Capello | 
|---|
| 4 | // | 
|---|
| 5 | // This file is released under the terms of the MIT license. | 
|---|
| 6 | // Read LICENSE.txt for more information. | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef UI_PROPERTY_H_INCLUDED | 
|---|
| 9 | #define UI_PROPERTY_H_INCLUDED | 
|---|
| 10 | #pragma once | 
|---|
| 11 |  | 
|---|
| 12 | #include "base/disable_copying.h" | 
|---|
| 13 |  | 
|---|
| 14 | #include <memory> | 
|---|
| 15 | #include <string> | 
|---|
| 16 |  | 
|---|
| 17 | namespace ui { | 
|---|
| 18 |  | 
|---|
| 19 | class Property { | 
|---|
| 20 | public: | 
|---|
| 21 | Property(const std::string& name); | 
|---|
| 22 | virtual ~Property(); | 
|---|
| 23 |  | 
|---|
| 24 | std::string getName() const; | 
|---|
| 25 |  | 
|---|
| 26 | private: | 
|---|
| 27 | std::string m_name; | 
|---|
| 28 |  | 
|---|
| 29 | DISABLE_COPYING(Property); | 
|---|
| 30 | }; | 
|---|
| 31 |  | 
|---|
| 32 | typedef std::shared_ptr<Property> PropertyPtr; | 
|---|
| 33 |  | 
|---|
| 34 | } // namespace ui | 
|---|
| 35 |  | 
|---|
| 36 | #endif | 
|---|
| 37 |  | 
|---|