mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
|
/*
|
|||
|
* roar -- mIRC art editor for Windows & Linux
|
|||
|
* Copyright (C) 2018, 2019 Lucio Andr<EFBFBD>s Illanes Albornoz <lucio@lucioillanes.de>
|
|||
|
*
|
|||
|
* This program is free software: you can redistribute it and/or modify
|
|||
|
* it under the terms of the GNU General Public License as published by
|
|||
|
* the Free Software Foundation, either version 3 of the License, or
|
|||
|
* (at your option) any later version.
|
|||
|
*
|
|||
|
* This program is distributed in the hope that it will be useful,
|
|||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
|
* GNU General Public License for more details.
|
|||
|
*
|
|||
|
* You should have received a copy of the GNU General Public License
|
|||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
|
*/
|
|||
|
|
|||
|
#include "ToolText.hpp"
|
|||
|
|
|||
|
/*
|
|||
|
* Public class functions
|
|||
|
*/
|
|||
|
|
|||
|
Tool::TOOL_CELLS
|
|||
|
ToolText::cursor(
|
|||
|
Canvas::BRUSH brush,
|
|||
|
Canvas::POINT& brushPos,
|
|||
|
const Canvas& canvas,
|
|||
|
Canvas::POINT pos
|
|||
|
)
|
|||
|
{
|
|||
|
Canvas::CELL_LIST cellsText;
|
|||
|
|
|||
|
(void)canvas;
|
|||
|
cellsText.push_back(Canvas::CELL{Canvas::CATTR_NONE, brush.colours.fg, brush.colours.fg, pos, L" "});
|
|||
|
brushPos = pos;
|
|||
|
return Tool::TOOL_CELLS(true, Tool::TOOL_CELLS_PAIR(Canvas::CELL_LIST(), cellsText));
|
|||
|
}
|