LeechCraft Monocle 0.6.70-17335-ge406ffdcaf
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
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

Referenced by BothGeqThan(), BothLeqThan(), and operator<=>().

+ Here is the caller graph for this function:

◆ Pos() [2/3]

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

Definition at line 35 of file coordsbase.h.

References P_.

◆ Pos() [3/3]

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

Definition at line 40 of file coordsbase.h.

References P_.

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.

References Pos(), and P_.

+ Here is the call graph for this function:

◆ BothLeqThan()

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

Definition at line 102 of file coordsbase.h.

References Pos(), and P_.

+ Here is the call graph for this function:

◆ ClearedX()

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

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)
inlinenodiscard

Definition at line 56 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 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.

◆ operator<=>()

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

References Pos().

+ Here is the call graph for this function:

◆ Shifted()

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

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.

References P_.

Member Data Documentation

◆ P_

template<Relativity R>
Type LC::Monocle::Pos< R >::P_ {}

Definition at line 31 of file coordsbase.h.

Referenced by Pos(), Pos(), BothGeqThan(), BothLeqThan(), and ToPointF().

◆ Relativity

template<Relativity R>
auto LC::Monocle::Pos< R >::Relativity = R
staticconstexpr

Definition at line 27 of file coordsbase.h.


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