mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-09 04:29:04 +03:00
31 lines
664 B
C++
31 lines
664 B
C++
#ifndef CLRSYNC_GUI_WIDGETS_SETTINGS_BUTTONS_HPP
|
|
#define CLRSYNC_GUI_WIDGETS_SETTINGS_BUTTONS_HPP
|
|
|
|
#include <functional>
|
|
|
|
namespace clrsync::gui::widgets
|
|
{
|
|
|
|
struct settings_buttons_callbacks
|
|
{
|
|
std::function<void()> on_ok;
|
|
std::function<void()> on_apply;
|
|
std::function<void()> on_reset;
|
|
std::function<void()> on_cancel;
|
|
};
|
|
|
|
class settings_buttons
|
|
{
|
|
public:
|
|
void render(const settings_buttons_callbacks& callbacks, bool apply_enabled);
|
|
|
|
void set_button_width(float width) { m_button_width = width; }
|
|
|
|
private:
|
|
float m_button_width = 100.0f;
|
|
};
|
|
|
|
} // namespace clrsync::gui::widgets
|
|
|
|
#endif // CLRSYNC_GUI_WIDGETS_SETTINGS_BUTTONS_HPP
|