Okular::AnnotationObjectRect

Search for usage in LXR

Okular::AnnotationObjectRect Class Reference

#include <area.h>

Inheritance diagram for Okular::AnnotationObjectRect:

Public Member Functions

 AnnotationObjectRect (Annotation *annotation)
 
 ~AnnotationObjectRect () override
 
Annotationannotation () const
 
QRect boundingRect (double xScale, double yScale) const override
 
bool contains (double x, double y, double xScale, double yScale) const override
 
void transform (const QTransform &matrix) override
 
- Public Member Functions inherited from Okular::ObjectRect
 ObjectRect (const NormalizedRect &r, bool ellipse, ObjectType type, void *object)
 
 ObjectRect (const ObjectRect &o)=delete
 
 ObjectRect (const QPolygonF &poly, ObjectType type, void *object)
 
 ObjectRect (double left, double top, double right, double bottom, bool ellipse, ObjectType type, void *object)
 
virtual ~ObjectRect ()
 
double distanceSqr (double x, double y, double xScale, double yScale) const
 
const void * object () const
 
ObjectType objectType () const
 
ObjectRectoperator= (const ObjectRect &o)=delete
 
const QPainterPathregion () 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 555 of file area.h.

Constructor & Destructor Documentation

◆ AnnotationObjectRect()

AnnotationObjectRect::AnnotationObjectRect ( Annotation * annotation)
explicit

Creates a new annotation object rectangle with the given annotation.

class AnnotationObjectRect

Definition at line 427 of file area.cpp.

◆ ~AnnotationObjectRect()

AnnotationObjectRect::~AnnotationObjectRect ( )
override

Destroys the annotation object rectangle.

Definition at line 456 of file area.cpp.

Member Function Documentation

◆ annotation()

Annotation * AnnotationObjectRect::annotation ( ) const

Returns the annotation object of the annotation object rectangle.

Definition at line 433 of file area.cpp.

◆ boundingRect()

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

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

Reimplemented from Okular::ObjectRect.

Definition at line 438 of file area.cpp.

◆ contains()

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

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 451 of file area.cpp.

◆ transform()

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

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

Reimplemented from Okular::ObjectRect.

Definition at line 463 of file area.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:08:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.