• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • Okular
  • AnnotationObjectRect
Public Member Functions | List of all members
Okular::AnnotationObjectRect Class Reference

#include <area.h>

Inheritance diagram for Okular::AnnotationObjectRect:
Inheritance graph
[legend]

Public Member Functions

 AnnotationObjectRect (Annotation *annotation)
 
virtual ~AnnotationObjectRect ()
 
Annotation * annotation () const
 
virtual QRect boundingRect (double xScale, double yScale) const
 
virtual bool contains (double x, double y, double xScale, double yScale) const
 
virtual void transform (const QTransform &matrix)
 
- Public Member Functions inherited from Okular::ObjectRect
 ObjectRect (double left, double top, double right, double bottom, bool ellipse, ObjectType type, void *object)
 
 ObjectRect (const NormalizedRect &rect, bool ellipse, ObjectType type, void *object)
 
 ObjectRect (const QPolygonF &poly, ObjectType type, void *object)
 
virtual ~ObjectRect ()
 
double distanceSqr (double x, double y, double xScale, double yScale) const
 
const void * object () const
 
ObjectType objectType () const
 
const QPainterPath & region () const
 

Additional Inherited Members

- Public Types inherited from Okular::ObjectRect
enum  ObjectType { Action, Image, OAnnotation, SourceRef }
 
- Protected Attributes inherited from Okular::ObjectRect
void * m_object
 
ObjectType m_objectType
 
QPainterPath m_path
 
QPainterPath m_transformedPath
 

Detailed Description

This class describes the object rectangle for an annotation.

Definition at line 431 of file area.h.

Constructor & Destructor Documentation

AnnotationObjectRect::AnnotationObjectRect ( Annotation *  annotation)

Creates a new annotation object rectangle with the given annotation.

class AnnotationObjectRect

Definition at line 429 of file area.cpp.

AnnotationObjectRect::~AnnotationObjectRect ( )
virtual

Destroys the annotation object rectangle.

Definition at line 457 of file area.cpp.

Member Function Documentation

Annotation * AnnotationObjectRect::annotation ( ) const

Returns the annotation object of the annotation object rectangle.

Definition at line 434 of file area.cpp.

QRect AnnotationObjectRect::boundingRect ( double  xScale,
double  yScale 
) const
virtual

Returns the bounding rect of the annotation object rectangle for the scaling factor xScale and yScale.

Reimplemented from Okular::ObjectRect.

Definition at line 439 of file area.cpp.

bool AnnotationObjectRect::contains ( double  x,
double  y,
double  xScale,
double  yScale 
) const
virtual

Returns whether the annotation object rectangle contains the point x, y for the scaling factor xScale and yScale.

Reimplemented from Okular::ObjectRect.

Definition at line 452 of file area.cpp.

void AnnotationObjectRect::transform ( const QTransform &  matrix)
virtual

Transforms the annotation object rectangle with the operations defined by matrix.

Reimplemented from Okular::ObjectRect.

Definition at line 464 of file area.cpp.


The documentation for this class was generated from the following files:
  • area.h
  • area.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal