summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Button.h
AgeCommit message (Collapse)Author
2021-05-16LibGUI: Tweak GUI::Button::on_context_menu_event hook signatureAndreas Kling
Pass the ContextMenuEvent as a mutable reference, so that clients want to accept/ignore the event.
2021-04-29LibGUI: Fix issue where buttons with a menu sometimes stayed depressedMart G
When a Button has a menu, the AbstractButton behaviour will now not be used in the mousemove_event. This was already the case for mousedown_event. Why only sometimes? Normally the presence of the menu prevents mousemove_events from being delivered to the button. But the menu doesn't spawn immediately. So sometimes mousemove events got through to the AbstractButton after the menu was told to spawn but before it appeared. This caused the m_being_pressed field of AbstractButton to be set to true. But there was never a mouseup_event because the menu got those instead.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-17LibGUI: Add Action* accessors on GUI::ButtonAndreas Kling
2021-04-05LibGUI: Add ability to assign a menu to a GUI::ButtonAndreas Kling
When a button has a menu, it opens the menu on mousedown and the menu gains input focus immediately. While the menu is open, the button is painted in a pressed state.
2021-03-25LibGUI: Make it possible to tweak icon spacing on a GUI::ButtonAndreas Kling
This is the space between the icon and the text on buttons that have both icon and text.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling