QtPdWidgets  2.3.1
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Pd::Time Class Reference

Relative time display. More...

#include <Time.h>

Inheritance diagram for Pd::Time:
Inheritance graph
[legend]
Collaboration diagram for Pd::Time:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

 Time (QWidget *parent=0)
 Constructor. More...
 
virtual ~Time ()
 Destructor. More...
 
void clearData ()
 
double getValue () const
 
void setValue (double)
 Sets the current time value. More...
 
virtual QSize sizeHint () const
 Gives a hint aboute the optimal size. More...
 

Protected Member Functions

bool event (QEvent *)
 Event handler. More...
 

Private Member Functions

PD_PRIVATE void newValues (std::chrono::nanoseconds) override
 This virtual method is called by the ProcessVariable, if its value changes. More...
 

Private Attributes

struct PD_PRIVATE Impl
 
std::unique_ptr< Implimpl
 

Detailed Description

Relative time display.

Constructor & Destructor Documentation

◆ Time()

Time::Time ( QWidget *  parent = 0)

Constructor.

Parameters
parentparent widget

References Impl.

◆ ~Time()

Time::~Time ( )
virtual

Destructor.

Member Function Documentation

◆ clearData()

void Time::clearData ( )

References impl.

◆ event()

bool Time::event ( QEvent *  event)
protected

Event handler.

Parameters
eventPaint event flags.

References impl.

◆ getValue()

double Time::getValue ( ) const
Returns
The current #value.

References impl.

◆ newValues()

void Time::newValues ( std::chrono::nanoseconds  )
overrideprivate

This virtual method is called by the ProcessVariable, if its value changes.

References setValue().

◆ setValue()

void Time::setValue ( double  v)

Sets the current time value.

References impl.

Referenced by newValues().

◆ sizeHint()

QSize Time::sizeHint ( ) const
virtual

Gives a hint aboute the optimal size.

Member Data Documentation

◆ Impl

struct PD_PRIVATE Pd::Time::Impl
private

Referenced by Time().

◆ impl

std::unique_ptr<Impl> Pd::Time::impl
private

Referenced by clearData(), event(), getValue(), and setValue().


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