aseprite/src/app/ui/editor/tool_loop_impl.h

57 lines
1.1 KiB
C
Raw Normal View History

2015-02-12 23:16:25 +08:00
// Aseprite
// Copyright (C) 2019-2020 Igara Studio S.A.
// Copyright (C) 2001-2017 David Capello
2015-02-12 23:16:25 +08:00
//
2016-08-27 04:02:58 +08:00
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
2007-09-19 07:57:02 +08:00
#ifndef APP_UI_EDITOR_TOOL_LOOP_IMPL_H_INCLUDED
#define APP_UI_EDITOR_TOOL_LOOP_IMPL_H_INCLUDED
2014-03-30 06:40:17 +08:00
#pragma once
2007-09-19 07:57:02 +08:00
#include "app/tools/pointer.h"
#include "doc/brush.h"
#include "doc/image_ref.h"
#include "gfx/fwd.h"
namespace doc {
class Image;
}
namespace app {
2019-03-16 04:03:02 +08:00
class Color;
class Context;
class Editor;
class Site;
2007-09-19 07:57:02 +08:00
namespace tools {
2019-03-16 04:03:02 +08:00
class Ink;
class Tool;
class ToolLoop;
}
2007-09-19 07:57:02 +08:00
tools::ToolLoop* create_tool_loop(
Editor* editor,
Context* context,
const tools::Pointer::Button button,
const bool convertLineToFreehand,
const bool selectTiles);
2019-03-16 04:03:02 +08:00
tools::ToolLoop* create_tool_loop_for_script(
Context* context,
const Site& site,
2019-03-16 04:03:02 +08:00
tools::Tool* tool,
tools::Ink* ink,
const app::Color& color,
const doc::BrushRef& brush);
2019-03-16 04:03:02 +08:00
tools::ToolLoop* create_tool_loop_preview(
Editor* editor,
const doc::BrushRef& brush,
doc::Image* image,
const gfx::Point& celOrigin);
} // namespace app
2007-09-19 07:57:02 +08:00
2009-08-18 05:38:00 +08:00
#endif