Skui 0.0.1
Build fast and easy to use control software with Skui.
 
Loading...
Searching...
No Matches
Visual Class Reference

#include <visual.hpp>

Inheritance diagram for Visual:
Node Label LineEdit SerialSend Slider

Signals

void widgetChanged (QWidget *widget)
 
- Signals inherited from Node
void changedInterfaceValue (const Interface &)
 
void positionHintChanged (const QPoint position_hint)
 

Public Member Functions

 Visual (QObject *parent=nullptr)
 
virtual ~Visual ()
 
QWidget * widget () const
 Gets the widget associated with this visual node.
 
void setWidget (QWidget *widget)
 Sets the widget associated with this visual node.
 
virtual QWidget * paintWidget (VisualContainer *parent)
 Paints the visual node onto a VisualContainer.
 
const bool isVisual () const override
 Checks if the node is a visual node.
 
- Public Member Functions inherited from Node
 Node (QObject *parent)
 
void setInterfaces (const QList< Interface > &interfaces)
 
QList< Interface > & getInterfaces ()
 Get the list of interfaces.
 
InterfacegetInterface (const QString &identifier)
 Get an interface by its identifier.
 
QPoint positionHint () const
 Get the position hint.
 
void setPositionHint (QPoint position_hint)
 Set the position hint.
 

Properties

QWidget * widget
 
- Properties inherited from Node
QString name
 
QPoint position_hint
 

Additional Inherited Members

- Protected Member Functions inherited from Node
void config ()
 Set various configurations.
 

Constructor & Destructor Documentation

◆ Visual()

Visual::Visual ( QObject * parent = nullptr)
explicit

◆ ~Visual()

virtual Visual::~Visual ( )
inlinevirtual

Member Function Documentation

◆ isVisual()

const bool Visual::isVisual ( ) const
inlineoverridevirtual

Checks if the node is a visual node.

This method returns true.

Returns
True, since this is a visual node.
See also
Node::isVisual()

Reimplemented from Node.

◆ paintWidget()

QWidget * Visual::paintWidget ( VisualContainer * parent)
virtual

Paints the visual node onto a VisualContainer.

This method creates and returns a QWidget that represents the visual node. It is the entry point for rendering content to the panel. The QWidget is a child of the given VisualContainer and is styled to visually represent the node.

Parameters
parentThe VisualContainer to which the visual node's widget will be added as a child.
Returns
A QWidget that visually represents the node, styled and ready to be displayed within the panel.
See also
Panel
VisualContainer

◆ setWidget()

void Visual::setWidget ( QWidget * widget)

Sets the widget associated with this visual node.

This method sets the QWidget that is associated with this visual node. The QWidget is a VisualContainer and is managed by the panel.

Parameters
widgetThe QWidget to associate with this visual node.
See also
widget()
VisualContainer
Panel::addVisual()

◆ widget()

QWidget * Visual::widget ( ) const
inline

Gets the widget associated with this visual node.

This method returns the QWidget that is associated with this visual node. The QWidget is a VisualContainer and is managed by the panel.

Returns
The QWidget associated with this visual node.
See also
setWidget()
VisualContainer
Panel::addVisual()

◆ widgetChanged

void Visual::widgetChanged ( QWidget * widget)
signal

Property Documentation

◆ widget

QWidget * Visual::widget
readwrite

The documentation for this class was generated from the following files: