Loading...
Searching...
No Matches
ToolbarWidget.h
Go to the documentation of this file.
1// Copyright (c) 2025 Dave R. Smith.
2// Malena Framework — Licensed under PolyForm Noncommercial 1.0.0; commercial use requires a paid license. See LICENSE.
3
4#ifndef MALENA_TOOLBARWIDGET_H
5#define MALENA_TOOLBARWIDGET_H
6
7#pragma once
8
10#include <functional>
11#include <string>
12
13namespace ml
14{
39 {
40 enum class Hook { REGISTER };
41
42 virtual std::string getToolbarLabel() = 0;
43 virtual std::function<void()> getToolbarAction() = 0;
44
45 virtual ~ToolbarWidget() = default;
46 };
47
48} // namespace ml
49
50#endif // MALENA_TOOLBARWIDGET_H
#define MALENA_API
Definition Component.h:22
Interface for components that register a button+action in a toolbar.
virtual std::string getToolbarLabel()=0
virtual ~ToolbarWidget()=default
virtual std::function< void()> getToolbarAction()=0