Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
libtdegames
libtdegames
libtdegames
kcanvasrootpixmap.cpp
1
/*
2
This file is part of the TDE games library
3
Copyright (C) 2001,2002,2003 Nicolas Hadacek (hadacek@kde.org)
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License version 2 as published by the Free Software Foundation.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
18
*/
19
20
#include "kcanvasrootpixmap.h"
21
22
#include <tqcanvas.h>
23
24
25
KCanvasRootPixmap::KCanvasRootPixmap
(TQCanvasView *view,
const
char
*name)
26
: KRootPixmap(view, name), _view(view)
27
{
28
setCustomPainting(
true
);
29
connect(
this
, TQ_SIGNAL(backgroundUpdated(
const
TQPixmap &)),
30
TQ_SLOT(backgroundUpdatedSlot(
const
TQPixmap &)));
31
}
32
33
void
KCanvasRootPixmap::backgroundUpdatedSlot(
const
TQPixmap &pixmap)
34
{
35
if
( _view && _view->canvas() )
36
_view->canvas()->setBackgroundPixmap(pixmap);
37
}
38
39
#include "kcanvasrootpixmap.moc"
KCanvasRootPixmap::KCanvasRootPixmap
KCanvasRootPixmap(TQCanvasView *view, const char *name=0)
Constructor.
Definition
kcanvasrootpixmap.cpp:25
libtdegames
Skip menu "libtdegames"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
Related Pages
libtdegames
Skip menu "libtdegames"
libtdegames