mirror of
https://github.com/RGBCube/serenity
synced 2025-06-14 01:42:08 +00:00

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
25 lines
521 B
C++
25 lines
521 B
C++
/*
|
|
* Copyright (c) 2020-2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Dialog.h>
|
|
|
|
namespace Breakout {
|
|
class LevelSelectDialog : public GUI::Dialog {
|
|
C_OBJECT(LevelSelectDialog)
|
|
public:
|
|
virtual ~LevelSelectDialog() override = default;
|
|
static int show(int& board_number, Window* parent_window);
|
|
int level() const { return m_level; }
|
|
|
|
private:
|
|
explicit LevelSelectDialog(Window* parent_window);
|
|
void build();
|
|
|
|
int m_level;
|
|
};
|
|
}
|