2024-10-12 22:18:42 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Amuencha/AmuenchaModel.hpp>
|
|
|
|
#include <halp/layout.hpp>
|
|
|
|
#include "SpiralDisplay.hpp"
|
|
|
|
|
|
|
|
namespace Amuencha
|
|
|
|
{
|
|
|
|
struct Analyser::ui
|
|
|
|
{
|
|
|
|
using enum halp::colors;
|
|
|
|
using enum halp::layouts;
|
|
|
|
|
|
|
|
halp_meta(name, "Amuencha")
|
|
|
|
halp_meta(layout, hbox)
|
|
|
|
halp_meta(background, dark)
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
halp_meta(layout, vbox)
|
|
|
|
halp::item<&ins::min> min;
|
|
|
|
halp::item<&ins::max> max;
|
|
|
|
} controls;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
halp_meta(layout, halp::layouts::vbox)
|
|
|
|
halp_meta(background, halp::colors::mid)
|
2024-10-23 00:22:31 +01:00
|
|
|
halp_meta(width, 500)
|
|
|
|
halp_meta(height, 500)
|
2024-10-12 22:18:42 +01:00
|
|
|
|
|
|
|
halp::custom_actions_item<SpiralDisplay> widget{.x = 0, .y = 0};
|
|
|
|
} spiral;
|
2024-10-23 00:22:31 +01:00
|
|
|
|
|
|
|
// Define the communication between UI and processor.
|
|
|
|
struct bus
|
|
|
|
{
|
|
|
|
// Receive a message on the UI thread from the processing thread
|
|
|
|
static void process_message(ui& self, processor_to_ui msg)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
2024-10-12 22:18:42 +01:00
|
|
|
};
|
|
|
|
}
|