opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
redo_button.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6#include <string>
7#include <utility>
8
9namespace osc { class UndoRedoBase; }
10
11namespace osc
12{
13 class RedoButton final : public Widget {
14 public:
15 explicit RedoButton(
17 std::shared_ptr<UndoRedoBase> undo_redo,
18 std::string button_icon_text = ">") :
19
21 undo_redo_{std::move(undo_redo)},
22 button_icon_text_{std::move(button_icon_text)}
23 {}
24
25 private:
26 void impl_on_draw();
27
28 std::shared_ptr<UndoRedoBase> undo_redo_;
29 std::string button_icon_text_;
30 };
31}
Definition redo_button.h:13
RedoButton(Widget *parent, std::shared_ptr< UndoRedoBase > undo_redo, std::string button_icon_text=">")
Definition redo_button.h:15
Definition widget.h:26
Widget * parent()
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56