mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibCards: Add a helper to create an action to open Cards Settings
This is a useful shortcut to open the settings from within the game rather than having to go through the system menu.
This commit is contained in:
parent
a2277655c0
commit
33fd2c1af9
Notes:
sideshowbarker
2024-07-17 22:09:47 +09:00
Author: https://github.com/trflynn89
Commit: 33fd2c1af9
Pull-request: https://github.com/SerenityOS/serenity/pull/16825
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 18 additions and 0 deletions
|
@ -6,12 +6,16 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Error.h>
|
||||
#include <LibCards/CardStack.h>
|
||||
#include <LibConfig/Listener.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
|
||||
namespace Cards {
|
||||
|
||||
ErrorOr<NonnullRefPtr<GUI::Action>> make_cards_settings_action(GUI::Window* parent = nullptr);
|
||||
|
||||
class CardGame
|
||||
: public GUI::Frame
|
||||
, public Config::Listener {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue