LeechCraft Monocle 0.6.70-17335-ge406ffdcaf
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
LC::Monocle::Rect< R > Struct Template Reference

#include "coordsbase.h"

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

Public Types

using Type = QRectF
 

Public Member Functions

 Rect ()=default
 
 Rect (const Type &r)
 
 Rect (Pos< R > topLeft, Pos< R > bottomRight)
 
auto operator<=> (const Rect &) const =default
 
template<typename P>
requires (P::Relativity == R)
TopLeft () const
 
template<typename P>
requires (P::Relativity == R)
BottomRight () const
 
void SetLeft (qreal x)
 
void SetRight (qreal x)
 
Type ToRectF () const
 
bool IsEmpty () const
 
template<typename Self>
Self operator| (this const Self &r1, const Self &r2)
 
template<typename Self>
Self operator& (this const Self &r1, const Self &r2)
 

Public Attributes

Type R_ {}
 

Static Public Attributes

static constexpr auto Relativity = R
 

Detailed Description

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

Definition at line 109 of file coordsbase.h.

Member Typedef Documentation

◆ Type

template<Relativity R>
using LC::Monocle::Rect< R >::Type = QRectF

Definition at line 113 of file coordsbase.h.

Constructor & Destructor Documentation

◆ Rect() [1/3]

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

Referenced by operator<=>().

+ Here is the caller graph for this function:

◆ Rect() [2/3]

template<Relativity R>
LC::Monocle::Rect< R >::Rect ( const Type & r)
inlineexplicit

Definition at line 119 of file coordsbase.h.

References R_.

◆ Rect() [3/3]

template<Relativity R>
LC::Monocle::Rect< R >::Rect ( Pos< R > topLeft,
Pos< R > bottomRight )
inlineexplicit

Definition at line 124 of file coordsbase.h.

References R_.

Member Function Documentation

◆ BottomRight()

template<Relativity R>
template<typename P>
requires (P::Relativity == R)
P LC::Monocle::Rect< R >::BottomRight ( ) const
inline

Definition at line 140 of file coordsbase.h.

References BottomRight(), and R_.

Referenced by BottomRight().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsEmpty()

template<Relativity R>
bool LC::Monocle::Rect< R >::IsEmpty ( ) const
inline

Definition at line 160 of file coordsbase.h.

References R_.

◆ operator&()

template<Relativity R>
template<typename Self>
Self LC::Monocle::Rect< R >::operator& ( this const Self & r1,
const Self & r2 )
inline

Definition at line 172 of file coordsbase.h.

◆ operator<=>()

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

References Rect().

+ Here is the call graph for this function:

◆ operator|()

template<Relativity R>
template<typename Self>
Self LC::Monocle::Rect< R >::operator| ( this const Self & r1,
const Self & r2 )
inline

Definition at line 166 of file coordsbase.h.

◆ SetLeft()

template<Relativity R>
void LC::Monocle::Rect< R >::SetLeft ( qreal x)
inline

Definition at line 145 of file coordsbase.h.

References R_.

◆ SetRight()

template<Relativity R>
void LC::Monocle::Rect< R >::SetRight ( qreal x)
inline

Definition at line 150 of file coordsbase.h.

References R_.

◆ TopLeft()

template<Relativity R>
template<typename P>
requires (P::Relativity == R)
P LC::Monocle::Rect< R >::TopLeft ( ) const
inline

Definition at line 133 of file coordsbase.h.

References R_, and TopLeft().

Referenced by TopLeft().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToRectF()

template<Relativity R>
Type LC::Monocle::Rect< R >::ToRectF ( ) const
inline

Definition at line 155 of file coordsbase.h.

References R_.

Member Data Documentation

◆ R_

template<Relativity R>
Type LC::Monocle::Rect< R >::R_ {}

Definition at line 115 of file coordsbase.h.

Referenced by Rect(), Rect(), BottomRight(), IsEmpty(), SetLeft(), SetRight(), TopLeft(), and ToRectF().

◆ Relativity

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

Definition at line 111 of file coordsbase.h.


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