4#ifndef __GUI_WIDGETS_AUTOMATION_MODE_H__
5#define __GUI_WIDGETS_AUTOMATION_MODE_H__
7#include "common/dsp/automation_point.h"
8#include "common/utils/color.h"
10#include "gui/backend/gtk_widgets/gtk_wrapper.h"
18constexpr int AUTOMATION_MODE_HPADDING = 3;
19constexpr int AUTOMATION_MODE_HSEPARATOR_SIZE = 1;
36 GtkSnapshot * snapshot,
43 AutomationMode get_hit_mode (
double x)
const;
51 void get_color_for_state (
61 GtkSnapshot * snapshot,
78 int text_widths_[
static_cast<int> (AutomationMode::NUM_AUTOMATION_MODES)];
79 int text_heights_[
static_cast<int> (AutomationMode::NUM_AUTOMATION_MODES)];
107 std::array<CustomButtonWidget::State, NUM_AUTOMATION_MODES>
last_states_;