mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -35,14 +35,14 @@ PickerTool::~PickerTool()
|
|||
{
|
||||
}
|
||||
|
||||
void PickerTool::on_mousedown(GMouseEvent& event)
|
||||
void PickerTool::on_mousedown(GUI::MouseEvent& event)
|
||||
{
|
||||
ASSERT(m_widget);
|
||||
if (!m_widget->bitmap().rect().contains(event.position()))
|
||||
return;
|
||||
auto color = m_widget->bitmap().get_pixel(event.position());
|
||||
if (event.button() == GMouseButton::Left)
|
||||
if (event.button() == GUI::MouseButton::Left)
|
||||
m_widget->set_primary_color(color);
|
||||
else if (event.button() == GMouseButton::Right)
|
||||
else if (event.button() == GUI::MouseButton::Right)
|
||||
m_widget->set_secondary_color(color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue