navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
RenderArea Class Reference

#include <RenderArea.h>

Inheritance diagram for RenderArea:

Public Member Functions

 RenderArea (struct graphics_priv *priv, QT_QPAINTER_RENDERAREA_PARENT *parent=0, int w=800, int h=800, int overlay=0)
 
void do_resize (QSize size)
 
void processClose ()
 

Data Fields

QPixmap * pixmap
 
struct callback_listcbl
 
struct graphics_privgra
 

Protected Slots

void watchEvent (int fd)
 

Protected Member Functions

QSize sizeHint () const
 
void paintEvent (QPaintEvent *event)
 
void resizeEvent (QResizeEvent *event)
 
void mouseEvent (int pressed, QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void wheelEvent (QWheelEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
void closeEvent (QCloseEvent *event)
 
bool event (QEvent *event)
 

Protected Attributes

int is_overlay
 

Detailed Description

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Constructor & Destructor Documentation

RenderArea::RenderArea ( struct graphics_priv priv,
QT_QPAINTER_RENDERAREA_PARENT parent = 0,
int  w = 800,
int  h = 800,
int  overlay = 0 
)

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

References gra, is_overlay, pixmap, and graphics_priv::window_title.

Member Function Documentation

void RenderArea::closeEvent ( QCloseEvent *  event)
protected

References processClose().

void RenderArea::do_resize ( QSize  size)

References callback_list_call_attr_2, cbl, dbg, lvl_debug, and pixmap.

Referenced by resizeEvent().

bool RenderArea::event ( QEvent *  event)
protected

References dbg, and lvl_debug.

void RenderArea::keyPressEvent ( QKeyEvent *  event)
protected
void RenderArea::mouseEvent ( int  pressed,
QMouseEvent *  event 
)
protected
void RenderArea::mouseMoveEvent ( QMouseEvent *  event)
protected
void RenderArea::mousePressEvent ( QMouseEvent *  event)
protected

References mouseEvent().

void RenderArea::mouseReleaseEvent ( QMouseEvent *  event)
protected

References mouseEvent().

void RenderArea::paintEvent ( QPaintEvent *  event)
protected

References gra, and qt_qpainter_draw().

void RenderArea::processClose ( )

References callback_list_call_attr_0, and cbl.

Referenced by closeEvent().

void RenderArea::resizeEvent ( QResizeEvent *  event)
protected

References do_resize(), and is_overlay.

QSize RenderArea::sizeHint ( ) const
protected
void RenderArea::watchEvent ( int  fd)
protectedslot
void RenderArea::wheelEvent ( QWheelEvent *  event)
protected

Field Documentation

struct graphics_priv* RenderArea::gra

Referenced by paintEvent(), RenderArea(), and sizeHint().

int RenderArea::is_overlay
protected

Referenced by RenderArea(), and resizeEvent().

QPixmap* RenderArea::pixmap

Referenced by do_resize(), and RenderArea().


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