2021-05-22 05:54:58 -03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Ryan Wilson <ryan@rdwilson.xyz>
|
2022-02-16 11:44:57 -07:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-05-22 05:54:58 -03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Board.h"
|
|
|
|
#include <AK/Vector.h>
|
|
|
|
#include <LibGUI/Event.h>
|
|
|
|
#include <LibGUI/Forward.h>
|
|
|
|
|
2022-02-16 11:44:57 -07:00
|
|
|
class Pattern final {
|
2021-05-22 05:54:58 -03:00
|
|
|
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;
|
|
|
|
};
|