zoominterface.h
/***************************************************************************
zoominterface.h - description
-------------------
begin : Fri Sep 12 2003
copyright : (C) 2003 by Friedrich W. H. Kossebau
email : Friedrich.W.H@Kossebau.de
***************************************************************************/
/***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License version 2 as published by the Free Software Foundation. *
* *
***************************************************************************/
#ifndef ZOOMINTERFACE_H
#define ZOOMINTERFACE_H
namespace KHE
{
class ZoomInterface
{
public:
virtual void zoomIn( int PointInc ) = 0;
virtual void zoomIn() = 0;
virtual void zoomOut( int PointDec ) = 0;
virtual void zoomOut() = 0;
virtual void zoomTo( int PointSize ) = 0;
virtual void unZoom() = 0;
};
template<class T>
ZoomInterface *zoomInterface( T *t )
{
if( !t )
return 0;
return static_cast<ZoomInterface*>( t->qt_cast("KHE::ZoomInterface") );
}
}
#endif
KHE::ZoomInterface::zoomOut
virtual void zoomOut()=0
decreases the display size by an arbitrary value, usually 1 font point
KHE::ZoomInterface::zoomTo
virtual void zoomTo(int PointSize)=0
sets the display size
KHE::ZoomInterface::unZoom
virtual void unZoom()=0
resets the display to the default size
KHE::zoomInterface
ZoomInterface * zoomInterface(T *t)
tries to get the zoom interface of t
Definition: zoominterface.h:69
KHE::ZoomInterface
A simple interface for zooming.
Definition: zoominterface.h:35
KHE::ZoomInterface::zoomIn
virtual void zoomIn()=0
increases the display size by an arbitrary value, usually 1 font point

KDE Home | KDE Accessibility Home | Description of Access Keys