LeechCraft Monocle  0.6.70-18450-gabe19ee3b0
Modular document viewer for LeechCraft
LC::Monocle::Pos< R > Struct Template Reference

#include "coordsbase.h"

+ Inheritance diagram for LC::Monocle::Pos< R >:

Public Types

using Type = QPointF
 

Public Member Functions

 Pos ()=default
 
 Pos (Type p)
 
 Pos (qreal x, qreal y)
 
auto operator (const Pos &) const =default
 
template<typename Self >
auto ClearedX (this const Self &self)
 
template<typename Self >
auto ClearedY (this const Self &self)
 
template<typename Self >
Self Shifted (this const Self &self, qreal dx, qreal dy)
 
Type ToPointF () const
 
template<typename Self >
Self operator+ (this Self p1, Self p2)
 
template<typename Self >
Self operator- (this Self p1, Self p2)
 
template<typename Self >
Self operator* (this Self p, qreal factor)
 
template<typename Self >
Self operator/ (this Self p, qreal factor)
 
bool BothGeqThan (Pos p) const
 
bool BothLeqThan (Pos p) const
 

Public Attributes

Type P_ {}
 

Static Public Attributes

static constexpr auto Relativity = R
 

Detailed Description

template<Relativity R>
struct LC::Monocle::Pos< R >

Definition at line 25 of file coordsbase.h.

Member Typedef Documentation

◆ Type

template<Relativity R>
using LC::Monocle::Pos< R >::Type = QPointF

Definition at line 29 of file coordsbase.h.

Constructor & Destructor Documentation

◆ Pos() [1/3]

template<Relativity R>
LC::Monocle::Pos< R >::Pos ( )
default

◆ Pos() [2/3]

template<Relativity R>
LC::Monocle::Pos< R >::Pos ( Type  p)
inlineexplicit

Definition at line 35 of file coordsbase.h.

◆ Pos() [3/3]

template<Relativity R>
LC::Monocle::Pos< R >::Pos ( qreal  x,
qreal  y 
)
inlineexplicit

Definition at line 40 of file coordsbase.h.

Member Function Documentation

◆ BothGeqThan()

template<Relativity R>
bool LC::Monocle::Pos< R >::BothGeqThan ( Pos< R >  p) const
inline

Definition at line 97 of file coordsbase.h.

◆ BothLeqThan()

template<Relativity R>
bool LC::Monocle::Pos< R >::BothLeqThan ( Pos< R >  p) const
inline

Definition at line 102 of file coordsbase.h.

◆ ClearedX()

template<Relativity R>
template<typename Self >
auto LC::Monocle::Pos< R >::ClearedX ( this const Self &  self)
inline

Definition at line 49 of file coordsbase.h.

◆ ClearedY()

template<Relativity R>
template<typename Self >
auto LC::Monocle::Pos< R >::ClearedY ( this const Self &  self)
inline

Definition at line 56 of file coordsbase.h.

◆ operator()

template<Relativity R>
auto LC::Monocle::Pos< R >::operator ( const Pos< R > &  ) const
default

◆ operator*()

template<Relativity R>
template<typename Self >
Self LC::Monocle::Pos< R >::operator* ( this Self  p,
qreal  factor 
)
inline

Definition at line 86 of file coordsbase.h.

◆ operator+()

template<Relativity R>
template<typename Self >
Self LC::Monocle::Pos< R >::operator+ ( this Self  p1,
Self  p2 
)
inline

Definition at line 74 of file coordsbase.h.

◆ operator-()

template<Relativity R>
template<typename Self >
Self LC::Monocle::Pos< R >::operator- ( this Self  p1,
Self  p2 
)
inline

Definition at line 80 of file coordsbase.h.

◆ operator/()

template<Relativity R>
template<typename Self >
Self LC::Monocle::Pos< R >::operator/ ( this Self  p,
qreal  factor 
)
inline

Definition at line 92 of file coordsbase.h.

◆ Shifted()

template<Relativity R>
template<typename Self >
Self LC::Monocle::Pos< R >::Shifted ( this const Self &  self,
qreal  dx,
qreal  dy 
)
inline

Definition at line 63 of file coordsbase.h.

◆ ToPointF()

template<Relativity R>
Type LC::Monocle::Pos< R >::ToPointF ( ) const
inline

Definition at line 68 of file coordsbase.h.

Referenced by LC::Monocle::Rect< Relativity::PageAbsolute >::Rect().

+ Here is the caller graph for this function:

Member Data Documentation

◆ P_

◆ Relativity

template<Relativity R>
constexpr auto LC::Monocle::Pos< R >::Relativity = R
static

Definition at line 27 of file coordsbase.h.


The documentation for this struct was generated from the following file: