| 12345678910111213141516171819202122232425262728293031 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include "Platform/BsDropTarget.h"
- namespace bs
- {
- void DropTarget::_clear()
- {
- mFileList.clear();
- }
- bool DropTarget::_isInside(const Vector2I& pos) const
- {
- return mArea.contains(pos);
- }
- void DropTarget::_setFileList(const Vector<Path>& fileList)
- {
- _clear();
- mDropType = DropTargetType::FileList;
- mFileList = fileList;
- }
- SPtr<DropTarget> DropTarget::create(const RenderWindow* window, const Rect2I& area)
- {
- DropTarget* target = new (bs_alloc<DropTarget>()) DropTarget(window, area);
- return bs_shared_ptr(target);
- }
- }
|