mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:07:45 +00:00
GamesSettings: Port GamesSettings to GML compilation
Co-Authored-By: Tim Schumacher <timschumi@gmx.de>
This commit is contained in:
parent
935aaab757
commit
e26548989a
10 changed files with 281 additions and 233 deletions
31
Userland/Applications/GamesSettings/CardGamePreview.h
Normal file
31
Userland/Applications/GamesSettings/CardGamePreview.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) 2022-2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibCards/Card.h>
|
||||
#include <LibCards/CardGame.h>
|
||||
#include <LibCards/CardPainter.h>
|
||||
#include <LibCards/CardStack.h>
|
||||
#include <LibConfig/Client.h>
|
||||
#include <LibGUI/FileSystemModel.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
namespace GamesSettings {
|
||||
|
||||
class CardGamePreview final : public Cards::CardGame {
|
||||
C_OBJECT_ABSTRACT(CardGamePreview)
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<CardGamePreview>> try_create();
|
||||
|
||||
private:
|
||||
CardGamePreview() = default;
|
||||
|
||||
virtual void paint_event(GUI::PaintEvent& event) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue