Class Widget

Inheritance Relationships

Derived Types

Class Documentation

class SmartPeak::Widget

Abstract base class for all panes, windows, and widgets.

TODO: potential refactors

Subclassed by SmartPeak::AboutWidget, SmartPeak::FilePicker, SmartPeak::GenericGraphicWidget, SmartPeak::GenericTableWidget, SmartPeak::GenericTextWidget, SmartPeak::GenericTreeWidget, SmartPeak::InfoWidget, SmartPeak::LogWidget, SmartPeak::ParameterEditorWidget, SmartPeak::ParametersTableWidget, SmartPeak::Report, SmartPeak::RunWorkflowWidget, SmartPeak::SampleTypeEditorWidget, SmartPeak::SequenceGroupsEditorWidget, SmartPeak::StatisticsWidget, SmartPeak::Workflow, SmartPeak::WorkflowStepWidget

Public Functions

inline Widget(const std::string title = "")
virtual ~Widget() = default
Widget(const Widget&&) = delete
virtual void draw() = 0

Interface to show the widget

NOTE: free to override in inherited implmementations

inline void setWindowSize(float width, float height)

Public Members

bool visible_ = false
std::string title_
float width_ = 0.0
float height_ = 0.0