mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-09 04:37:52 +03:00
27c30ca063
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."
27 lines
567 B
C++
27 lines
567 B
C++
/*
|
|
* Copyright (c) 2021, Ryan Wilson <ryan@rdwilson.xyz>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "Board.h"
|
|
#include <AK/Vector.h>
|
|
#include <LibGUI/Event.h>
|
|
#include <LibGUI/Forward.h>
|
|
|
|
class Pattern final {
|
|
public:
|
|
Pattern(Vector<String>);
|
|
Vector<String> pattern() { return m_pattern; };
|
|
GUI::Action* action() { return m_action; }
|
|
void set_action(GUI::Action*);
|
|
void rotate_clockwise();
|
|
|
|
private:
|
|
RefPtr<GUI::Action> m_action;
|
|
Vector<String> m_pattern;
|
|
};
|