Okular::SourceRefObjectRect

Search for usage in LXR

Okular::SourceRefObjectRect Class Reference

#include <area.h>

Inheritance diagram for Okular::SourceRefObjectRect:

Public Member Functions

 SourceRefObjectRect (const NormalizedPoint &point, void *srcRef)
 
QRect boundingRect (double xScale, double yScale) const override
 
bool contains (double x, double y, double xScale, double yScale) const override
 
- 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 &r, bool ellipse, ObjectType type, void *object)
 
 ObjectRect (const QPolygonF &poly, ObjectType type, void *object)
 
 ObjectRect (const ObjectRect &o)=delete
 
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
 
virtual void transform (const QTransform &matrix)
 

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 a source reference.

Definition at line 593 of file area.h.

Constructor & Destructor Documentation

SourceRefObjectRect::SourceRefObjectRect ( const NormalizedPoint point,
void *  srcRef 
)

Creates a new source reference object rectangle.

class SourceRefObjectRect

Parameters
pointThe point of the source reference.
srcRefThe storable source reference object.

Definition at line 461 of file area.cpp.

Member Function Documentation

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

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

Reimplemented from Okular::ObjectRect.

Definition at line 473 of file area.cpp.

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

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

Reimplemented from Okular::ObjectRect.

Definition at line 481 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-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:36:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.