Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_widget_overlay.h
Go to the documentation of this file.
1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2
* Qwt Widget Library
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
9
10
#ifndef QWT_WIDGET_OVERLAY_H
11
#define QWT_WIDGET_OVERLAY_H
12
13
#include "
qwt_global.h
"
14
#include <qwidget.h>
15
#include <qregion.h>
16
17
class
QPainter;
18
40
class
QWT_EXPORT
QwtWidgetOverlay
:
public
QWidget
41
{
42
public
:
60
enum
MaskMode
61
{
63
NoMask
,
64
72
MaskHint
,
73
84
AlphaMask
85
};
86
102
enum
RenderMode
103
{
105
AutoRenderMode
,
106
108
CopyAlphaMask
,
109
111
DrawOverlay
112
};
113
114
explicit
QwtWidgetOverlay
( QWidget* );
115
virtual
~
QwtWidgetOverlay
();
116
117
void
setMaskMode(
MaskMode
);
118
MaskMode
maskMode()
const
;
119
120
void
setRenderMode(
RenderMode
);
121
RenderMode
renderMode()
const
;
122
123
124
virtual
bool
eventFilter( QObject *, QEvent *);
125
126
public
Q_SLOTS:
127
void
updateOverlay();
128
129
protected
:
130
virtual
void
paintEvent( QPaintEvent* event );
131
virtual
void
resizeEvent( QResizeEvent* event );
132
133
virtual
QRegion maskHint()
const
;
134
139
virtual
void
drawOverlay( QPainter *painter )
const
= 0;
140
141
private
:
142
void
updateMask();
143
void
draw( QPainter * )
const
;
144
145
private
:
146
class
PrivateData
;
147
PrivateData
*
d_data
;
148
};
149
150
#endif
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtWidgetOverlay::NoMask
Don't use a mask.
Definition:
qwt_widget_overlay.h:63
QwtWidgetOverlay::PrivateData
Definition:
qwt_widget_overlay.cpp:81
QwtWidgetOverlay::CopyAlphaMask
Always copy the buffer.
Definition:
qwt_widget_overlay.h:108
QwtWidgetOverlay::RenderMode
RenderMode
Render mode.
Definition:
qwt_widget_overlay.h:102
QwtWidgetOverlay::AutoRenderMode
Copy the buffer, when using the raster paint engine.
Definition:
qwt_widget_overlay.h:105
qwt_global.h
QwtWidgetOverlay::MaskMode
MaskMode
Mask mode.
Definition:
qwt_widget_overlay.h:60
QwtWidgetOverlay::MaskHint
Use maskHint() as mask.
Definition:
qwt_widget_overlay.h:72
QwtWidgetOverlay::d_data
PrivateData * d_data
Definition:
qwt_widget_overlay.h:146
QwtWidgetOverlay
An overlay for a widget.
Definition:
qwt_widget_overlay.h:40
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18