28 lines
603 B
C++
28 lines
603 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Scenario/Document/Interval/IntervalModel.hpp>
|
||
|
#include <Process/Style/ScenarioStyle.hpp>
|
||
|
#include <base_widget.hpp>
|
||
|
|
||
|
namespace Hardware
|
||
|
{
|
||
|
struct IntervalWidget : bugui::base_widget
|
||
|
{
|
||
|
explicit IntervalWidget(base_widget* parent,
|
||
|
Scenario::IntervalModel& interval);
|
||
|
|
||
|
int x() const override;
|
||
|
int y() const override;
|
||
|
int width() const override;
|
||
|
|
||
|
void paint(bugui::painter& painter) override;
|
||
|
|
||
|
const Scenario::IntervalModel& get_model() const;
|
||
|
|
||
|
private:
|
||
|
Scenario::IntervalModel& model;
|
||
|
const Process::Style& skin;
|
||
|
};
|
||
|
|
||
|
} // namespace Hardware
|