QtPdWidgets  2.3.1
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
Pd::Widget Class Reference

Base class for all widgets in this library. More...

#include <Widget.h>

Inheritance diagram for Pd::Widget:
Inheritance graph
[legend]

Public Member Functions

 Widget ()
 Constructor. More...
 
virtual ~Widget ()
 Destructor. More...
 

Static Public Member Functions

static void setRedrawInterval (int)
 Sets the redraw interval. More...
 
static const QTimer * getTimer ()
 Returns the redrawTimer. More...
 

Static Private Attributes

static unsigned int timerUseCount = 0
 Number of widgets using the redrawTimer. More...
 
static int timerInterval = 100
 Current timer interval. More...
 
static QTimer redrawTimer
 Redraw timer. More...
 

Detailed Description

Base class for all widgets in this library.

Constructor & Destructor Documentation

◆ Widget()

Widget::Widget ( )

Constructor.

References redrawTimer, timerInterval, and timerUseCount.

◆ ~Widget()

Widget::~Widget ( )
virtual

Destructor.

References redrawTimer, and timerUseCount.

Member Function Documentation

◆ getTimer()

const QTimer * Pd::Widget::getTimer ( )
inlinestatic

◆ setRedrawInterval()

void Widget::setRedrawInterval ( int  msec)
static

Sets the redraw interval.

Process data widgets will be redrawn in this interval, if necessary.

Parameters
msecRedraw interval in milliseconds.

References redrawTimer, and timerInterval.

Member Data Documentation

◆ redrawTimer

QTimer Widget::redrawTimer
staticprivate

Redraw timer.

Referenced by getTimer(), setRedrawInterval(), Widget(), and ~Widget().

◆ timerInterval

int Widget::timerInterval = 100
staticprivate

Current timer interval.

Referenced by setRedrawInterval(), and Widget().

◆ timerUseCount

unsigned int Widget::timerUseCount = 0
staticprivate

Number of widgets using the redrawTimer.

Referenced by Widget(), and ~Widget().


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