QtPdWidgets
2.3.1
src
Widget.h
Go to the documentation of this file.
1
/*****************************************************************************
2
*
3
* Copyright (C) 2009 Florian Pose <fp@igh-essen.com>
4
*
5
* This file is part of the QtPdWidgets library.
6
*
7
* The QtPdWidgets library is free software: you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public License as
9
* published by the Free Software Foundation, either version 3 of the License,
10
* or (at your option) any later version.
11
*
12
* The QtPdWidgets library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15
* General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with the QtPdWidgets Library. If not, see
19
* <http://www.gnu.org/licenses/>.
20
*
21
****************************************************************************/
22
23
#ifndef PD_WIDGET_H
24
#define PD_WIDGET_H
25
26
#include <QTimer>
27
28
namespace
Pd
{
29
30
/****************************************************************************/
31
34
class
Widget
35
{
36
public
:
37
Widget
();
38
virtual
~Widget
();
39
40
static
void
setRedrawInterval
(
int
);
41
static
const
QTimer *
getTimer
();
42
43
private
:
44
static
unsigned
int
timerUseCount
;
46
static
int
timerInterval
;
47
static
QTimer
redrawTimer
;
48
};
49
50
/****************************************************************************/
51
54
inline
const
QTimer *
Widget::getTimer
()
55
{
56
return
&
redrawTimer
;
57
}
58
59
/****************************************************************************/
60
61
}
// namespace Pd
62
63
#endif
Pd::Widget::setRedrawInterval
static void setRedrawInterval(int)
Sets the redraw interval.
Definition:
Widget.cpp:59
Pd
Definition:
Bar.h:36
Pd::Widget::getTimer
static const QTimer * getTimer()
Returns the redrawTimer.
Definition:
Widget.h:54
Pd::Widget::Widget
Widget()
Constructor.
Definition:
Widget.cpp:36
Pd::Widget::redrawTimer
static QTimer redrawTimer
Redraw timer.
Definition:
Widget.h:47
Pd::Widget
Base class for all widgets in this library.
Definition:
Widget.h:34
Pd::Widget::~Widget
virtual ~Widget()
Destructor.
Definition:
Widget.cpp:47
Pd::Widget::timerInterval
static int timerInterval
Current timer interval.
Definition:
Widget.h:46
Pd::Widget::timerUseCount
static unsigned int timerUseCount
Number of widgets using the redrawTimer.
Definition:
Widget.h:44
Documentation automatically created on Mon Dec 9 2024 10:08:45 by
. - QtPdWidgets developed by
Ingenieurgemeinschaft IgH GmbH
. All rights reserved.