mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:35:08 +00:00
HackStudio: Introduce a Tool class with subs CursorTool and WidgetTool
These will be used to draw out new widgets on a FormWidget, or in the case of CursorTool, to select and manipulate existing widgets.
This commit is contained in:
parent
a04ab219d1
commit
e87756424d
12 changed files with 166 additions and 0 deletions
20
DevTools/HackStudio/CursorTool.cpp
Normal file
20
DevTools/HackStudio/CursorTool.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "CursorTool.h"
|
||||
#include <AK/LogStream.h>
|
||||
|
||||
void CursorTool::on_mousedown(GMouseEvent& event)
|
||||
{
|
||||
(void)event;
|
||||
dbg() << "CursorTool::on_mousedown";
|
||||
}
|
||||
|
||||
void CursorTool::on_mouseup(GMouseEvent& event)
|
||||
{
|
||||
(void)event;
|
||||
dbg() << "CursorTool::on_mouseup";
|
||||
}
|
||||
|
||||
void CursorTool::on_mousemove(GMouseEvent& event)
|
||||
{
|
||||
(void)event;
|
||||
dbg() << "CursorTool::on_mousemove";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue